/* ════════════════════════════════════════════════════════════
   adriennepalmer.com — site stylesheet
   Last touched: refresh 2026
   ──────────────────────────────────────────────────────────────
   Müller-Brockmann-influenced refresh of the existing system.
   Mathematical grid, restrained palette, ruled dividers,
   typographic hierarchy via scale (not weight).
   
   STRUCTURE
   1. Tokens (colors, type, spacing)
   2. Reset + base
   3. Layout (container, grid)
   4. Navigation (sticky top + offcanvas mobile)
   5. Type system (eyebrow, display, body, mono)
   6. Components (buttons, rules, stat strip)
   7. Sections (hero, work, services, how-i-work, contact, footer)
   8. Utilities + reveal
   9. Responsive overrides
   ════════════════════════════════════════════════════════════ */


/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Color */
  --ap-black:   #282828;
  --ap-white:   #F5F2EC;
  --ap-soft:    #EDE7D8;            /* soft warm grey for bands */
  --ap-accent:  #E8520A;
  --ap-gray:    #616158;            /* WCAG AA on #F5F2EC and #EDE7D8 */
  --ap-rule:    rgba(40,40,40,0.15);
  --ap-rule-strong: rgba(40,40,40,0.4);

  /* Type */
  --ap-display: 'Bebas Neue', sans-serif;
  --ap-sans:    'IBM Plex Sans', sans-serif;
  --ap-mono:    'IBM Plex Mono', monospace;

  /* Layout */
  --ap-gutter:   1.5rem;             /* 24px */
  --ap-pad-dt:   7.5rem;             /* 120px desktop */
  --ap-pad-tb:   2.5rem;             /* 40px tablet */
  --ap-pad-mb:   1.5rem;             /* 24px mobile */
}


/* ── 2. RESET + BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ap-sans);
  background-color: var(--ap-white);
  color: var(--ap-black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ap-accent);
  outline-offset: 4px;
}


/* ── 3. LAYOUT ─────────────────────────────────────────────── */
/* Two container types:
   .container-fluid  → full-bleed sections (dark bands, footer)
   .container-xl     → content with grid margins, max 1140px         */
.container-xl {
  --bs-gutter-x: var(--ap-gutter);
  padding-right: var(--ap-pad-dt);
  padding-left:  var(--ap-pad-dt);
}
.container-fluid { padding-right: 0; padding-left: 0; }

@media (max-width: 1200px) {
  .container-xl { padding-right: var(--ap-pad-tb); padding-left: var(--ap-pad-tb); }
}
@media (max-width: 768px) {
  .container-xl { padding-right: var(--ap-pad-mb); padding-left: var(--ap-pad-mb); }
}


/* ── 4. NAVIGATION ─────────────────────────────────────────── */
.ap-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--ap-white);
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.25s ease, box-shadow 0.25s ease;
}
.ap-nav.scrolled {
  border-bottom-color: var(--ap-rule);
  box-shadow: 0 1px 0 0 rgba(40,40,40,0.04);
}
.ap-nav .container-xl {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1em; padding-bottom: 1em;
}
.ap-logo svg { width: 72px; height: auto; display: block; }
.ap-logo-fill { fill: var(--ap-black); }

.ap-nav-right { display: flex; align-items: center; gap: 1.5em; }
.ap-nav-links {
  display: flex; flex-direction: row; align-items: center;
  gap: 1.5em; list-style: none; margin: 0; padding: 0;
}
.ap-nav-links a {
  font-family: var(--ap-display);
  font-size: 1.125em;
  letter-spacing: 0.06em;
  color: var(--ap-black);
  text-decoration: none !important;
  padding-left: 10px;
  position: relative;
  line-height: 1.6;
  display: block;
}
.ap-nav-links a::before {
  content: ''; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 0;
  background: var(--ap-accent);
  transition: height 0.2s;
}
.ap-nav-links a.active::before,
.ap-nav-links a:hover::before { height: 65%; }

