/* Chris Fratz — portfolio. Loaded after /shared/css/base.css (Fratz Contact Center Tools tokens:
   Fraunces + IBM Plex Sans/Mono, warm paper / deep teal ink, light + dark). The portfolio's own accent is the
   amber; teal is the supporting ink. No inline styles: every visual state is a class here. Dynamic values
   (bar heights, rail positions, reveal delays) arrive as CSS custom properties set via the CSSOM. */

:root {
  --pf-accent: var(--accent);                 /* fills */
  --pf-accent-text: var(--accent-ink);        /* text on paper */
  --pf-accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --pf-accent-line: color-mix(in srgb, var(--accent) 45%, var(--line));
  --pf-wash: color-mix(in srgb, var(--ink) 4%, transparent);
  --pf-wash-2: color-mix(in srgb, var(--ink) 7%, transparent);
  --pf-max: 1240px;
  --pf-pad: clamp(20px, 5vw, 64px);
  --pf-display: var(--font-display);
}

html { scroll-padding-top: 84px; }
html.pf-modal-open { overflow: hidden; }
body { background: var(--bg); overflow-x: hidden; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
a { color: var(--pf-accent-text); }
strong { font-weight: 600; }

/* ---------- utilities ---------- */
.pf-accent-text { color: var(--pf-accent-text); }
.pf-muted { color: var(--muted); }
.pf-strong { color: var(--ink); font-weight: 600; }
.pf-small { font-size: .78rem; }
.pf-right { text-align: right; }
.pf-num { font-variant-numeric: tabular-nums; }
.is-mono { font-family: var(--font-num); }
.pf-fill, .pf-fill > * { height: 100%; }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
html.pf-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform 700ms cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
html.pf-js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.pf-js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- background dot grid ---------- */
.pf-bg-grid { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .6; }
.pf-bg-dot { fill: var(--line-strong); }
.pf-main, .pf-footer { position: relative; z-index: 1; }

/* ---------- eyebrow / titles ---------- */
.pf-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font: 600 .8rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--pf-accent-text); }
.pf-eyebrow.is-center { justify-content: center; }
.pf-eyebrow-rule { display: inline-block; width: 28px; height: 2px; background: var(--pf-accent); flex: none; }
.pf-eyebrow-rule.is-short { width: 18px; }
.pf-label { margin: 0; font: 600 .78rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--pf-accent-text); }
.pf-label.is-muted { color: var(--muted); }
.pf-title { font-family: var(--pf-display); font-weight: 600; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.02em; max-width: 22ch; color: var(--ink); text-wrap: balance; }
.pf-kicker { margin-top: 20px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 46rem; text-wrap: pretty; }
.pf-kicker strong { color: var(--ink); }
.pf-sub-title { font-family: var(--pf-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; }

/* ---------- sections ---------- */
.pf-section { position: relative; max-width: var(--pf-max); margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--pf-pad); }
.pf-section.is-dense { padding-block: clamp(56px, 8vw, 80px); }
.pf-section-body { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- buttons ---------- */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 20px; border-radius: 10px; border: 1.5px solid transparent; font: 600 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, transform .12s, box-shadow .18s; }
.pf-btn:active { transform: translateY(1px); }
.pf-btn-primary { background: var(--pf-accent); color: var(--on-accent); }
.pf-btn-primary:hover { background: var(--accent-strong); }
.pf-btn-primary:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.pf-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.pf-btn-ghost:hover { border-color: var(--pf-accent); background: var(--pf-accent-soft); }
.pf-btn-sm { min-height: 42px; padding: 10px 16px; font-size: .93rem; }
.pf-btn-block { width: 100%; }

