  @import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Inter:wght@400;500;600&display=swap');

  :root {
    --bg: #0c0b09;
    --bg-raised: #16130f;
    --bg-panel: #1d1912;
    --line: #332c22;
    --ink: #f3ede1;
    --ink-dim: #b8ac98;
    --ink-faint: #7d7361;
    --clay: #c9312a;
    --clay-dim: #7c1f1a;
    --red: #8f231d;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  html,
  body {
    margin: 0;
    padding: 0;
  }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-inline: 0;
  }

  ::selection {
    background: var(--clay);
    color: #0c0b09;
  }

  .wrap {
    max-width: 100%;
    margin-inline: auto;
    /* padding-inline: 24px; */
    padding: 100px 70px;
  }

  @media (min-width:720px) {
    .wrap {
      /* padding-inline: 48px; */
    }
  }

  h1,
  h2,
  h3 {
    font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    text-wrap: balance;
    margin: 0;
  }

  a {
    color: inherit;
  }

  img {
    max-width: 100%;
  }

  .eyebrow {
    font-family: 'Big Shoulders Display';
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--clay);
    font-weight: 500;
  }

  /* ---------- nav ---------- */
  header.nav {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
  }

  .nav-mark {
    font-family: 'Big Shoulders Display';
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: .04em;

    a {
      text-decoration: none;
    }
  }

  .nav-links {
    display: none;
    gap: 28px;
    font-size: .86rem;
    color: var(--ink-dim);
  }

  .nav-links a {
    text-decoration: none;
    transition: color .15s;
  }

  .nav-links a:hover {
    color: var(--ink);
  }

  @media (min-width:640px) {
    .nav-links {
      display: flex;
    }
  }

  .nav-cta {
    font-size: .8rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--clay);
    padding: 9px 16px;
    border-radius: 2px;
    text-decoration: none;
    letter-spacing: .02em;
  }

  .nav-cta:hover {
    background: var(--red);
  }

  .nav-top {
    transition-duration: .3s;
    transition-property: transform;
  }

  /* ---------- hero ---------- */
  .hero {
    padding-block: 88px 72px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(100deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 42%, color-mix(in srgb, var(--bg) 28%, transparent) 100%),
      url('../assets/bg/hero-bokeh.jpg');
    background-size: cover, cover;
    background-position: center, center 35%;
    background-repeat: no-repeat, no-repeat;
  }

  .hero-inner {
    position: relative;
  }

  .hero-grid {
    display: grid;
    gap: 48px;
  }

  @media (min-width:860px) {
    .hero-grid {
      grid-template-columns: 50% 1fr;
    }
  }

  .hero h1 {
    font-size: clamp(3.2rem, 11vw, 7.5rem);
    line-height: .86;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.01em;
    color: var(--ink);
  }

  .hero h1 span {
    color: var(--clay);
  }

  .hero-role {
    margin-top: 20px;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    color: var(--ink-dim);
    font-weight: 500;
    max-width: 34ch;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-dim);
    max-width: 56ch;
    border-left: 2px solid var(--clay);
    padding-left: 18px;
  }

  .hero-stats {
    /* display: flex; */
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 44px;
  }

  .stat b {
    display: block;
    font-family: 'Big Shoulders Display';
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--ink);
    line-height: 1;
  }

  .stat {
    margin-bottom: 20px;
    text-align: right;
  }

  .stat span {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    color: var(--ink-faint);
    letter-spacing: .03em;
  }

  /* ---------- icon nav row ---------- */
  .icon-nav {
    padding: 24px 0;
    border-bottom: none;
    position: relative;
    /* background-image: linear-gradient(100deg, var(--bg) 0%, 
    color-mix(in srgb, var(--bg) 78%, transparent) 42%, 
    color-mix(in srgb, var(--bg) 28%, transparent) 100%), 
    url(../assets/bg/hero-bokeh.jpg); */
    background: radial-gradient(circle, rgba(12, 12, 10, 0.0) 0%, rgba(255, 0, 4, 0.5) 0%, rgba(12, 12, 10, 0.1) 100%);
    margin-top: 50px;
  }

  .icon-nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 8px 0px;
    font-family: 'Big Shoulders Display';
    text-transform: uppercase;
  }

  .icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 20%;
    transition: color 0.2s ease;
  }

  .icon-btn:hover span {
    color: #d32f2f;
    /* Red text */
  }

  .nav-icon-img {
    width: 100%;
    max-width: 60px;
    height: auto;
    display: block;
    transition-duration: .3s;
    transition-property: transform;
    margin-bottom: 10px;
    /* transition: filter 0.3s ease; */
  }

  .icon-btn:hover .nav-icon-img {
    filter: brightness(0) saturate(100%) invert(24%) sepia(87%) saturate(2335%) hue-rotate(344deg) brightness(85%) contrast(92%);
  }

  .icon-btn span {
    transition-duration: .3s;
    transition-property: transform;
  }

  .icon-btn:hover .nav-icon-img,
  .icon-btn:hover span {
    transform: scale(1.1);
  }

  .icon-label {
    font-family: 'Big Shoulders Display';
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 8px;
  }

  .icon-btn:hover .icon-label {
    color: var(--ink);
  }

  /* ---------- section shell ---------- */
  section {
    padding-block: 72px;
    border-bottom: 1px solid var(--line);
  }

  .section-head {
    margin-bottom: 40px;
    max-width: 60ch;
  }

  .section-head h2 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 8px;
  }

  .section-head p {
    margin-top: 14px;
    color: var(--ink-dim);
    line-height: 1.6;
    font-size: 1rem;
  }

  /* ---------- about ---------- */
  .about-grid {
    display: grid;
    gap: 48px;
  }

  @media (min-width:860px) {
    .about-grid {
      grid-template-columns: 1.15fr .85fr;
    }
  }

  .about-copy p {
    color: var(--ink-dim);
    line-height: 1.75;
    font-size: 1.02rem;
    margin: 0 0 16px;
  }

  .about-copy p:last-child {
    margin-bottom: 0;
  }

  .skill-groups {
    display: grid;
    gap: 22px;
  }

  .skill-group h3 {
    font-family: 'Big Shoulders Display';
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 500;
    margin-bottom: 10px;
  }

  .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pill {
    font-size: .82rem;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink-dim);
    background: var(--bg-raised);
  }

  /* ---------- experience ---------- */
  .timeline {
    display: flex;
    flex-direction: column;
  }

  .job {
    display: grid;
    gap: 6px 28px;
    padding-block: 26px;
    border-top: 1px solid var(--line);
  }

  .job:last-child {
    border-bottom: 1px solid var(--line);
  }

  @media (min-width:760px) {
    .job {
      grid-template-columns: 170px 1fr;
      align-items: start;
    }
  }

  .job-dates {
    font-size: .78rem;
    color: var(--clay);
    padding-top: 4px;
  }

  .job-role {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--ink);
  }

  .job-co {
    color: var(--ink-faint);
    font-size: .94rem;
    margin-top: 2px;
  }

  .job ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--ink-dim);
    font-size: .94rem;
    line-height: 1.6;
  }

  .job li {
    margin-bottom: 6px;
  }

  .job li:last-child {
    margin-bottom: 0;
  }

  /* ---------- education row ---------- */
  .edu-row {
    display: grid;
    gap: 24px;
    margin-top: 8px;
  }

  @media (min-width:640px) {
    .edu-row {
      grid-template-columns: 1fr 1fr;
    }
  }

  .edu-card {
    border: 1px solid var(--line);
    background: var(--bg-raised);
    padding: 20px 22px;
    border-radius: 2px;
  }

  .edu-card b {
    display: block;
    font-size: 1rem;
    color: var(--ink);
  }

  .edu-card span {
    display: block;
    margin-top: 4px;
    color: var(--ink-faint);
    font-size: .86rem;
  }

  /* ---------- work / case study cards ---------- */
  .work-grid {
    display: grid;
    gap: 20px;
  }

  @media (min-width:720px) {
    .work-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .work-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: var(--bg-raised);
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s, transform .18s;
  }

  a.work-card:hover {
    border-color: var(--clay);
    transform: translateY(-3px);
  }

  .work-thumb {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-panel), #0c0b09);
    display: flex;
    align-items: flex-end;
    padding: 16px;
  }

  .work-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--clay) 30%, transparent), transparent 60%);
  }

  .work-thumb .thumb-num {
    font-family: 'Big Shoulders Display';
    font-weight: 900;
    font-size: 3.2rem;
    line-height: 1;
    color: color-mix(in srgb, var(--ink) 10%, transparent);
    position: relative;
  }

  .work-thumb.has-image {
    background: #0c0b09;
  }

  .work-thumb.has-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .work-thumb.has-image::before {
    background: linear-gradient(180deg, rgba(12, 11, 9, .08) 35%, rgba(12, 11, 9, .92) 100%);
  }

  .work-thumb.has-image .thumb-num {
    color: color-mix(in srgb, var(--ink) 55%, transparent);
  }

  .work-status {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: .68rem;
    text-transform: uppercase;
    color: var(--clay);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 1;
  }

  .work-status.soon {
    color: var(--ink-faint);
  }

  .work-info {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .work-tag {
    
    font-size: .7rem;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .work-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.08;
  }

  .work-info p {
    color: var(--ink-dim);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
  }

  .work-link {
    margin-top: 6px;
    font-size: .84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--clay);
  }

  .work-card.disabled {
    opacity: .6;
    cursor: default;
  }

  .work-card.disabled:hover {
    border-color: var(--line);
    transform: none;
  }

  /* ---------- work galleries (logos / web / print) ---------- */
  .subhead {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 64px 0 22px;
  }

  .subhead h3 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ink);
  }

  .subhead .rule {
    flex: 1;
    height: 1px;
    background: var(--line);
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  @media (min-width:640px) {
    .gallery-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (min-width:900px) {
    .gallery-grid.cols-4 {
      grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid.cols-6 {
      grid-template-columns: repeat(6, 1fr);
    }

  }

  .gallery-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tile-frame {
    aspect-ratio: 4/3;
    border: 1px dashed var(--line);
    border-radius: 2px;
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-faint);
    text-align: center;
    padding: 12px;
    overflow: hidden;
  }

  .tile-frame .tile-icon {
    font-family: 'Big Shoulders Display';
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--ink-faint);
  }

  .tile-frame .tile-hint {
    font-size: .66rem;
    text-transform: uppercase;
  }

  .tile-frame.filled {
    border: none;
    padding: 0;
    background: var(--bg-panel);
    cursor: zoom-in;
    position: relative;
  }

  .tile-frame.filled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, filter .35s ease;
  }

  .tile-frame.filled::after {
    content: "\2921\FE0E  View full size";
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 10px;
    font-size: .66rem;
    text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
  }

  .web-gallery .tile-frame.filled img {
    object-position: top;
  }

  .tile-frame.filled:hover img,
  .tile-frame.filled:focus-visible img {
    transform: scale(1.06);
  }

  .tile-frame.filled:hover::after,
  .tile-frame.filled:focus-visible::after {
    opacity: 1;
  }

  .tile-frame.filled:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
  }

  .gallery-tile figcaption {
    font-size: .82rem;
    color: var(--ink-dim);
    line-height: 1.4;
  }

  .gallery-tile figcaption b {
    display: block;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 2px;
  }

  .gallery-note {
    margin-top: 20px;
    font-size: .82rem;
    color: var(--ink-faint);
    font-style: italic;
  }

  /* ---------- lightbox ---------- */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6, 5, 4, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    padding-top: calc(32px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .lightbox.open {
    opacity: 1;
    pointer-events: auto;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  }

  .lightbox-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    font-size: .78rem;
    color: var(--ink-dim);
  }

  .lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    font-family: 'Big Shoulders Display';
  }

  .lightbox-close:hover {
    color: var(--clay);
  }

  /* ---------- contact / footer ---------- */
  footer {
    padding-block: 80px calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .contact-head h2 {
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    font-weight: 900;
    text-transform: uppercase;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
  }

  .contact-links a {
    font-family: 'Big Shoulders Display';
    font-weight: 700;
    font-size: clamp(1.4rem, 4vw, 2rem);
    text-decoration: none;
    color: var(--ink);
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    width: fit-content;
    transition: color .15s, border-color .15s;
  }

  .contact-links a:hover {
    color: var(--clay);
    border-color: var(--clay);
  }

  .contact-links a small {
    font-size: .68rem;
    color: var(--ink-faint);
    font-weight: 400;
  }

  .foot-bottom {
    margin-top: 56px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--ink-faint);
    font-size: .8rem;
  }

  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
  }

  [data-reveal].in {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    [data-reveal] {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* =========================================================
   RESPONSIVE OVERRIDES
   Everything below adjusts the layout for tablets and phones.
   Desktop (1100px+) looks the same as before.
   ========================================================= */

  img {
    max-width: 100%;
  }

  /* fluid padding instead of fixed 100px / 70px */
  .wrap {
    padding: clamp(48px, 7vw, 100px) clamp(20px, 5vw, 70px);
  }

  .icon-nav.wrap{
    padding: clamp(30px, 7vw, 0px) clamp(20px, 5vw, 70px);
  }

  .nav-inner.wrap {
    padding-block: 14px;
  }

  .hero.wrap {
    padding-bottom: 0;
  }

  section {
    padding-block: clamp(40px, 6vw, 72px);
  }

  /* nested sections (icon nav inside hero) shouldn't double up padding */
  .hero .icon-nav {
    padding-inline: 0;
  }

  /* tablet and below */
  @media (max-width: 859px) {
    .hero-grid {
      gap: 28px;
    }

    .hero-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 32px;
      margin-top: 8px;
    }

    .stat {
      text-align: left;
      margin-bottom: 8px;
    }

    .icon-nav {
      margin-top: 32px;
    }
  }

  /* phones */
  @media (max-width: 639px) {

    /* show a compact link row instead of hiding the nav */
    .nav-inner {
      gap: 10px 16px;
      flex-wrap: wrap;
    }

    .nav-links {
      display: flex;
      gap: 16px;
      font-size: .8rem;
      order: 3;
      width: 100%;
      justify-content: space-between;
    }

    .nav-cta {
      display: none;
    }

    .hero {
      padding-top: 40px;
    }

    .stat b {
      font-size: 2rem;
    }

    /* icons: 3 per row on phones, 5-up is too tight */
    .icon-btn {
      width: 33.333%;
    }

    .nav-icon-img {
      max-width: 52px;
    }

    .job {
      gap: 4px;
    }

    .lightbox {
      padding: 12px;
    }

    .section-head {
      margin-bottom: 28px;
    }
  }

  /* very small phones */
  @media (max-width: 380px) {
    .nav-links {
      gap: 10px;
      font-size: .74rem;
    }

    .gallery-grid {
      gap: 10px;
    }
  }

  /* sticky header shouldn't hide anchor targets */
  section[id],
  footer[id] {
    scroll-margin-top: 90px;
  }

  @media (max-width: 639px) {

    section[id],
    footer[id] {
      scroll-margin-top: 110px;
    }
  }

  /* =========================================================
   CASE STUDY PAGES
   Requires <body class="case-page"> on every case study page.
   Agel page: <body class="case-page case-agel">
   ========================================================= */

  /* ---------- page-level overrides of global styles ---------- */
  .case-page .wrap {
    max-width: 800px;
    margin-inline: auto;
    padding: 0 24px;
  }

  @media (min-width:720px) {
    .case-page .wrap {
      padding-inline: 48px;
    }
  }

  .case-page .eyebrow {
    font-family: 'Big Shoulders Display';
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--clay);
    font-weight: 500;
  }

  .case-page .nav-inner {
    max-width: 800px;
    margin-inline: auto;
    padding-inline: 24px;
  }

  @media (min-width:720px) {
    .case-page .nav-inner {
      padding-inline: 48px;
    }
  }

  .case-page .nav-mark {
    font-size: 1.05rem;
    color: var(--ink-faint);
  }

  .case-page .lightbox-cap {
  }

  .case-page footer.site-foot {
    padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
    color: var(--ink-faint);
    font-size: .8rem;
  }

  /* ---------- nav back link ---------- */
  .back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: .86rem;
    color: var(--ink-dim);
    transition: color .15s;
  }

  .back-link:hover {
    color: var(--ink);
  }

  /* ---------- case header ---------- */
  .case-top {
    padding-block: 56px 40px;
    border-bottom: 1px solid var(--line);
  }

  .case-tag {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .case-tag .eyebrow {
    background: color-mix(in srgb, var(--clay) 16%, transparent);
    padding: 4px 9px;
    border-radius: 2px;
  }

  .case-top h1 {
    font-size: clamp(2.2rem, 6.5vw, 3.6rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: .98;
  }

  .case-top .sub {
    color: var(--clay);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 12px;
  }

  .case-meta {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 24px;
    font-size: .82rem;
    color: var(--ink-faint);
  }

  /* ---------- case body ---------- */
  .case-body {
    padding-block: 48px;
  }

  .case-body h4 {
    font-family: 'Big Shoulders Display';
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--clay);
    font-weight: 500;
    margin: 0 0 14px;
  }

  .case-section + .case-section {
    margin-top: 52px;
  }

  .case-body p {
    color: var(--ink-dim);
    line-height: 1.8;
    font-size: 1.04rem;
    margin: 0 0 16px;
    max-width: 66ch;
  }

  .case-body p:last-child {
    margin-bottom: 0;
  }

  .case-body ul.plain {
    color: var(--ink-dim);
    line-height: 1.8;
    font-size: 1.04rem;
    margin: 0 0 16px;
    padding-left: 1.2em;
    max-width: 66ch;
  }

  .case-body ul.plain li {
    margin-bottom: 6px;
  }

  /* ---------- concept note (Big T Bailey) ---------- */
  .concept-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    border: 1px solid var(--line);
    background: var(--bg-raised);
    border-radius: 2px;
    padding: 14px 16px;
  }

  .concept-note .eyebrow {
    background: none;
    padding: 0;
    white-space: nowrap;
    padding-top: 2px;
  }

  .concept-note p {
    margin: 0;
    font-size: .92rem;
    color: var(--ink-faint);
    line-height: 1.6;
  }

  /* ---------- before grid (Agel) ---------- */
  .before-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
  }

  @media (min-width:640px) {
    .before-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .before-card {
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-raised);
  }

  .before-frame {
    aspect-ratio: 4/3;
    background: #f4f1ea;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    max-width: 230px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .before-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
  }

  .before-frame::after {
    content: "\2921\FE0E  View full size";
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 10px;
    font-size: .66rem;
    text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
  }

  .before-frame:hover img {
    transform: scale(1.06);
  }

  .before-frame:hover::after,
  .before-frame:focus-visible::after {
    opacity: 1;
  }

  .before-frame:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: -2px;
  }

  .before-cap {
    padding: 14px 16px 16px;
  }

  .before-cap b {
    display: block;
    font-size: .9rem;
    color: var(--ink);
    margin-bottom: 4px;
  }

  .before-cap span {
    display: block;
    font-size: .82rem;
    color: var(--ink-faint);
    line-height: 1.5;
  }

  /* ---------- after grid (default: Stats + Big T Bailey) ---------- */
  .after-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
  }

  @media (min-width:640px) {
    .after-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .after-card {
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-raised);
  }

  .after-frame {
    aspect-ratio: 4/3;
    background: #f4f1ea;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
  }

  .after-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
    object-position: top;
  }

  .after-frame::after {
    content: "\2921\FE0E  View full size";
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 10px;
    font-size: .66rem;
    text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
  }

  .after-frame:hover img {
    transform: scale(1.06);
  }

  .after-frame:hover::after,
  .after-frame:focus-visible::after {
    opacity: 1;
  }

  .after-frame:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: -2px;
  }

  .after-cap {
    padding: 14px 16px 16px;
  }

  .after-cap b {
    display: block;
    font-size: .9rem;
    color: var(--ink);
    margin-bottom: 4px;
  }

  .after-cap span {
    display: block;
    font-size: .82rem;
    color: var(--ink-faint);
    line-height: 1.5;
  }

  /* ---------- after grid: Agel variant (portrait product shots) ---------- */
  .case-agel .after-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width:640px) {
    .case-agel .after-grid.cols-4 {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .case-agel .after-frame {
    aspect-ratio: 3/4;
  }

  .case-agel .after-frame img {
    object-position: center;
  }

  .case-agel .after-cap {
    padding: 12px 14px 14px;
  }

  .case-agel .after-cap b {
    font-size: .86rem;
    margin-bottom: 3px;
  }

  .case-agel .after-cap span {
    font-size: .78rem;
    line-height: 1.45;
  }

  /* ---------- case footer ---------- */
  .case-foot {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .case-foot a {
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    border-bottom: 1px solid var(--clay);
    padding-bottom: 2px;
    transition: color .15s;
  }

  .case-foot a:hover {
    color: var(--clay);
  }

  /* replaces the inline style on "More case studies coming soon" */
  .case-foot span {
    color: var(--ink-faint);
    font-size: .85rem;
  }

  @media (min-width:640px) {
    .before-grid:has(.mock-card) {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .mock-card {
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-raised);
  }

  .mock-frame {
    aspect-ratio: 4/3;
    background: #e9e6df;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #444;
  }

  .mock-bar {
    height: 14px;
    flex: none;
    background: #9a9488;
    border-radius: 1px;
  }

  .mock-row {
    display: flex;
    gap: 6px;
  }

  .mock-box {
    flex: 1;
    background: #fff;
    border: 1px solid #c9c4b8;
    padding: 5px 6px;
    font-size: .58rem;
    line-height: 1.35;
  }

  .mock-table {
    background: #fff;
    border: 1px solid #c9c4b8;
    font-size: .58rem;
    overflow: hidden;
  }

  .mock-table > div {
    display: grid;
    grid-template-columns: 2fr;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 6px;
    padding: 3px 6px;
    border-bottom: 1px solid #e1ddd3;
  }

  .mock-table > div:first-child {
    background: #ddd8cc;
    font-weight: 700;
  }

  .mock-table > div:last-child {
    border-bottom: none;
  }

  .mock-cap {
    padding: 14px 16px 16px;
  }

  .mock-cap b {
    display: block;
    font-size: .9rem;
    color: var(--ink);
    margin-bottom: 4px;
  }

  .mock-cap span {
    display: block;
    font-size: .82rem;
    color: var(--ink-faint);
    line-height: 1.5;
  }

  .case-body p.recreation-note {
    margin-top: 14px;
    font-size: .8rem;
    font-style: italic;
    color: var(--ink-faint);
    line-height: 1.5;
  }