/* Hamburger */
.ap-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px 0;
}
.ap-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ap-black);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.ap-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ap-hamburger.open span:nth-child(2) { opacity: 0; }
.ap-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Offcanvas mobile menu — reuses Bootstrap offcanvas */
.offcanvas {
  background: var(--ap-white);
  border-left: 1px solid var(--ap-black);
  height: 100dvh;
  max-height: 100dvh;
  width: min(88vw, 420px);
  overflow: hidden;
}
.offcanvas .offcanvas-header { padding: 1em 1.5em; }
.offcanvas .offcanvas-body {
  display: block !important;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
}
.ap-oc-link {
  font-family: var(--ap-display);
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  color: var(--ap-black);
  text-decoration: none;
  display: block;
  padding: 0.25em 0;
  width: fit-content;
}
.ap-oc-link:hover { color: var(--ap-accent); }


/* ── 5. TYPE SYSTEM ────────────────────────────────────────── */
/* Eyebrow — mono uppercase metadata label (the JM-B caption) */
.ap-eyebrow {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-black);
  line-height: 1.6;
}
.ap-eyebrow--gray { color: var(--ap-gray); }
.ap-eyebrow--white { color: var(--ap-white); }

/* Display headings */
.ap-h1 {
  font-family: var(--ap-display);
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ap-accent);
  margin: 0;
}
.ap-h2 {
  font-family: var(--ap-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ap-black);
  margin: 0;
}
.ap-h3 {
  font-family: var(--ap-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ap-black);
  margin: 0;
}

/* Body */
.ap-body {
  font-family: var(--ap-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ap-black);
}
.ap-body--lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}
.ap-measure { max-width: 64ch; }
.ap-measure-narrow { max-width: 48ch; }


/* ── 6. COMPONENTS ─────────────────────────────────────────── */

/* Rules */
.ap-rule { border-top: 2px solid var(--ap-rule); }
.ap-rule-strong { border-top: 2px solid var(--ap-black); }

/* Buttons */
.ap-btn {
  font-family: var(--ap-display);
  font-size: 1em;
  letter-spacing: 0.08em;
  color: var(--ap-black);
  border: 1px solid var(--ap-black);
  min-width: 8em;
  min-height: 3em;
  padding: 0 1.5em;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ap-btn:hover {
  background: var(--ap-black);
  color: var(--ap-white) !important;
  border-color: var(--ap-accent);
}
.ap-btn--filled {
  background: var(--ap-black);
  color: var(--ap-white) !important;
  border-color: var(--ap-accent);
}
.ap-btn--light {
  color: var(--ap-white);
  border-color: var(--ap-white);
}
.ap-btn--light:hover {
  background: var(--ap-white);
  color: var(--ap-black) !important;
  border-color: var(--ap-white);
}

/* Arrow icon */
.ap-arrow-svg {
  flex-shrink: 0; display: block;
  vertical-align: middle; margin-top: -3px;
}

/* Tags — used for expertise band + work row metadata */
.ap-tag {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ap-rule);
  padding: 0.4em 0.8em;
  line-height: 1.4;
  color: var(--ap-black);
  display: inline-block;
}
.ap-tag--light {
  color: var(--ap-white);
  border-color: rgba(245,242,236,0.3);
}


/* ── 7. SECTIONS ───────────────────────────────────────────── */

/* Hero spacing */
@media (min-width: 768px) {
  .ap-hero { padding-top: 6.25rem; padding-bottom: 1.5rem; }
}
@media (min-width: 992px) {
  .ap-hero { padding-top: 9.375rem; padding-bottom: 1.5rem; }
}
.ap-hero { padding-top: 2rem; padding-bottom: 1.5rem; }

/* Stat — used in hero stat strip + outcome callouts */
.ap-stat {
  display: flex; flex-direction: column;
  text-align: left;
  padding: 1.25em 0;
  border-top: 2px solid var(--ap-rule);
}
.ap-stat-num {
  font-family: var(--ap-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--ap-black);
  letter-spacing: 0.01em;
}
.ap-stat-num .accent { color: var(--ap-accent); }
.ap-stat-label {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-top: 0.5em;
  line-height: 1.4;
  text-align: center;
}

