/* =========================================================
   Aatif Junaid Mulla — personal site
   Bright paper, Apple Liquid Glass tiles, sky-blue accents,
   Playfair + Inter, particle-comet timeline, tiny metric anims.
   ========================================================= */

:root {
  --paper: #EEEDE8;
  --paper-2: #E7E3DA;
  --ink: #26241f;
  --ink-soft: #6b655b;

  --blue: #2f7fb3;           /* brand accent: buttons, dots, icons, hero gradient */
  --blue-deep: #1f5575;
  --blue-text: #226aa0;      /* AA-safe accent for small text and links (>=4.5:1 on paper and glass) */
  --sky: #8fcdee;
  --sky-deep: #4f9fd4;
  --sky-bright: #cdebfb;
  --navy: #1f2c49;           /* single toolkit navy */

  --line: rgba(38, 36, 31, 0.09);
  --line-strong: rgba(38, 36, 31, 0.16);

  --tile-bg: rgba(255, 255, 255, 0.62);
  --tile-bg-hover: rgba(255, 255, 255, 0.78);
  --tile-border: rgba(255, 255, 255, 0.85);
  --tile-shadow: 0 16px 44px rgba(40, 70, 95, 0.10);
  --tile-shadow-hover: 0 26px 64px rgba(40, 110, 160, 0.18);
  --tile-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1380px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-wrap: break-word; word-wrap: break-word;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* soft drifting color field */
body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: -1;
  background:
    radial-gradient(40vmax 40vmax at 12% 6%,  rgba(143, 205, 238, 0.40), transparent 60%),
    radial-gradient(34vmax 34vmax at 90% 14%, rgba(205, 235, 251, 0.52), transparent 60%),
    radial-gradient(46vmax 46vmax at 80% 88%, rgba(143, 205, 238, 0.34), transparent 62%),
    radial-gradient(30vmax 30vmax at 16% 92%, rgba(214, 199, 170, 0.20), transparent 62%);
  filter: blur(12px);
  animation: drift 36s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -2.5%, 0) scale(1.08); }
}

/* ---------- liquid glass tile ---------- */
.tile {
  position: relative;
  background: var(--tile-bg);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  box-shadow: var(--tile-shadow), var(--tile-inset);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.45s ease, border-color 0.45s ease;
}
.tile:hover { transform: translateY(-6px); background: var(--tile-bg-hover); box-shadow: var(--tile-shadow-hover), var(--tile-inset); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem var(--gutter);
  background: rgba(238, 237, 232, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 0.98rem; letter-spacing: -0.01em; font-weight: 700; color: var(--ink); }
.wordmark:hover { color: var(--blue-text); }
.site-nav { display: flex; gap: clamp(0.8rem, 2.4vw, 1.7rem); }
.site-nav a {
  font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); padding-bottom: 3px;
  border-bottom: 1.5px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); border-color: var(--sky); }
.site-nav .case-home {
  align-self: center; padding: 0.5rem 0.9rem; margin: -0.45rem 0; border: 1px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; box-shadow: 0 5px 14px rgba(20,48,76,0.18);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.site-nav .case-home:hover {
  background: var(--blue-text); border-color: var(--blue-text); color: #fff; box-shadow: 0 7px 18px rgba(47,127,179,0.25); transform: translateY(-1px);
}
/* Case Studies leaves the page, so it reads as a destination, not a jump link. */
.site-nav .nav-page {
  display: inline-flex; align-items: center; gap: 0.3rem; align-self: center;
  padding: 0.34rem 0.75rem; margin: -0.34rem 0; border: 1px solid var(--line-strong);
  border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: var(--ink); font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.site-nav .nav-page:hover {
  color: var(--blue-text); border-color: var(--sky-deep); background: rgba(143, 205, 238, 0.22); transform: translateY(-1px);
}
.nav-page__arrow { font-size: 0.92em; line-height: 1; color: var(--blue-text); }

/* ---------- shared layout ---------- */
.hero, .section, .site-footer { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding-top: clamp(3.5rem, 9vw, 6.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.kicker { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-deep); font-weight: 600; margin-bottom: 1.1rem; }
/* Display name: bold and luminous rather than heavy. No dark outline or drop
   shadow (they read as muddy against the paper); the weight plus a bright
   two-layer glow carries it. Gradient starts at --blue, not --blue-deep. */
.hero__name {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.8rem, 8.4vw, 6rem); line-height: 1.1; letter-spacing: -0.015em; padding-bottom: 0.1em;
  /* #3585bd, not --sky-deep: sky-deep is only 2.47:1 on paper and fails AA even
     for large text. This reads as the same lift in the shimmer at 3.4:1. */
  background: linear-gradient(110deg, var(--blue) 0%, var(--blue) 26%, #3585bd 62%, var(--blue) 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 9px rgba(143, 205, 238, 0.62))    /* tight highlight */
          drop-shadow(0 0 30px rgba(79, 159, 212, 0.42));   /* wide sky-blue aura */
  animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 0% center; } 50% { background-position: 100% center; } 100% { background-position: 0% center; } }
.hero__tagline { font-size: clamp(0.95rem, 2.2vw, 1.15rem); font-weight: 600; color: var(--ink); margin-bottom: 1.6rem; }
.hero__story { position: relative; max-width: 52rem; margin: 0 auto 2.4rem; }
.hero__statement {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.25rem); line-height: 1.3; color: var(--ink); margin: 0 auto;
}
.hero__statement span, .hero__statement strong { display: block; }
.hero__statement strong { margin-top: 0.16em; }
.hero__statement strong { font-style: normal; font-weight: 700; color: var(--blue-deep); }
.hero__actions { justify-content: center; }

/* buttons */
.hero__actions, .contact__actions, .samples__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--ink);
  padding: 0.72rem 1.4rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(40, 110, 160, 0.2); }