/* ---------- nav ---------- */
.pf-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--pf-pad); border-bottom: 1px solid transparent; transition: background .22s, border-color .22s, backdrop-filter .22s; }
.pf-nav.is-scrolled, .pf-nav.is-open { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.pf-nav-inner { max-width: var(--pf-max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pf-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.pf-brand-name { font: 700 1.2rem/1 var(--pf-display); letter-spacing: -.01em; white-space: nowrap; }
.pf-brand-aas { font: italic 500 1rem/1 var(--pf-display); color: var(--pf-accent-text); white-space: nowrap; }
.pf-brand-badge { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--pf-accent-line); flex: none; }
.pf-nav-links { display: flex; gap: 2px; }
.pf-nav-link { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font: 500 .92rem/1 var(--font-body); text-decoration: none; white-space: nowrap; }
.pf-nav-link:hover { color: var(--ink); background: var(--pf-wash); }
.pf-nav-link.is-active { color: var(--ink); background: var(--pf-wash-2); font-weight: 600; }
.pf-nav-actions { display: flex; align-items: center; gap: 10px; }
.pf-nav-tools { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .85rem/1 var(--font-body); text-decoration: none; white-space: nowrap; }
.pf-nav-tools:hover { border-color: var(--brand-2); }
.pf-nav-tools-mark { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--mark-a), var(--brand-2)); flex: none; }
.pf-menu-btn { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; padding: 0; }
.pf-nav.is-open .pf-menu-btn { background: var(--pf-accent); color: var(--on-accent); border-color: var(--pf-accent); }
.pf-drawer { margin-top: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.pf-drawer-link { padding: 12px 14px; border-radius: 8px; color: var(--ink-2); font: 500 1rem/1.2 var(--font-body); text-decoration: none; }
.pf-drawer-link.is-active { color: var(--ink); background: var(--pf-wash-2); font-weight: 600; }
.pf-drawer-link.is-tools { color: var(--ink); font-weight: 600; }
.pf-drawer-rule { height: 1px; background: var(--line); margin: 8px; }
@media (max-width: 1180px) { .pf-nav-link { padding: 8px 9px; font-size: .88rem; } }
@media (max-width: 380px) { .pf-brand-aas { display: none; } }
@media (min-width: 641px) and (max-width: 760px) { .pf-brand-aas { display: none; } }

/* ---------- hero ---------- */
.pf-hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; max-width: var(--pf-max); margin: 0 auto; padding: 128px var(--pf-pad) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.pf-hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 600px at 22% 38%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(700px 500px at 90% 10%, color-mix(in srgb, var(--mark-a) 12%, transparent), transparent 70%); }
.pf-hero-spacer { flex: 0 0 auto; }
.pf-hero-body { position: relative; z-index: 2; }
.pf-hero-name { margin: 0; font: 700 clamp(3.6rem, 12vw, 9.5rem)/.94 var(--pf-display); letter-spacing: -.035em; color: var(--ink); }
.pf-hero-aas { margin-top: 12px; font: italic 500 clamp(1.4rem, 2.6vw, 1.9rem)/1.2 var(--pf-display); color: var(--pf-accent-text); }
.pf-hero-tagline { margin-top: 32px; font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.5; color: var(--ink-2); max-width: 44rem; text-wrap: pretty; }
.pf-hero-badge { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; }
.pf-hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.pf-hero-ctas .pf-btn { min-height: 52px; padding: 14px 20px; font-size: 1.02rem; }
.pf-scroll-cue { position: relative; z-index: 2; margin-top: 40px; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); transition: opacity .4s; }
.pf-scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
.pf-scroll-label { font: 600 .74rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.pf-scroll-arrow { display: inline-flex; color: var(--pf-accent); animation: pfBounce 1.8s ease-in-out infinite; }
@keyframes pfBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-width: 640px) { .pf-hero { padding-top: 104px; min-height: auto; } .pf-hero-ctas .pf-btn { flex: 1 1 100%; } }

/* certification badge */
.pf-cert { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 100%; }
.pf-cert.is-large { gap: 16px; padding: 6px 22px 6px 6px; }
.pf-cert-img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pf-accent-line); display: block; flex: none; }
.pf-cert.is-large .pf-cert-img { width: 64px; height: 64px; }
.pf-cert-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pf-cert-org { font: 600 .74rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--pf-accent-text); }
.pf-cert-name { font: 600 1.1rem/1.25 var(--pf-display); color: var(--ink); }
@media (max-width: 480px) { .pf-cert.is-large { border-radius: 18px; padding: 8px 14px 8px 8px; } .pf-cert.is-large .pf-cert-img { width: 52px; height: 52px; } .pf-cert-name { font-size: 1rem; } .pf-cert-org { font-size: .66rem; letter-spacing: .08em; } }