/* Dark band — used for Expertise + logo bar */
.ap-band-dark {
  background-color: var(--ap-black);
  color: var(--ap-white);
  padding: 3.125rem 0;
}
.ap-band-dark .ap-eyebrow { color: var(--ap-white); }

/* Work section */
.ap-work-section {
  border-top: 2px solid var(--ap-rule);
  padding-top: 3.125rem;
  padding-bottom: 3.125rem;
}

/* Work row — link to case study page */
.ap-work-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto;
  gap: 1.5em;
  align-items: center;
  padding: 1.5em 0;
  border-bottom: 2px solid var(--ap-rule);
  text-decoration: none;
  color: var(--ap-black);
  transition: padding 0.25s cubic-bezier(.22,1,.36,1),
              background 0.25s;
  position: relative;
}
.ap-work-link::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px; background: transparent;
  transition: background 0.25s;
}
.ap-work-link:hover {
  background: rgba(40,40,40,0.03);
  padding-left: 1.5em;
}
.ap-work-link:hover::before { background: var(--ap-accent); }

.ap-work-co {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-gray);
}
.ap-work-title {
  font-family: var(--ap-display);
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
}
.ap-work-outcome {
  font-family: var(--ap-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  color: var(--ap-accent);
  letter-spacing: 0.01em;
  text-align: right;
  white-space: nowrap;
}
.ap-work-outcome-label {
  font-family: var(--ap-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-top: 0.25em;
  text-align: right;
}
.ap-work-arrow {
  color: var(--ap-accent);
  width: 18px; height: auto;
  flex-shrink: 0;
}
.ap-work-tags {
  display: none;
}

@media (min-width: 768px) {
  .ap-work-tags {
    display: flex; gap: 0.5em; flex-wrap: nowrap;
    justify-self: end;
  }
  .ap-work-tags .ap-tag {
    font-size: 0.625rem; padding: 0.25em 0.6em;
  }
}

/* Process / How I Work — 5 numbered steps */
.ap-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5em;
}
.ap-process-step {
  border-top: 2px solid var(--ap-black);
  padding-top: 1em;
}
.ap-process-num {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-accent);
  margin-bottom: 0.5em;
}
.ap-process-title {
  font-family: var(--ap-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 0.5em;
}
.ap-process-desc {
  font-family: var(--ap-sans);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ap-gray);
}

/* Services — 3 cards */
.ap-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}
.ap-service {
  border-top: 2px solid var(--ap-black);
  padding-top: 1.25em;
}
.ap-service-num {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-bottom: 0.5em;
}
.ap-service-title {
  font-family: var(--ap-display);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 0.75em;
}
.ap-service-desc {
  font-family: var(--ap-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ap-black);
}

/* Logo bar */
.ap-logo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5em 3em;
  padding: 1.5em 0;
}
.ap-logo-bar-item {
  font-family: var(--ap-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--ap-white);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ap-logo-bar-item:hover { opacity: 1; }

/* Contact form */
.ap-form {
  display: grid;
  gap: 1em;
}
.ap-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}
.ap-input, .ap-textarea {
  font-family: var(--ap-sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.875em 1em;
  background: transparent;
  border: 1px solid var(--ap-rule-strong);
  color: var(--ap-black);
  width: 100%;
  transition: border-color 0.2s;
}
.ap-input:focus, .ap-textarea:focus {
  outline: none;
  border-color: var(--ap-accent);
}
.ap-textarea { min-height: 8em; resize: vertical; }
.ap-form-label {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-bottom: 0.4em;
  display: block;
}

/* Footer */
.ap-footer {
  background: var(--ap-black);
  color: var(--ap-white);
  padding: 5rem 0 2.5rem;
}
.ap-footer .ap-logo-fill { fill: var(--ap-white); }
.ap-footer-headline {
  font-family: var(--ap-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ap-white);
  margin: 0 0 2rem;
}

/* Rotator (lives in footer now) */
.ap-rotator-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}
.ap-rotator {
  display: inline-block;
  color: var(--ap-accent);
  animation: ap-flip-in 0.35s cubic-bezier(.22,1,.36,1);
}
.ap-rotator.flip-out {
  animation: ap-flip-out 0.25s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes ap-flip-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes ap-flip-out {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-100%); opacity: 0; }
}

.ap-footer-meta {
  border-top: 1px solid rgba(245,242,236,0.15);
  padding-top: 1.5rem;
  margin-top: 3rem;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem;
  font-family: var(--ap-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(245,242,236,0.7);
}
.ap-footer-meta a { color: rgba(245,242,236,0.7); text-decoration: none; }
.ap-footer-meta a:hover { color: var(--ap-white); }


/* ── 8. UTILITIES + REVEAL ─────────────────────────────────── */
.ap-reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.22,1,.36,1);
}
.ap-reveal.in { opacity: 1; transform: none; }


/* ── 8b. SECTION HEADER ─────────────────────────────────────
   Eyebrow above (mono caption), big h2 below, optional
   right-aligned descriptor caption. JM-B chapter opener. */
.ap-section-head {
  padding-top: 1.25em;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  align-items: end;
}
.ap-section-head .ap-eyebrow { grid-column: 1 / -1; margin-bottom: 0.5rem; }
.ap-section-head h2 { grid-column: 1; align-self: end; }
.ap-section-head .ap-section-head-meta {
  grid-column: 2;
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-gray);
  align-self: end;
  text-align: left;       /* left edge starts at center of section */
  line-height: 1.6;
}
.ap-section-head--ruled { border-top: 2px solid var(--ap-rule); }
@media (max-width: 768px) {
  .ap-section-head { grid-template-columns: 1fr; }
  .ap-section-head .ap-section-head-meta { grid-column: 1; }
}

/* ── 8c. WORK ACCORDION ─────────────────────────────────────
   Tap a row to see a quick summary; click through to the
   full case study page. Numbered row → chevron → expand. */
.ap-work-item { border-bottom: 2px solid var(--ap-rule); }
.ap-work-item:last-of-type { border-bottom: 0; }

.ap-work-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto auto;
  gap: 1em;
  align-items: center;
  padding: 1.1em 1.2em 1.1em 0;   /* chevron indented 1.2em from right edge */
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ap-black);
  position: relative;
  transition: padding 0.25s cubic-bezier(.22,1,.36,1), background 0.25s;
}
.ap-work-row::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: transparent; transition: background 0.25s;
}
.ap-work-row:hover,
.ap-work-row[aria-expanded="true"] {
  background: rgba(40,40,40,0.03);
  padding-left: 1em;
}
.ap-work-row:hover::before,
.ap-work-row[aria-expanded="true"]::before { background: var(--ap-accent); }

.ap-work-num {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ap-gray);
  padding-right: 0.25em;
  align-self: center;
}
.ap-work-row:hover .ap-work-num,
.ap-work-row[aria-expanded="true"] .ap-work-num { color: var(--ap-accent); }

/* Work tags — unboxed (no border) */
.ap-work-tags {
  display: flex; flex-wrap: nowrap;
  gap: 0; list-style: none;
  padding: 0; margin: 0;
  justify-content: flex-end;
  flex-shrink: 0;
  align-self: end;
}
.ap-work-tags li {
  font-family: var(--ap-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-gray);
  padding: 0;
  border: 0;
}
.ap-work-tags li:not(:last-child)::after { content: ' / \00a0'; }

/* Outcome cell — bottom-aligns with title; extra left padding
   separates it visually from the tags column. */
.ap-work-outcome-cell {
  align-self: end;
  padding-left: 1.25em;
}

.ap-work-chevron {
  flex-shrink: 0;
  color: var(--ap-accent);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1);
  width: 16.8px; height: 10.5px;
}
.ap-work-row[aria-expanded="true"] .ap-work-chevron { transform: rotate(180deg); }

/* Expanded panel */
.ap-work-panel {
  padding: 1em 0 2.5em;
  border-top: 1px solid var(--ap-rule);
}

/* Placeholder image slot — sits inside each open accordion above the copy.
   Swap the inner SVG / label for an <img> per project when assets are ready. */
.ap-work-panel-img {
  aspect-ratio: 16 / 9;
  margin: 1.5em 0;
  background-color: rgba(40,40,40,0.03);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 14px,
    rgba(40,40,40,0.05) 14px,
    rgba(40,40,40,0.05) 15px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ap-work-panel-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}