/* --blue-text, not --blue: white on #2f7fb3 is 4.37:1 and fails AA. */
.btn--primary { background: var(--blue-text); color: #fff; border-color: var(--blue-text); }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn:not(.btn--primary):hover { border-color: var(--blue); color: var(--blue-deep); }

/* ---------- section scaffold ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding-top: clamp(1.75rem, 4vw, 2.5rem); padding-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.eyebrow { display: block; font-size: clamp(1.05rem, 1.9vw, 1.4rem); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--blue-deep); margin-bottom: 0.6rem; transition: color 0.4s ease, text-shadow 0.4s ease; }
.eyebrow--active { color: var(--blue-text); text-shadow: 0 0 22px rgba(47, 127, 179, 0.55); }
.toolkit-wrap { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.toolkit-label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.95rem; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.14; letter-spacing: -0.01em; }

/* ---------- shared logo chip ---------- */
.logo-chip {
  flex: 0 0 auto; height: 50px; min-width: 50px; width: auto; max-width: 100%; border-radius: 13px;
  background: #fff; border: 1px solid var(--line); overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; box-shadow: 0 5px 14px rgba(40, 70, 95, 0.12); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-chip img { height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.logo-duo { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.logo-plus { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); line-height: 1; }
.logo-chip--mark { padding: 5px; }
.logo-chip--dark { background: #23262e; border-color: #23262e; }
a.logo-chip:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 9px 22px rgba(40, 110, 160, 0.28); }

/* ---------- experience timeline: particle comet ---------- */
.timeline { position: relative; padding-left: 0; }
/* canvas spans the full list height (top+bottom:0) so the comet track maps
   exactly to the experience section and can never go stale */
.tl-comet {
  position: absolute; left: 50%; transform: translateX(-50%); top: 0; width: 100vw; pointer-events: none; z-index: 0; opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.timeline__list { position: relative; z-index: 1; margin: 0; padding: 0; }
/* proximity highlight: the card the comet head is passing behind lifts and glows */
.tl-card { transition: box-shadow 0.6s ease, border-color 0.6s ease, transform 0.6s ease; }
@media (min-width: 769px) {
  .tl-item.comet-near .tl-card {
    border-color: rgba(143, 205, 238, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 22px 56px rgba(40, 110, 160, 0.20),
                0 0 0 1px rgba(143, 205, 238, 0.45),
                0 0 36px 8px rgba(143, 205, 238, 0.24);
  }
}

.tl-item { position: relative; padding-left: 64px; margin-bottom: 1.4rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: 4px; top: 30px; width: 16px; height: 16px; border-radius: 50%; z-index: 2;
  background: var(--paper); border: 2px solid var(--line-strong);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.tl-item.lit .tl-dot {
  border-color: var(--blue); background: var(--blue);
  box-shadow: 0 0 0 5px rgba(143, 205, 238, 0.35), 0 0 14px rgba(47, 127, 179, 0.5); transform: scale(1.18);
}
.tl-card { padding: clamp(1.4rem, 3vw, 2rem); }
.tl-item.lit .tl-card { border-color: rgba(143, 205, 238, 0.6); box-shadow: var(--tile-shadow), 0 0 0 1px rgba(143, 205, 238, 0.4); }

.tl-head { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 0.8rem; }
.tl-headtext { min-width: 0; }
.tl-date { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--blue-deep); margin-bottom: 0.3rem; }
.tl-role { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.12; }
.tl-org { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.25rem; }
.tl-link { color: var(--blue-text); border-bottom: 1.5px solid var(--sky); transition: color 0.2s ease; }
.tl-link:hover { color: var(--blue-deep); }
.tl-desc { font-style: italic; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 1.1rem; }
.tl-note { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; margin: -0.35rem 0 1.1rem; }
.tl-note__badge {
  display: inline-block; flex: 0 0 auto; padding: 0.14rem 0.6rem; border-radius: 999px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--blue-deep); background: rgba(143, 205, 238, 0.26); border: 1px solid rgba(143, 205, 238, 0.5);
  vertical-align: 1px;
}
/* MBA interlude: a slim dashed card, deliberately lighter than a job card */
.tl-gapcard {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 0.95rem 1.25rem; border: 1.5px dashed var(--line-strong); border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
}
.logo-chip--sm { height: 40px; min-width: 40px; padding: 6px; border-radius: 10px; }
.logo-chip--sm img { height: 22px; }
.tl-gaptext { margin: 0.15rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
.tl-gaptext strong { color: var(--ink); font-weight: 600; }
.tl-lead { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1rem; max-width: 64ch; }
.tl-points { display: grid; gap: 0.6rem; margin-bottom: 1.4rem; }
.tl-points li { position: relative; padding-left: 1.1rem; color: var(--ink-soft); }
/* Readability: the timeline card runs to 1380px, which pushed body copy to about
   97 characters per line. Cap the measure without narrowing the tiles themselves. */
.tl-desc, .tl-points li { max-width: 76ch; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 2px rgba(47, 127, 179, 0.25); }

/* metrics with tiny animated icons */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-bottom: 0.2rem; }
.metrics > .metric:nth-child(4):last-child { grid-column: 2 / 3; }   /* center a lone 4th tile */
/* 5 tiles: three across the top, the last two centered underneath */
.metrics--balanced { grid-template-columns: repeat(6, 1fr); }
.metrics--balanced > .metric { grid-column: span 2; }
.metrics--balanced > .metric:nth-child(4) { grid-column: 2 / span 2; }

/* reports owned: collapsible depth panel in the POLITICO card */
.reports { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.05rem; }
.reports__summary { display: block; cursor: pointer; list-style: none; }
.reports__summary::-webkit-details-marker { display: none; }
.reports__head { display: flex; align-items: center; justify-content: flex-start; gap: 0.55rem; }
.reports__title { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--blue-deep); }
.reports__chev { color: var(--blue-text); font-size: 1.3rem; line-height: 1; transition: transform 0.3s ease; }
.reports[open] .reports__chev { transform: rotate(90deg); }
.reports__meta { display: block; margin-top: 0.3rem; font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); }
.reports__list { margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.reports__item { display: flex; gap: 0.75rem; align-items: flex-start; }
.reports__freq { flex: 0 0 auto; align-self: flex-start; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-deep); background: rgba(143, 205, 238, 0.26); border: 1px solid rgba(143, 205, 238, 0.5); border-radius: 999px; padding: 0.24rem 0; width: 72px; text-align: center; }
.reports__body { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.reports__body strong { color: var(--ink); font-weight: 600; }
.reports__foot { margin: 0.95rem 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.metric {
  position: relative; background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem 1rem 0.95rem; overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.metric:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.9); box-shadow: 0 12px 26px rgba(40, 110, 160, 0.18); border-color: var(--sky); }
.metric .mi { position: absolute; top: 0.7rem; right: 0.7rem; width: 20px; height: 20px; color: var(--blue); opacity: 0.92; }
.metric .mi svg { width: 20px; height: 20px; display: block; }
.metric__num { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; font-weight: 600; color: var(--blue-deep); margin-bottom: 0.35rem; padding-right: 1.6rem; }
.metric__num--sm { font-size: clamp(1.15rem, 2.2vw, 1.45rem); padding-top: 0.3rem; }
.metric__label { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.3; }

/* design-partner quote */
.quote { position: relative; overflow: hidden; margin: 1.5rem 0 0; padding: 1.5rem 1.7rem 1.2rem; background: rgba(47, 127, 179, 0.08); border-left: 3px solid var(--blue); border-radius: 0 14px 14px 0; }
.quote::before { content: "\201C"; position: absolute; top: 0.1rem; right: 0.9rem; font-family: var(--serif); font-weight: 700; font-size: 4.2rem; line-height: 1; color: rgba(47, 127, 179, 0.14); pointer-events: none; }
.quote__text { position: relative; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.42; margin-bottom: 0.85rem; }
.quote__cite { display: flex; flex-direction: column; gap: 0.1rem; }
.quote__name { align-self: flex-start; font-weight: 600; font-size: 0.95rem; color: var(--blue-deep); border-bottom: 1.5px solid var(--sky); transition: color 0.2s ease; }
.quote__name:hover { color: var(--blue-text); }
.quote__role { font-size: 0.78rem; color: var(--ink-soft); }

/* design partner testimonial carousel (inside the Aisepedia card) */
/* PMM 2.0 event strip: hosted-event proof inside the Aisepedia card */
.event-strip {
  display: block; margin-top: 1.4rem; padding: 1.05rem 1.3rem;
  background: rgba(143, 205, 238, 0.10); border: 1px solid rgba(143, 205, 238, 0.45);
  border-radius: 16px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.event-strip:hover { background: rgba(143, 205, 238, 0.18); border-color: var(--sky-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(40, 110, 160, 0.14); }
.event-strip__head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.event-strip__badge { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); background: rgba(143, 205, 238, 0.3); border: 1px solid rgba(143, 205, 238, 0.55); border-radius: 999px; padding: 0.18rem 0.6rem; }
.event-strip__meta { font-size: 0.74rem; color: var(--ink-soft); }
.event-strip__title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; color: var(--ink); margin-bottom: 0.55rem; }
.event-strip__panelists { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; padding: 0; list-style: none; }
.event-strip__panelists li { font-size: 0.72rem; font-weight: 500; color: var(--blue-deep); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.22rem 0.6rem; }
.event-strip__link { font-size: 0.78rem; font-weight: 600; color: var(--blue-text); }

.dp-carousel { margin-top: 1.1rem; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.dp-label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--blue-deep); }
.dp-nav { display: flex; gap: 0.4rem; flex: 0 0 auto; }
.dp-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6); color: var(--blue-deep); font-size: 1.25rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.dp-arrow:hover { background: rgba(143, 205, 238, 0.35); border-color: var(--sky-deep); transform: translateY(-1px); }
.dp-arrow:disabled { opacity: 0.3; cursor: default; transform: none; }
.dp-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dp-track::-webkit-scrollbar { display: none; }
.dp-slide {
  flex: 0 0 calc(50% - 0.5rem); min-width: calc(50% - 0.5rem); scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  padding: 0.95rem 1.15rem 0.85rem; background: rgba(47, 127, 179, 0.08);
  border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0;
}
.dp-slide::before { content: "\201C"; position: absolute; top: 0; right: 0.6rem; font-family: var(--serif); font-weight: 700; font-size: 2.8rem; line-height: 1; color: rgba(47, 127, 179, 0.14); pointer-events: none; }
.dp-slide blockquote { position: relative; margin: 0 0 0.55rem; font-family: var(--serif); font-style: italic; font-size: clamp(0.85rem, 1.5vw, 0.98rem); line-height: 1.4; }
.dp-slide figcaption { margin-top: auto; }
.dp-name { display: inline-block; font-weight: 600; font-size: 0.82rem; color: var(--blue-deep); }
a.dp-name { border-bottom: 1.5px solid var(--sky); transition: color 0.2s ease; }
a.dp-name:hover { color: var(--blue-text); }
.dp-role { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.1rem; }