/* ---------- thesis ---------- */
.pf-thesis-lines { display: flex; flex-direction: column; margin: 0; font: 700 clamp(3rem, 9vw, 7.5rem)/1 var(--pf-display); letter-spacing: -.035em; color: var(--ink); }
.pf-thesis-line { display: block; }
.pf-thesis-line + .pf-thesis-line { margin-top: 4px; color: var(--pf-accent-text); font-style: italic; font-weight: 600; }
.pf-thesis-body { margin-top: 48px; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.6; color: var(--ink-2); max-width: 52rem; text-wrap: pretty; }
.pf-thesis-body strong { color: var(--ink); }
.pf-metrics { margin: 64px 0 0; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pf-metric { display: flex; flex-direction: column-reverse; gap: 10px; }
.pf-metric-value { margin: 0; font: 600 clamp(2.6rem, 5vw, 4rem)/1 var(--pf-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-metric-label { font-size: .95rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 640px) { .pf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- cards ---------- */
.pf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pf-card.is-hover { transition: border-color .2s, transform .2s, box-shadow .2s; }
.pf-card.is-hover:hover { border-color: var(--pf-accent-line); transform: translateY(-2px); box-shadow: 0 18px 44px -18px rgb(16 39 43 / .35); }
.pf-card.is-accent { background: var(--pf-accent-soft); border-color: var(--pf-accent-line); }

/* ---------- capabilities ---------- */
.pf-cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .pf-cap-grid { grid-template-columns: 1fr; } }
.pf-cap { padding: clamp(24px, 3vw, 34px); }
.pf-cap-title { margin-top: 16px; font: 600 clamp(1.6rem, 2.8vw, 2.2rem)/1.12 var(--pf-display); letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.pf-bullets { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 1.06rem; line-height: 1.5; color: var(--ink-2); }
.pf-bullets li { position: relative; padding-left: 22px; text-wrap: pretty; }
.pf-bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--pf-accent); }
.pf-bullets.is-ink { color: var(--ink); }

.pf-wfm { margin-top: 20px; padding: clamp(24px, 3.6vw, 44px); border-radius: 16px; background: linear-gradient(135deg, var(--pf-accent-soft), var(--surface)); border: 1px solid var(--pf-accent-line); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; box-shadow: var(--shadow); }
@media (max-width: 760px) { .pf-wfm { grid-template-columns: 1fr; } }
.pf-wfm-title { margin-top: 14px; font: 600 clamp(2rem, 3.8vw, 2.8rem)/1.05 var(--pf-display); letter-spacing: -.02em; color: var(--ink); }
.pf-wfm-body { margin-top: 16px; font-size: 1.08rem; line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.pf-chart { margin: 0; padding: 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pf-chart-head { display: flex; justify-content: space-between; gap: 12px; font: 600 .72rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pf-chart-note { margin: 6px 0 22px; font-size: .9rem; color: var(--ink); }
.pf-bars { position: relative; height: 180px; display: flex; align-items: flex-end; gap: 3px; }
.pf-bar { position: relative; flex: 1; height: var(--h, 10%); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 38%, transparent); }
.pf-bar.is-peak { background: var(--pf-accent); }
.pf-bar-label { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font: 600 .7rem/1 var(--font-body); color: var(--pf-accent-text); white-space: nowrap; }
.pf-chart-axis { margin-top: 10px; display: flex; justify-content: space-between; font: 500 .7rem/1 var(--font-num); color: var(--muted); }

.pf-tools { margin-top: 64px; }
.pf-tools-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.pf-tools-head .pf-label { margin-bottom: 10px; }
.pf-tools-note { font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); max-width: 26rem; }
.pf-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1024px) { .pf-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pf-tools-grid { grid-template-columns: 1fr; } }
.pf-tool-group { padding: 22px 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.pf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font: 500 .95rem/1.2 var(--font-body); color: var(--ink); }
.pf-chips.is-small .pf-chip { padding: 4px 10px; font-size: .8rem; }
.pf-chips.is-square .pf-chip { border-radius: 5px; }
.pf-events { margin-top: 22px; padding: 24px 28px; border-radius: 14px; background: linear-gradient(135deg, var(--pf-accent-soft), var(--surface)); border: 1px solid var(--pf-accent-line); display: grid; gap: 14px; }

/* ---------- timeline ---------- */
.pf-rail { margin-top: clamp(40px, 6vw, 64px); padding: 24px 0 12px; border-top: 1px solid var(--line); }
.pf-rail-track { position: relative; height: 110px; margin: 0 18px; }
.pf-rail-base, .pf-rail-progress { position: absolute; left: 0; top: 52px; height: 2px; }
.pf-rail-base { right: 0; background: var(--line-strong); }
.pf-rail-progress { width: var(--x, 0%); background: var(--pf-accent); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.pf-tick { position: absolute; left: var(--x); top: 46px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pf-tick-line { width: 1px; height: 12px; background: var(--line-strong); }
.pf-tick-label { margin-top: 6px; font: 500 .72rem/1 var(--font-num); color: var(--muted); }
.pf-rail-btn { position: absolute; left: var(--x); top: 32px; transform: translateX(-50%); width: 48px; height: 64px; padding: 0; background: transparent; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 13px; border-radius: 10px; color: var(--ink); }
.pf-rail-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: all .22s cubic-bezier(.2,.7,.2,1); }
.pf-rail-btn.is-hero .pf-rail-dot { background: var(--pf-accent); }
.pf-rail-btn.is-active { padding-top: 9px; }
.pf-rail-btn.is-active .pf-rail-dot { width: 22px; height: 22px; background: var(--pf-accent); border: 2px solid var(--bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.pf-rail-year { margin-top: 10px; font: 500 .88rem/1 var(--font-num); color: var(--ink); transition: color .2s; }
.pf-rail-btn.is-active .pf-rail-year { margin-top: 6px; color: var(--pf-accent-text); font-weight: 600; }
.pf-rail-btn:hover .pf-rail-dot { transform: scale(1.15); }
.pf-rail-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  .pf-rail-track { height: 80px; margin: 0 14px; }
  .pf-rail-base, .pf-rail-progress { top: 56px; }
  .pf-tick { display: none; }
  .pf-rail-btn { top: 4px; width: 38px; height: 70px; flex-direction: column-reverse; justify-content: flex-end; padding: 0 0 8px; gap: 6px; }
  .pf-rail-btn.is-active { padding-top: 0; padding-bottom: 5px; }
  .pf-rail-dot { width: 11px; height: 11px; }
  .pf-rail-btn.is-active .pf-rail-dot { width: 16px; height: 16px; }
  .pf-rail-year, .pf-rail-btn.is-active .pf-rail-year { margin-top: 0; font-size: .7rem; }
}
.pf-detail-wrap { margin-top: clamp(28px, 5vw, 56px); }
.pf-detail { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4.5vw, 52px); box-shadow: var(--shadow); animation: pfFadeIn .5s cubic-bezier(.2,.7,.2,1); }
.pf-detail.is-hero { background: linear-gradient(160deg, var(--pf-accent-soft), var(--surface) 60%); border-color: var(--pf-accent-line); }
@keyframes pfFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pf-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); }
@media (max-width: 760px) { .pf-detail-grid { grid-template-columns: 1fr; } }
.pf-chapter { display: flex; align-items: center; gap: 12px; font: 600 .75rem/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--pf-accent-text); }
.pf-detail-year { margin-top: 14px; font: 700 clamp(5.5rem, 15vw, 12rem)/.86 var(--pf-display); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: lining-nums; }
.pf-detail.is-hero .pf-detail-year { color: var(--pf-accent-text); }
.pf-detail-headline { margin-top: 22px; font: 600 clamp(1.9rem, 4vw, 3.1rem)/1.06 var(--pf-display); letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.pf-detail-role { margin-top: 20px; display: grid; gap: 4px; font-size: 1.02rem; }
.pf-detail-role-name { font-weight: 600; color: var(--ink); }
.pf-detail-org { color: var(--muted); }
.pf-detail-body { margin-top: 20px; font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 38rem; text-wrap: pretty; }
.pf-art-slot { position: relative; min-height: 520px; }
@media (max-width: 760px) { .pf-art-slot { min-height: 0; } }
.pf-detail-nav { margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(18px, 3vw, 26px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.pf-chapter-link { background: none; border: 0; padding: 6px; margin: -6px; border-radius: 8px; text-align: left; cursor: pointer; color: var(--ink); font-family: var(--font-body); min-width: 0; max-width: 48%; opacity: .9; }
.pf-chapter-link:hover { opacity: 1; }
.pf-chapter-link.is-next { text-align: right; margin-left: auto; }
.pf-chapter-link.is-empty { width: 1px; }
.pf-chapter-dir { display: block; margin-bottom: 6px; font: 600 .72rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--pf-accent-text); }
.pf-chapter-title { display: block; font: 600 clamp(.95rem, 1.8vw, 1.3rem)/1.25 var(--pf-display); }
@media (max-width: 640px) { .pf-chapter-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* milestone art */
.pf-art { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 24px; display: flex; flex-direction: column; font-size: .9rem; color: var(--ink); }
.pf-art.is-accent { border-color: var(--pf-accent-line); background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); }
@media (max-width: 760px) { .pf-art { position: relative; inset: auto; } }
@media (max-width: 420px) { .pf-art { padding: 16px; font-size: .84rem; } }
.pf-art-label { font: 600 .72rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pf-art.is-accent .pf-art-label { color: var(--pf-accent-text); }
.pf-art-body { flex: 1; margin-top: 16px; position: relative; min-width: 0; }
.pf-art-rows { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; height: 100%; }
.pf-art-rows.is-data { grid-template-rows: auto 1fr; }
.pf-art-col { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.pf-art-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.pf-art-head.is-small { font-size: .8rem; margin-bottom: 6px; }
.pf-art-head.is-caps { font: 600 .7rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.pf-art-note { margin-bottom: 8px; font-size: .82rem; color: var(--muted); }
.pf-art-foot { text-align: center; font-size: .8rem; color: var(--muted); }
.pf-stack { display: flex; flex-direction: column; gap: 8px; }
.pf-stack.is-tight { gap: 6px; }
.pf-stack.is-center { justify-content: center; height: 100%; }
.pf-row { display: grid; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.pf-row > * { min-width: 0; }
.pf-row-kv { grid-template-columns: 1fr auto; }
.pf-row-queue { grid-template-columns: 90px 1fr auto 44px; font-size: .78rem; }
.pf-row-check { grid-template-columns: 16px 1fr auto; font-size: .85rem; padding: 8px 12px; }
.pf-row-line { grid-template-columns: 52px 1fr auto 46px; font-size: .84rem; }
.pf-row.is-accent { border-color: var(--pf-accent-line); }
@media (max-width: 480px) {
  .pf-row-line { grid-template-columns: 48px 1fr auto; }
  .pf-row-line > :last-child { display: none; }
  .pf-row-check { grid-template-columns: 16px 1fr; }
  .pf-row-check > :last-child { grid-column: 2; }
}
.pf-state { padding: 2px 8px; border-radius: 4px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--pf-wash-2); color: var(--muted); }
.pf-state.is-accent { background: var(--pf-accent-soft); color: var(--pf-accent-text); }
.pf-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 12px; background: var(--pf-wash); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.pf-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pf-status.is-call { color: var(--good); }
.pf-status.is-hold { color: var(--muted); }
.pf-status.is-paging { color: var(--pf-accent-text); }
.pf-alert-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 8px; background: var(--pf-accent-soft); border: 1px solid var(--pf-accent-line); font-size: .82rem; }
.pf-panel { padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.pf-panel.is-accent { background: var(--pf-accent-soft); border-color: var(--pf-accent-line); }
.pf-panel-label { font: 600 .8rem/1.3 var(--font-body); color: var(--muted); }
.pf-panel-label.is-caps { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.pf-big-stat { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pf-big-num { font: 700 clamp(3.4rem, 7vw, 4.8rem)/.95 var(--pf-display); letter-spacing: -.03em; color: var(--pf-accent-text); font-variant-numeric: tabular-nums; }
.pf-big-note { font-size: .95rem; line-height: 1.35; color: var(--ink-2); max-width: 15rem; }
.pf-meter-row { display: grid; grid-template-columns: 60px 1fr 44px; gap: 10px; align-items: center; font-size: .82rem; }
.pf-meter-row.is-region { grid-template-columns: 72px 1fr 44px; }
.pf-meter { display: block; height: 10px; border-radius: 5px; background: var(--pf-wash-2); overflow: hidden; }
.pf-meter.is-thick { height: 14px; border-radius: 7px; }
.pf-meter-fill { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--pf-accent); }
.pf-meter-fill.is-muted { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.pf-level { display: grid; gap: 6px; }
.pf-level-head { display: flex; justify-content: space-between; font-size: .8rem; }
.pf-agents { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; align-content: center; flex: 1; }
.pf-agent { display: block; width: 100%; height: auto; color: var(--pf-accent); }
.pf-agent.is-dim-0 { opacity: .98; } .pf-agent.is-dim-1 { opacity: .8; } .pf-agent.is-dim-2 { opacity: .62; }
@media (max-width: 420px) { .pf-agents { grid-template-columns: repeat(14, 1fr); gap: 3px; } }
.pf-seats { display: grid; grid-template-columns: repeat(17, 1fr); gap: 6px; }
.pf-seats.is-mobile { grid-template-columns: repeat(10, 1fr); }
.pf-seat { aspect-ratio: 1 / 1; border-radius: 4px; background: var(--pf-accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.pf-spark { display: block; width: 100%; height: 70px; }
.pf-spark-area { fill: color-mix(in srgb, var(--accent) 20%, transparent); stroke: none; }
.pf-spark-line { fill: none; stroke: var(--pf-accent); stroke-width: 1.5; }
.pf-target { position: relative; display: block; height: 12px; border-radius: 6px; background: var(--pf-wash-2); }
.pf-target-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; border-radius: 6px; background: var(--pf-accent); }
.pf-target-mark { position: absolute; left: 83%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: .5; }
.pf-platform { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.pf-platform-mark { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--pf-accent-soft); border: 1px solid var(--pf-accent-line); color: var(--pf-accent-text); font: 600 1rem/1 var(--pf-display); flex: none; }
.pf-platform-title { display: block; font: 600 1.05rem/1.2 var(--pf-display); }
.pf-platform-role { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); }
.pf-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-insight { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.pf-code { font-size: .86rem; line-height: 1.7; white-space: pre; overflow-x: auto; }
.pf-migrate { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70%; }
.pf-migrate-arrow { flex: 1; display: flex; align-items: center; gap: 2px; }
.pf-migrate-line { flex: 1; height: 4px; border-radius: 2px; background: var(--pf-accent); }
.pf-migrate-note { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.pf-platform-box { flex: 0 0 38%; padding: 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.pf-platform-box.is-stale { opacity: .6; }
.pf-platform-box.is-fresh { background: var(--pf-accent-soft); border-color: var(--pf-accent-line); }
.pf-platform-name { font: 600 1.1rem/1.2 var(--pf-display); }
.pf-platform-sub { margin-top: 4px; font-size: .72rem; color: var(--muted); }
.pf-svg-fill { width: 100%; height: 100%; }
.pf-svg-accent-box { fill: color-mix(in srgb, var(--accent) 20%, transparent); stroke: var(--pf-accent); stroke-width: 1.5; }
.pf-svg-accent-text { fill: var(--pf-accent-text); font: 500 14px var(--font-body); }
.pf-svg-line { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.pf-svg-box { fill: var(--surface); stroke: var(--line-strong); }
.pf-svg-muted-text { fill: var(--muted); font: 12px var(--font-body); }
.pf-svg-muted-text.is-italic { font: italic 14px var(--pf-display); }

/* ---------- what I'm building ---------- */
.pf-build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .pf-build-grid { grid-template-columns: 1fr; } }
.pf-build-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--brand-2); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pf-build-card:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -18px rgb(16 39 43 / .35); }
.pf-build-card.is-www { border-top-color: var(--pf-accent); }
.pf-build-card.is-qa { border-top-color: #4b3a8c; }
@media (prefers-color-scheme: dark) { .pf-build-card.is-wfm { border-top-color: var(--mark-a); } .pf-build-card.is-qa { border-top-color: #b7a8f2; } }
.pf-build-name { font: 600 1.6rem/1.1 var(--pf-display); letter-spacing: -.01em; }
.pf-build-body { color: var(--ink-2); line-height: 1.5; flex: 1; }
.pf-build-cta { font-weight: 600; color: var(--pf-accent-text); }
.pf-build-card:hover .pf-build-cta { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- recommendations ---------- */
.pf-recs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pf-recs.is-multi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pf-rec { position: relative; margin: 0; padding: clamp(28px, 5vw, 48px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.pf-rec-mark { position: absolute; top: -8px; left: 20px; font: 700 11rem/1 var(--pf-display); color: var(--pf-accent); opacity: .2; pointer-events: none; user-select: none; }
.pf-rec-quote { position: relative; margin: 0; font: 400 clamp(1.15rem, 2.2vw, 1.5rem)/1.55 var(--pf-display); color: var(--ink); text-wrap: pretty; }
.pf-rec-by { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.pf-rec-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--pf-accent-soft); border: 1px solid var(--pf-accent-line); color: var(--pf-accent-text); font: 700 1.2rem/1 var(--pf-display); letter-spacing: .04em; }
.pf-rec-who { display: grid; gap: 2px; min-width: 0; }
.pf-rec-name { font: 700 1.1rem/1.2 var(--pf-display); color: var(--ink); }
.pf-rec-title { font-size: .9rem; color: var(--ink-2); }
.pf-rec-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); }
.pf-recs-more { margin-top: 22px; text-align: center; font-size: .92rem; color: var(--muted); }

/* ---------- engage / contact ---------- */
.pf-avail { margin: 0; padding: clamp(18px, 3vw, 26px); border-radius: 14px; background: linear-gradient(135deg, var(--pf-accent-soft), var(--surface)); border: 1px solid var(--pf-accent-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .pf-avail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-avail-item { display: grid; gap: 6px; }
.pf-avail-item dd { margin: 0; font: 600 1.15rem/1.25 var(--pf-display); color: var(--ink); }
.pf-contact-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .pf-contact-grid { grid-template-columns: 1fr; } }
.pf-contact { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: clamp(24px, 3.4vw, 34px); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .22s cubic-bezier(.2,.7,.2,1), border-color .22s; }
.pf-contact:hover { transform: translateY(-3px); border-color: var(--pf-accent-line); }
.pf-contact.is-featured { background: var(--pf-accent-soft); border: 1.5px solid var(--pf-accent-line); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--accent) 45%, transparent); }
.pf-contact-head { display: flex; align-items: center; gap: 14px; }
.pf-contact-title { font: 600 clamp(1.8rem, 3vw, 2.2rem)/1 var(--pf-display); letter-spacing: -.015em; }
.pf-contact-blurb { color: var(--ink-2); line-height: 1.5; font-size: 1.04rem; flex: 1; }
.pf-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--pf-accent-soft); border: 1px solid var(--pf-accent-line); color: var(--pf-accent-text); }

/* modal */
.pf-modal { padding: 0; border: 0; background: transparent; width: min(640px, calc(100vw - 24px)); max-width: 640px; max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); }
.pf-modal::backdrop { background: rgb(8 20 22 / .6); backdrop-filter: blur(6px); }
.pf-modal[open] { animation: pfFadeIn .22s ease-out; }
.pf-modal-card { position: relative; background: var(--surface); border: 1px solid var(--pf-accent-line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: 0 30px 90px -20px rgb(0 0 0 / .5); }
.pf-modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.pf-modal-title { font: 600 clamp(1.7rem, 4vw, 2.2rem)/1.1 var(--pf-display); letter-spacing: -.015em; margin: 0 48px 8px 0; }
.pf-modal-intro { color: var(--ink-2); line-height: 1.5; margin-bottom: 20px; }
.pf-form-error { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); font-size: .92rem; line-height: 1.45; }
.pf-form { display: flex; flex-direction: column; gap: 12px; }
.pf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .pf-form-row { grid-template-columns: 1fr; } }
.pf-field { display: grid; gap: 6px; }
.pf-field-label { display: flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.pf-field-hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
.pf-field input, .pf-field textarea { width: 100%; min-width: 0; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s; }
.pf-field textarea { resize: vertical; min-height: 120px; }
.pf-field input::placeholder, .pf-field textarea::placeholder { color: var(--muted); opacity: .8; }
.pf-field input:focus, .pf-field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent); }
.pf-field [aria-invalid="true"] { border-color: var(--warn); background: var(--warn-bg); }
.pf-field-err { min-height: 0; font-size: .8rem; font-weight: 600; color: var(--warn); }
.pf-field-err:empty { display: none; }
.pf-form-foot { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-form-req { font-size: .84rem; color: var(--muted); }
.pf-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-success { text-align: center; padding: 18px 4px 4px; }
.pf-success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--pf-accent-soft); border: 1px solid var(--pf-accent-line); color: var(--pf-accent-text); }
.pf-success .pf-modal-title { margin: 0 0 10px; }
.pf-success-body { color: var(--ink-2); line-height: 1.55; max-width: 26rem; margin: 0 auto 24px; }

/* ---------- deploy / closing ---------- */
.pf-deploy { position: relative; max-width: var(--pf-max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--pf-pad) clamp(56px, 8vw, 96px); text-align: center; }
.pf-deploy > * { position: relative; z-index: 2; }
.pf-deploy .pf-deploy-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(800px 520px at 50% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.pf-deploy-title { margin: 0; font: 700 clamp(4rem, 13vw, 10rem)/.92 var(--pf-display); letter-spacing: -.04em; color: var(--ink); }
.pf-deploy-body { margin: 24px auto 0; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 36rem; text-wrap: pretty; }
.pf-deploy-contact { margin-top: clamp(48px, 8vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; text-align: left; }
.pf-deploy-name { margin-top: 8px; font: 700 clamp(1.8rem, 3.4vw, 2.3rem)/1.1 var(--pf-display); color: var(--ink); }
.pf-deploy-email { margin-top: 4px; font-size: 1.1rem; }
.pf-deploy-email a { color: var(--pf-accent-text); text-decoration: none; }
.pf-deploy-email a:hover { text-decoration: underline; }
.pf-deploy-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-deploy-sign { margin-top: clamp(56px, 9vw, 110px); font-size: .82rem; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 480px) { .pf-deploy-actions { width: 100%; } .pf-deploy-actions .pf-btn { flex: 1 1 100%; } }

/* ---------- footer ---------- */
.pf-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 32px var(--pf-pad) 40px; }
.pf-footer-inner { max-width: var(--pf-max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.pf-footer-name { font: 700 1.15rem/1.2 var(--pf-display); color: var(--ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pf-footer-note { margin-top: 6px; font-size: .9rem; color: var(--muted); max-width: 32rem; }
.pf-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.pf-footer-nav a { color: var(--ink-2); font-size: .92rem; }
.pf-footer-nav a:hover { color: var(--ink); }

/* ---------- static fallback (before JS / no JS) ---------- */
.pf-static { max-width: var(--pf-max); margin: 0 auto; padding: 96px var(--pf-pad) 48px; }
.pf-static h1 { font: 700 clamp(3rem, 10vw, 6rem)/.95 var(--pf-display); letter-spacing: -.03em; }
.pf-static .pf-hero-aas { margin-bottom: 20px; }
.pf-static p { max-width: 44rem; color: var(--ink-2); font-size: 1.1rem; line-height: 1.55; }
.pf-static ul { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; list-style: none; }

/* ---------- 404 ---------- */
.pf-404 { min-height: 100vh; display: grid; place-content: center; padding: 48px var(--pf-pad); max-width: 720px; margin: 0 auto; }
.pf-404 .big { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--pf-display); color: var(--pf-accent-text); }
.pf-404 h1 { font: 600 clamp(1.8rem, 5vw, 2.6rem)/1.1 var(--pf-display); margin-top: 8px; }
.pf-404 p { margin: 14px 0 24px; color: var(--ink-2); font-size: 1.1rem; }
.pf-404 .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* skip link (base.css styles .skip-link) inside the fixed nav */
.pf-nav .skip-link { position: absolute; }

/* Paris art: let the sparkline take the free row height instead of leaving a gap */
.pf-art-rows.is-paris > div:nth-child(2) { display: flex; flex-direction: column; min-height: 0; }
.pf-art-rows.is-paris .pf-spark { flex: 1; min-height: 70px; height: auto; }
.pf-art-slot { min-height: 500px; }
@media (max-width: 760px) { .pf-art-slot { min-height: 0; } .pf-art-rows.is-paris .pf-spark { height: 70px; flex: none; } }