.ap-work-panel-img--contain img {
  object-fit: contain;
  object-position: center;
}
.ap-work-panel-img--white {
  background-color: #ffffff;
  background-image: none;
}
.ap-work-panel-img--soft {
  background-color: #f5f8fb;
  background-image: none;
}
.ap-work-panel-img-label {
  font-family: var(--ap-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-gray);
  text-align: center;
  background: var(--ap-white);
  padding: 0.6em 1em;
  border: 1px solid var(--ap-rule);
}

.ap-work-panel-desc {
  font-family: var(--ap-sans);
  font-size: 1rem; font-weight: 300;
  line-height: 1.8; color: var(--ap-black);
}
.ap-work-panel-stats { list-style: none; padding: 0; margin: 0; }
.ap-work-panel-stats li {
  font-family: var(--ap-sans);
  font-size: 0.875rem; font-weight: 300;
  line-height: 1.7; color: var(--ap-black);
  padding-left: 1em; position: relative;
}
.ap-work-panel-stats li::before {
  content: '•'; position: absolute; left: 0;
  color: var(--ap-accent);
}

@media (max-width: 768px) {
  .ap-work-row {
    grid-template-columns: auto 1fr auto;
    gap: 0.5em 0.75em;
  }
  .ap-work-row .ap-work-tags { display: none; }
  /* Hide outcome cell entirely on mobile — a bare number without
     its label reads as noise. */
  .ap-work-row .ap-work-outcome-cell { display: none; }
}

/* ── 8d. PROCESS \u2014 DARK BAND VARIANT ─────────────────────────
   Color-reversed How I Work: dark bg, orange labels + titles. */
.ap-band-dark .ap-process-step {
  border-top: 2px solid rgba(245,242,236,0.4);
}
.ap-band-dark .ap-process-num { color: var(--ap-accent); }
.ap-band-dark .ap-process-title { color: var(--ap-white); }
.ap-band-dark .ap-process-desc { color: rgba(245,242,236,0.75); }
.ap-band-dark .ap-section-head { border-top-color: rgba(245,242,236,0.4); }
.ap-band-dark .ap-section-head h2 { color: var(--ap-white); }
.ap-band-dark .ap-section-head-meta { color: rgba(245,242,236,0.6); }

/* ── 8e. MARQUEE \u2014 ALSO WORKED WITH ──────────────────────── */
.ap-logo-band {
  padding: 3.125rem 0;
  background: var(--ap-white);
  border-bottom: 1px solid var(--ap-rule);
}
.ap-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.75rem 4.25rem;
  align-items: center;
  padding: 1rem 0;
}
.ap-logo-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: 64px;
  min-height: 64px;
  text-decoration: none;
  color: var(--ap-black);
  opacity: 1;
  transition: opacity 0.25s, filter 0.25s, color 0.25s;
  font-family: var(--ap-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.ap-logo-grid-item:hover {
  opacity: 1;
  color: var(--ap-accent);
}
/* Logo image variant: soft white render, full color on hover */
.ap-logo-grid-item img,
.ap-logo-grid-item svg {
  display: block;
  width: auto;
  max-width: 130px;
  max-height: 42px;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.62;
  object-fit: contain;
  transition: filter 0.25s, opacity 0.25s;
}
.ap-logo-grid-item--wide img,
.ap-logo-grid-item--wide svg {
  max-width: 170px;
  max-height: 42px;
}
.ap-logo-grid-item--wide {
  width: 170px;
}
.ap-logo-grid-item--compact {
  width: 126px;
}
.ap-logo-grid-item--compact img,
.ap-logo-grid-item--compact svg {
  max-width: 126px;
  max-height: 34px;
}
.ap-logo-grid-item--compact img,
.ap-logo-grid-item--compact svg {
  opacity: 0.48;
}
.ap-logo-grid-item--mark img,
.ap-logo-grid-item--mark svg {
  max-width: 62px;
  max-height: 50px;
}
.ap-logo-grid-item--mark {
  width: 62px;
}
.ap-logo-grid-item:hover img,
.ap-logo-grid-item:hover svg {
  filter: none;
  opacity: 1;
}

/* ── 404 PAGE ──────────────────────────────────────────────── */
.ap-404 {
  min-height: 64vh;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.ap-404-grid {
  border-top: 2px solid var(--ap-black);
  padding-top: 2rem;
}
.ap-404-title {
  font-family: var(--ap-display);
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--ap-black);
  margin: 0;
  max-width: none;
}
.ap-404-copy {
  max-width: 52ch;
  margin-top: 2rem;
}
.ap-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.ap-404-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--ap-rule);
  border-bottom: 1px solid var(--ap-rule);
}
.ap-404-links a {
  display: block;
  padding: 1rem 0;
  color: var(--ap-black);
  text-decoration: none;
  font-family: var(--ap-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.ap-404-links a:hover { color: var(--ap-accent); }
.ap-404-links span {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--ap-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ap-gray);
}
@media (max-width: 900px) {
  .ap-404-links {
    grid-template-columns: 1fr;
  }
  .ap-404-title { max-width: none; }
  .ap-404-links { gap: 0; }
  .ap-404-links a + a { border-top: 1px solid var(--ap-rule); }
}

/* Soft band — used behind Contact section.
   Contrast: black on #EDE7D8 ~ 10.5:1 (AAA);
   gray  on #EDE7D8 ~ 5.4:1 (AA). */
.ap-band-soft {
  background: var(--ap-soft);
  padding: 5rem 0;
}

/* ── 8f. RATES NOTE ─────────────────────────────────────────
   The how-engagement-works footnote at end of services. */
.ap-rates-note {
  border-top: 2px solid var(--ap-rule);
  margin-top: 3rem; padding-top: 1.5rem;
  font-family: var(--ap-sans);
  font-size: 1rem; font-weight: 300;
  line-height: 1.75;
  color: var(--ap-gray);
}
.ap-rates-note strong { color: var(--ap-black); font-weight: 500; }

/* ── 8g. NAV DROPDOWN (Bootstrap override) ──────────────────
   Restrained dropdown styled to match the rest of the system. */
.ap-nav .dropdown-menu {
  background: var(--ap-white);
  border: 1px solid var(--ap-black);
  border-radius: 0;
  padding: 0.5em 0;
  margin-top: 0.5em !important;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(40,40,40,0.12);
}
.ap-nav .dropdown-item {
  font-family: var(--ap-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ap-black);
  padding: 0.75em 1.25em;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  background: transparent;
}
.ap-nav .dropdown-item .ap-dd-co {
  font-family: var(--ap-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-bottom: 2px;
}
.ap-nav .dropdown-item:hover {
  background: rgba(40,40,40,0.04);
  color: var(--ap-accent);
}
.ap-nav .dropdown-item:hover .ap-dd-co { color: var(--ap-accent); }
.ap-nav .ap-nav-links .dropdown-toggle::after { display: none; }

/* Plus indicator on Work dropdown trigger */
.ap-nav-dropdown-plus {
  display: inline-block;
  font-family: var(--ap-mono);
  font-size: 0.9em;
  color: var(--ap-accent);
  margin-left: 0.25em;
  transition: transform 0.25s;
  line-height: 1;
}
.ap-nav .dropdown.show .ap-nav-dropdown-plus { transform: rotate(45deg); }

/* ── 8h. OFFCANVAS WORK SUBLIST ─────────────────────────────
   Mobile work menu: tap to expand, + indicator. */
.ap-oc-work-btn {
  display: flex; align-items: center; gap: 0.5em;
  background: none; border: none; cursor: pointer;
  font-family: var(--ap-display);
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  color: var(--ap-black);
  padding: 0.25em 0;
  width: fit-content;
}
.ap-oc-work-icon {
  font-family: var(--ap-mono);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ap-accent);
  line-height: 1;
  transition: transform 0.3s;
}
.ap-oc-work-btn[aria-expanded="true"] .ap-oc-work-icon { transform: rotate(45deg); }
.ap-oc-sublist {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
  padding-left: 1em;
  margin: 0; list-style: none;
}
.ap-oc-sublist.open {
  max-height: none;
  overflow: visible;
}
.ap-oc-sub-item {
  padding: 0.6em 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.ap-oc-sub-co {
  font-family: var(--ap-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-bottom: 0.125em;
}
.ap-oc-sub-title {
  font-family: var(--ap-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ap-black);
  transition: color 0.15s;
}
.ap-oc-sub-item:hover .ap-oc-sub-title { color: var(--ap-accent); }


/* ── 9. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .ap-nav-right .ap-nav-links { display: none; }
  .ap-hamburger { display: flex; }
  .ap-process { grid-template-columns: repeat(2, 1fr); }
  .ap-services { grid-template-columns: 1fr; gap: 2.5em; }
}
@media (max-width: 768px) {
  .ap-work-link {
    grid-template-columns: 1fr auto;
    gap: 0.5em 1em;
  }
  .ap-work-link .ap-work-tags { display: none; }
  .ap-work-outcome { font-size: 1.25rem; grid-column: 1 / -1; text-align: left; }
  .ap-work-outcome-label { text-align: left; }
  .ap-process { grid-template-columns: 1fr; }
  .ap-form-row { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   CASE STUDY PAGE
   Shared across /work/*.html. Reuses tokens + base components;
   adds project hero, metadata grid, image figures, painpoint
   quotes, and "up next" CTA.
   ════════════════════════════════════════════════════════════ */

/* Hero — large project title with eyebrow above. Same vertical
   rhythm as the home hero so the brand feels consistent. */
.ap-cs-hero { padding-top: 5rem; padding-bottom: 2rem; }
@media (min-width: 768px) {
  .ap-cs-hero { padding-top: 8rem; padding-bottom: 3rem; }
}
@media (min-width: 992px) {
  .ap-cs-hero { padding-top: 11rem; padding-bottom: 4rem; }
}
.ap-cs-h1 {
  font-family: var(--ap-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ap-accent);
  margin: 0 0 1rem;
}
.ap-cs-lede {
  font-family: var(--ap-sans);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ap-black);
  /* max-width: 60ch; */
  margin: 0;
}

/* Project metadata — 4-col key/value grid below the title.
   Each cell: mono label above, sans value below. */
.ap-cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #282828;
  border-bottom: 1px solid #282828;
  margin-top: 3rem;
}
.ap-cs-meta > div {
  padding: 1.25em 1em 1.25em 0;
  border-right: 0 !important;
  border-left: 0 !important;
}
.ap-cs-meta > div:last-child { padding-right: 0; }
.ap-cs-meta-label {
  font-family: var(--ap-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-bottom: 0.5em;
  line-height: 1.4;
}
.ap-cs-meta-val {
  font-family: var(--ap-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ap-black);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .ap-cs-meta { grid-template-columns: 1fr 1fr; }
  .ap-cs-meta > div:nth-child(1),
  .ap-cs-meta > div:nth-child(2) { border-bottom: 1px solid #282828; }
}

/* Section in a case study — eyebrow above h2, body below */
.ap-cs-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 2px solid var(--ap-rule);
}
.ap-cs-section:first-of-type { border-top: 0; }
.ap-cs-section h2 {
  font-family: var(--ap-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ap-black);
  margin: 0 0 2rem;
}
.ap-cs-body {
  font-family: var(--ap-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ap-black);
  max-width: min(100%, 80ch);
}
.ap-cs-body p + p { margin-top: 1.25em; }
.ap-cs-body em { font-style: italic; color: var(--ap-gray); }
.ap-cs-body p,
.ap-cs-lede,
.ap-body,
.ap-work-panel-desc,
.ap-cs-quote-body {
  text-wrap: pretty;
}
.ap-cs-h1,
.ap-cs-section h2,
.ap-h1,
.ap-h2,
.ap-footer-headline {
  text-wrap: balance;
}

/* Image figure — sits below a section. Striped placeholder
   while no asset is wired; swap inner <span> for an <img>. */
.ap-cs-fig {
  margin: 2.5rem 0;
}
.ap-cs-fig-box {
  min-height: 16rem;
  background-color: rgba(40,40,40,0.03);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 14px,
    rgba(40,40,40,0.05) 14px,
    rgba(40,40,40,0.05) 15px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ap-cs-fig-box img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  object-position: center;
  display: block;
}
.ap-cs-fig-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}
.ap-cs-fig-box--white {
  background-color: #ffffff;
  background-image: none;
}
.ap-cs-fig-box--vysk-call {
  background-color: #e6e6e6;
  background-image: none;
}
.ap-cs-fig-box--circonus-dashboard {
  background-color: #f5f8fb;
  background-image: none;
}
.ap-vysk-onboarding-figs .ap-cs-fig-box img {
  max-height: none;
}
.ap-cs-fig-link:focus-visible {
  outline: 2px solid var(--ap-accent);
  outline-offset: 4px;
}
.ap-cs-fig-box .ap-work-panel-img-label {
  background: var(--ap-white);
  border: 1px solid var(--ap-rule);
  padding: 0.6em 1em;
  font-family: var(--ap-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-gray);
}
.ap-cs-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ap-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ap-black);
}
.ap-cs-side-list li {
  position: relative;
  padding-left: 1.1em;
}
.ap-cs-side-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ap-gray);
}
.ap-cs-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.ap-cs-video {
  width: min(100%, 280px);
  max-height: 70vh;
  background: var(--ap-black);
  display: block;
  margin: 0 auto;
}
.ap-cs-video-frame {
  position: relative;
  width: 100%;
  min-height: 32rem;
  margin: 0;
  padding: 2rem;
  background: #282828;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-cs-video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(40,40,40,0.08), rgba(40,40,40,0.22));
  transition: opacity 0.2s ease;
}
.ap-cs-video-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background-color: rgba(40,40,40,0.78);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='32' viewBox='0 0 28 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 2L26 16L3 30Z' fill='white'/%3E%3C/svg%3E");
  background-position: 55% 50%;
  background-repeat: no-repeat;
  background-size: 1.35rem auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.28), 0 0.75rem 2rem rgba(0,0,0,0.28);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ap-cs-video-frame:hover::after {
  transform: translate(-50%, -50%) scale(1.05);
}
.ap-cs-video-frame.is-playing::before,
.ap-cs-video-frame.is-playing::after {
  opacity: 0;
}
.ap-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(40, 40, 40, 0.9);
}
.ap-lightbox.open { display: flex; }
.ap-lightbox img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--ap-white);
}
.ap-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(245,242,236,0.45);
  background: transparent;
  color: var(--ap-white);
  font-family: var(--ap-mono);
  font-size: 1.25rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .ap-cs-media-grid { grid-template-columns: 1fr; }
  .ap-cs-fig-box { min-height: 12rem; }
  .ap-cs-video-frame {
    min-height: 26rem;
    padding: 1.5rem;
  }
  .ap-lightbox { padding: 1rem; }
}
.ap-cs-fig-caption {
  font-family: var(--ap-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-top: 1em;
  line-height: 1.6;
}

/* Painpoint quote — eyebrow label + big quote + body */
.ap-cs-quote {
  border-top: 2px solid var(--ap-accent);
  padding-top: 1rem;
  margin-top: 0;
}
.ap-cs-quote-text {
  font-family: var(--ap-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ap-black);
  margin: 0 0 0.75rem;
}
.ap-cs-quote-body {
  font-family: var(--ap-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ap-black);
  margin: 0;
}

/* "Up next" CTA — large block link to the next case study */
.ap-cs-next {
  border-top: 2px solid var(--ap-rule);
  padding: 3rem 0 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.ap-cs-next:hover { background: rgba(40,40,40,0.02); }
.ap-cs-next-eyebrow {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-bottom: 0.5em;
  display: block;
}
.ap-cs-next-title {
  font-family: var(--ap-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ap-black);
  margin: 0;
}
.ap-cs-next:hover .ap-cs-next-title { color: var(--ap-accent); }
.ap-cs-next-co {
  font-family: var(--ap-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-gray);
  margin-bottom: 0.5em;
  display: block;
}