/* ---------- design-partner testimonials ---------- */

/* ---------- education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.2rem; }
.edu-card { padding: 1.6rem 1.6rem; }
.edu-card__head { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 0.9rem; }
.edu-card__deg { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.15; }
.edu-card__school { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.3rem; }
.edu-card__note { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- toolkit: standardized single navy ---------- */
.tool-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tool-group {
  background: var(--tile-bg);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--tile-border); border-top: 2px solid rgba(143, 205, 238, 0.85);
  border-radius: 16px; padding: 1.05rem 1.1rem;
  box-shadow: 0 10px 28px rgba(40, 70, 95, 0.08); box-shadow: 0 10px 28px rgba(40, 70, 95, 0.08), var(--tile-inset);
}
.tool-group__name { display: flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-deep); font-weight: 700; margin-bottom: 0.85rem; }
.tool-group__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky-deep); flex: 0 0 auto; }
.tools { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tools li {
  font-size: 0.78rem; font-weight: 500; color: var(--blue-deep);
  background: rgba(143, 205, 238, 0.22); border: 1px solid rgba(143, 205, 238, 0.5);
  border-radius: 999px; padding: 0.32rem 0.7rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tools li:hover {
  border-color: rgba(120, 200, 255, 0.6); color: var(--blue-deep); background: rgba(143, 205, 238, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 110, 160, 0.15);
}

/* ---------- work / what I build ---------- */
.sample-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.sample { padding: 1.8rem 1.7rem; }
.sample__title { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.14; margin-bottom: 0.7rem; }
.sample__body { color: var(--ink-soft); font-size: 0.97rem; }
.samples__cta { justify-content: center; margin-top: 1.5rem; }
.case-study-spotlight {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-top: 1.5rem; padding: clamp(1.5rem, 4vw, 2.7rem);
  border-color: rgba(143,205,238,0.65); box-shadow: 0 22px 56px rgba(40,110,160,0.14), var(--tile-inset);
}
.case-study-spotlight__eyebrow { display: block; color: var(--blue-text); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 0.65rem; }
.case-study-spotlight h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.35rem); line-height: 1.12; max-width: 20ch; }
.case-study-spotlight__copy p { color: var(--ink-soft); max-width: 54ch; margin: 0.8rem 0 1.2rem; }
.case-study-spotlight__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.case-study-spotlight__list li { min-width: 0; padding: 1rem; border-radius: 15px; background: rgba(143,205,238,0.12); border: 1px solid rgba(143,205,238,0.34); }
.case-study-spotlight__list span { display: block; color: var(--blue-text); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 0.45rem; }
.case-study-spotlight__list strong { display: block; font-family: var(--serif); font-size: 1rem; line-height: 1.2; }
.case-study-spotlight__list small { display: block; color: var(--ink-soft); font-size: 0.74rem; line-height: 1.4; margin-top: 0.3rem; }
.case-study-spotlight__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- positioning and messaging case studies ---------- */
.case-page { overflow: clip; }
.case-hero, .case-section {
  max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter);
}
.case-hero { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); text-align: center; }
.case-hero__title {
  font-family: var(--serif); font-size: clamp(3rem, 7.5vw, 6.2rem); line-height: 0.98; letter-spacing: -0.035em;
  color: var(--blue-deep); margin-bottom: 1.35rem;
}
.case-hero__lede { max-width: 34ch; margin: 0 auto 1rem; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.32; }
.case-hero__context { max-width: 72ch; margin: 0 auto; color: var(--ink-soft); font-size: 1rem; }
.case-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.8rem; }
.case-scoreboard {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.case-stat {
  min-width: 0; padding: 1.2rem 0.85rem; border: 1px solid rgba(255,255,255,0.9); border-radius: 18px;
  background: rgba(255,255,255,0.58); box-shadow: 0 12px 30px rgba(40,70,95,0.08);
}
.case-stat strong { display: block; font-family: var(--serif); color: var(--blue-deep); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1; }
.case-stat span { display: block; margin-top: 0.45rem; color: var(--ink-soft); font-size: 0.75rem; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.04em; }
.case-section { padding-top: clamp(2.75rem, 6vw, 5rem); padding-bottom: clamp(2.75rem, 6vw, 5rem); }
.case-section__head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.case-section--intro { padding-top: 1rem; }
.message-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.message-flow > div {
  position: relative; min-height: 150px; padding: 1.35rem; border-radius: 20px; background: rgba(255,255,255,0.6);
  border: 1px solid var(--tile-border); box-shadow: 0 10px 28px rgba(40,70,95,0.08);
}
.message-flow span { display: block; color: var(--blue-text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 1.2rem; }
.message-flow strong { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; margin-bottom: 0.55rem; }
.message-flow small { display: block; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.case-study {
  position: relative; isolation: isolate; padding: clamp(1.5rem, 4vw, 2.8rem); margin-bottom: 1.5rem; scroll-margin-top: 6rem;
  transition: border-color 0.45s ease, background-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}
.case-study.is-focus {
  border-color: rgba(110, 209, 255, 0.92);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 0 0 1px rgba(115, 211, 255, 0.68),
              0 0 22px 3px rgba(89, 197, 255, 0.38),
              0 0 54px 12px rgba(143, 205, 238, 0.28),
              0 22px 54px rgba(40,70,95,0.12);
  transform: translateY(-2px);
}
.case-study__header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.1rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.case-study__number {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
}
.case-study__label { color: var(--blue-text); text-transform: uppercase; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.case-study__header h2 { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.12; max-width: 24ch; }
.case-study__outcome {
  max-width: 18rem; border: 1px solid rgba(143,205,238,0.7); border-radius: 999px; background: rgba(143,205,238,0.22);
  color: var(--blue-deep); padding: 0.5rem 0.85rem; font-size: 0.75rem; font-weight: 600; line-height: 1.3; text-align: center;
}
.case-study__outcome--direct { background: rgba(31,85,117,0.1); border-color: rgba(31,85,117,0.35); }
.case-study__grid { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: clamp(1.5rem, 4vw, 3rem); padding: 1.8rem 0; }
.case-study__grid h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.5rem; }
.case-study__grid p { color: var(--ink-soft); }
.case-actions { display: grid; gap: 0.75rem; }
.case-actions li { display: grid; grid-template-columns: 7rem 1fr; gap: 0.8rem; color: var(--ink-soft); }
.case-actions span { color: var(--blue-deep); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; padding-top: 0.15rem; }
.message-proof { background: var(--navy); border-radius: 20px; padding: clamp(1.3rem, 3vw, 2rem); color: #fff; display: grid; gap: 0.8rem; }
.message-proof__label { color: var(--sky-bright); text-transform: uppercase; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.11em; }
.message-proof blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.3vw, 1.6rem); line-height: 1.25; }
.case-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-results p { padding: 1.1rem; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; border-right: 1px solid var(--line); }
.case-results p:last-child { border-right: 0; }
.case-results strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1rem; margin-bottom: 0.25rem; }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.audience-grid > div { padding: 1.2rem; border-radius: 16px; background: rgba(143,205,238,0.12); border: 1px solid rgba(143,205,238,0.34); }
.audience-grid span { display: block; font-family: var(--serif); font-weight: 600; margin-bottom: 0.35rem; }
.audience-grid p { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.case-note { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.75rem; font-style: italic; }
.proof-quote { margin: 0; padding: clamp(1.4rem, 3vw, 2.2rem); border-left: 4px solid var(--sky-deep); border-radius: 0 18px 18px 0; background: rgba(255,255,255,0.5); }
.proof-quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.5vw, 1.55rem); line-height: 1.4; }
.proof-quote figcaption { margin-top: 0.8rem; color: var(--blue-deep); font-size: 0.8rem; font-weight: 600; }
.activation-result { display: flex; align-items: center; gap: 1.3rem; padding: clamp(1.3rem, 3vw, 2rem); border-radius: 20px; color: #fff; background: linear-gradient(125deg, var(--blue-deep), var(--blue)); }
.activation-result > strong { flex: 0 0 auto; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.9; }
.activation-result span { display: block; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; }
.activation-result p { margin-top: 0.3rem; color: rgba(255,255,255,0.78); font-size: 0.8rem; }
.attribution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.attribution-card { padding: clamp(1.5rem, 3vw, 2.2rem); }
.attribution-card > span { display: inline-block; color: var(--blue-deep); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.9rem; }
.attribution-card h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.2; margin-bottom: 0.7rem; }
.attribution-card p { color: var(--ink-soft); }
.attribution-card--direct { border-color: rgba(79,159,212,0.55); box-shadow: 0 16px 44px rgba(47,127,179,0.14); }
.case-cta { text-align: center; max-width: 62rem; }
.case-cta .eyebrow { margin-bottom: 0.8rem; }
.case-cta .section-title { margin: 0 auto; max-width: 28ch; }

/* ---------- approach ---------- */
.framework-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.framework { padding: 1.8rem 1.8rem; }
.framework__title { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.15; margin-bottom: 0.6rem; }
.framework p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- contact ---------- */
.contact-tile { padding: clamp(1.8rem, 4vw, 2.8rem); }
.contact-intro { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; }
.contact-bubble {
  position: relative; flex: 1 1 auto; min-width: 0;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--tile-border); border-radius: 20px; border-top-left-radius: 5px;
  padding: 1.1rem 1.4rem; box-shadow: 0 8px 22px rgba(40, 70, 95, 0.08);
}
.contact-bubble::before {
  content: ""; position: absolute; left: -6px; top: 22px; width: 13px; height: 13px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 1px solid var(--tile-border); border-bottom: 1px solid var(--tile-border);
  transform: rotate(45deg); border-bottom-left-radius: 3px;
}
.contact-bubble .contact__lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin-bottom: 0.5rem; }
.contact-bubble .contact__joke { margin-bottom: 0; }
.contact-photo {
  flex: 0 0 auto; width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(143, 205, 238, 0.9); background: #cfe6f5;
  box-shadow: 0 8px 22px rgba(40, 110, 160, 0.22), 0 0 0 6px rgba(143, 205, 238, 0.20);
}
.contact__lead { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.8vw, 1.8rem); line-height: 1.35; max-width: 34ch; margin-bottom: 0.9rem; }
.contact__joke { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 2rem; }
.contact-list { display: grid; gap: 0; margin-bottom: 2rem; max-width: 44rem; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact__key { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.contact-list a { color: var(--blue-text); border-bottom: 1.5px solid var(--sky); padding-bottom: 1px; transition: color 0.2s ease; }
.contact-list a:hover { color: var(--blue-deep); }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column;
  gap: 0.9rem; padding-top: 2.2rem; padding-bottom: 2.2rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-soft);
}
.site-footer__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer__note { margin: 0; font-style: italic; font-size: 0.78rem; color: var(--ink-soft); opacity: 0.85; }
.footer-linkedin { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--blue-deep); padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.footer-linkedin svg { width: 18px; height: 18px; }
.footer-linkedin:hover { background: var(--blue-text); color: #fff; border-color: var(--blue-text); transform: translateY(-2px); }

/* ---------- reveal / fade-in-up + light stagger ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.edu-grid .reveal:nth-child(2), .sample-grid .reveal:nth-child(2), .framework-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.edu-grid .reveal:nth-child(3), .sample-grid .reveal:nth-child(3), .framework-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.framework-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- tiny metric icon animations (one-shot on reveal) ---------- */
.metric .mi { opacity: 0; }
.is-visible .metric .mi { animation: miPop 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards; }
.is-visible .metric--rocket .mi { animation: miRocket 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards; }
.is-visible .metric--up .mi { animation: miUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards; }
.is-visible .metric--down .mi { animation: miDown 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards; }
.is-visible .metric--bolt .mi { animation: miBolt 0.8s ease 0.25s forwards; }
.metric:hover .mi { transform: scale(1.15); transition: transform 0.2s ease; }

@keyframes miPop { 0% { opacity: 0; transform: scale(0.5); } 70% { transform: scale(1.15); } 100% { opacity: 0.92; transform: scale(1); } }
@keyframes miRocket { 0% { opacity: 0; transform: translateY(7px) rotate(-8deg); } 60% { opacity: 1; } 100% { opacity: 0.92; transform: translateY(0) rotate(0); } }
@keyframes miUp { 0% { opacity: 0; transform: translate(-5px, 5px); } 100% { opacity: 0.92; transform: translate(0, 0); } }
@keyframes miDown { 0% { opacity: 0; transform: translate(-5px, -5px); } 100% { opacity: 0.92; transform: translate(0, 0); } }
@keyframes miBolt { 0% { opacity: 0; transform: scale(0.6); } 35% { opacity: 1; transform: scale(1.25); } 55% { opacity: 0.5; } 75% { opacity: 1; } 100% { opacity: 0.92; transform: scale(1); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .framework-grid { grid-template-columns: 1fr 1fr; }
  .tool-groups { grid-template-columns: repeat(2, 1fr); }
  .case-scoreboard { grid-template-columns: repeat(3, 1fr); }
  .case-study__header { grid-template-columns: auto 1fr; }
  .case-study__outcome { grid-column: 2; justify-self: start; }
  .case-results { grid-template-columns: repeat(2, 1fr); }
  .case-results p:nth-child(2) { border-right: 0; }
  .case-results p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
  .hero__name { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero__statement { font-size: clamp(1.25rem, 5vw, 1.6rem); }
  .hero__story { margin-bottom: 2rem; }
  .section-title { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }
  .case-header { align-items: flex-start; }
  .case-hero { padding-top: 3.5rem; }
  .message-flow, .case-study__grid, .attribution-grid { grid-template-columns: 1fr; }
  .case-study-spotlight { grid-template-columns: 1fr; }
  .message-flow > div { min-height: 0; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .case-actions li { grid-template-columns: 5.5rem 1fr; }

  /* stack the experience card header so nothing is squished into a column */
  .tl-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .tl-headtext { width: 100%; }

  /* drop the comet rail on mobile; cards span the full width */
  .tl-comet, .tl-dot { display: none; }
  .tl-item { padding-left: 0; }
  .tl-lead, .tl-points li, .tl-desc { max-width: 100%; }
  .dp-slide { flex: 0 0 100%; min-width: 100%; }
  .tl-note { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  /* single-column grids */
  .edu-grid, .sample-grid, .proof-grid { grid-template-columns: 1fr; }
  .metrics, .metrics--balanced { grid-template-columns: repeat(2, 1fr); }
  .metrics--balanced > .metric, .metrics--balanced > .metric:nth-child(4) { grid-column: auto; }

  /* horizontal swipe rhythm for toolkit + pillars */
  .tool-groups, .framework-grid {
    display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.5rem;
  }
  .tool-groups::-webkit-scrollbar, .framework-grid::-webkit-scrollbar { display: none; }
  .tool-group, .framework { flex: 0 0 80%; min-width: 80%; scroll-snap-align: start; }

  /* touch targets: minimum 44px */
  /* Compact sticky bar. Six wrapping links stacked the header to 220px, 28% of a
     320px screen, while stuck to the top. The wordmark keeps its own row and the
     nav becomes one horizontally scrollable row, matching how .tool-groups and
     .framework-grid already scroll on mobile. */
  .site-header { flex-wrap: wrap; row-gap: 0.3rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
  /* 44px tap target. At 0.9rem the wordmark box was 23px tall, under the 24px
     WCAG 2.2 AA minimum for Target Size, and it is a real link (LinkedIn on the
     home page, back to home elsewhere). */
  .wordmark { font-size: 0.9rem; min-height: 44px; display: inline-flex; align-items: center; }
  .site-nav {
    flex: 1 0 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto;
    justify-content: flex-start; gap: 1rem;
    scrollbar-width: none; -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  .site-nav a, .btn, .contact-list a, .footer-linkedin { min-height: 44px; display: inline-flex; align-items: center; }
  .site-nav a { min-width: 44px; justify-content: center; }
  .tl-link, a.dp-name { min-height: 44px; display: inline-flex; align-items: center; }
  .logo-chip--sm { width: 44px; height: 44px; }
  .dp-arrow { width: 44px; height: 44px; }          /* meet the 44px touch target */
  .dp-head { flex-wrap: wrap; }                      /* label wraps rather than squeezing the arrows */
  .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.5rem 0; }
  .contact-intro { gap: 0.85rem; }
  .contact-photo { width: 80px; height: 80px; }

  /* neon focus state replaces the comet on mobile/tablet */
  .tl-card { transition: box-shadow 0.5s ease, border-color 0.5s ease; }
  .tl-item.is-focus .tl-card {
    border-color: rgba(143, 205, 238, 0.9);
    box-shadow: 0 0 0 1px rgba(120, 200, 255, 0.6),
                0 0 18px 2px rgba(120, 200, 255, 0.45),
                0 0 42px 10px rgba(143, 205, 238, 0.32);
  }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding-top: clamp(1.5rem, 6vw, 2.25rem); padding-bottom: clamp(1.5rem, 6vw, 2.25rem); }
  .hero__name { font-size: clamp(2.2rem, 13vw, 3rem); }
  .section-title { font-size: 1.35rem; }
  .tl-role { font-size: 1.25rem; }
  .tl-card, .contact-tile { padding: 1.25rem; }
  .metrics, .metrics--balanced { grid-template-columns: 1fr; }
  .metrics > .metric:nth-child(4):last-child { grid-column: auto; }
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .case-scoreboard, .case-results, .audience-grid { grid-template-columns: 1fr; }
  .case-results p { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-results p:last-child { border-bottom: 0; }
  .case-study__header { grid-template-columns: 1fr; }
  .case-study__outcome { grid-column: 1; }
  .case-actions li { grid-template-columns: 1fr; gap: 0.2rem; }
  .activation-result { align-items: flex-start; flex-direction: column; }
  .case-study-spotlight__list { grid-template-columns: 1fr; }
  .case-study-spotlight__list li:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .hero__name { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .case-study { transition: none; }
  .case-study.is-focus { transform: none; }
  .tile:hover, .btn:hover, .metric:hover, .tools li:hover, a.logo-chip:hover, .footer-linkedin:hover { transform: none; }
  .metric .mi { opacity: 0.92; animation: none !important; }
}

/* ---------- keyboard focus (WCAG 2.4.7 Focus Visible) ---------- */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, a.logo-chip:focus-visible, .dp-arrow:focus-visible,
.footer-linkedin:focus-visible, .event-strip:focus-visible, .reports__summary:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 4px;
}
/* fallback for engines without :focus-visible support */
@supports not selector(:focus-visible) {
  a:focus, button:focus, summary:focus { outline: 3px solid var(--blue); outline-offset: 3px; }
}

/* skip link: lets keyboard users jump past the nav (WCAG 2.4.1) */
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }
.skip-link {
  position: absolute; top: 0.5rem; left: 50%; z-index: 100;
  transform: translateX(-50%) translateY(-250%);
  padding: 0.6rem 1.15rem; border-radius: 999px;
  background: var(--blue-deep); color: #fff; font-size: 0.85rem; font-weight: 600;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }
