/* ═══════════════════════════════════════════════════════════════════════
   Pixelcrane skin additions for the Pofo build (loaded AFTER the forked
   style.css / responsive.css). Keep brand overrides here so the forked
   Pofo CSS stays a clean colour-swap of the original.
═══════════════════════════════════════════════════════════════════════ */

/* Pofo's style.css sets `body, html { height: 100% }`, which caps the body at
   viewport height and breaks position:sticky once you scroll past one screen.
   Let the document grow with its content so the sticky nav works. */
html { height: auto; min-height: 100%; }

/* Sticky footer: make the body a full-height column so short pages (e.g. the
   thank-you page) push the footer to the bottom of the viewport instead of
   leaving it floating mid-screen. */
body { height: auto; min-height: 100vh; display: flex; flex-direction: column; }
.pc-main { flex: 1 0 auto; }        /* content area grows to fill, pushing the footer down */
.pc-foot { flex-shrink: 0; }        /* footer keeps its natural height */

/* ─── LEAN TOP NAV (replaces Pofo's sidebar + bootsnav) ─────────────── */
.pc-top-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #ececec;
  transition: box-shadow .3s ease, border-color .3s ease;
}
/* toolbar gains a soft shadow once the page scrolls (class added by header.js) */
.pc-top-nav.is-scrolled {
  box-shadow: 0 6px 26px rgba(35,31,32,.09);
  border-bottom-color: transparent;
}
.pc-top-nav__bar {
  max-width: 1440px; margin: 0 auto;
  padding: 0 15px; min-height: 72px;   /* matches Bootstrap .container so the logo lines up with content */
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.pc-top-nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none; color: #231f20;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400; font-size: 22px; letter-spacing: -0.02em;
}
.pc-top-nav__logo:hover { color: #231f20; }
/* the asterisk mark gives a playful quarter-turn on logo hover */
.pc-top-nav__ast { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0;
  transition: transform .45s cubic-bezier(.16,1,.3,1); }
.pc-top-nav__logo:hover .pc-top-nav__ast { transform: rotate(90deg); }
.pc-top-nav__sq { width: 15px; height: 15px; background: #F47B20; flex-shrink: 0; }
.pc-top-nav__ast svg { width: 100%; height: 100%; display: block; }
.pc-top-nav__links {
  display: flex; align-items: center; gap: 28px; margin-left: auto;
  width: auto;   /* override Pofo's leaking `header nav { width: 100% }` */
}
.pc-top-nav__links a {
  position: relative;
  text-decoration: none; color: #231f20;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: color .2s;
}
/* animated underline that wipes in from the left on hover / active */
.pc-top-nav__links a:not(.pc-top-nav__cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: #F47B20; transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.6,.1,.2,1);
}
.pc-top-nav__links a:not(.pc-top-nav__cta):hover::after,
.pc-top-nav__links a.is-active::after { transform: scaleX(1); }
.pc-top-nav__links a:hover,
.pc-top-nav__links a.is-active { color: #F47B20; }
.pc-top-nav__cta {
  background: #F47B20; color: #fff !important;
  font-weight: 700 !important; font-size: 13px !important;
  letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px;
  box-shadow: 0 0 0 rgba(244,123,32,0);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.pc-top-nav__cta:hover {
  background: #231f20; color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(35,31,32,.20);
}
.pc-top-nav__toggle {
  display: none; margin-left: auto;
  width: 36px; height: 34px; background: transparent; border: 0;
  cursor: pointer; padding: 6px;
}
.pc-top-nav__toggle span {
  display: block; height: 2px; width: 100%; background: #231f20; margin: 5px 0;
  transform-origin: center;
  transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .2s ease;
}
/* hamburger morphs into an X while the menu is open (aria-expanded set by header.js) */
.pc-top-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pc-top-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.pc-top-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Undo the sidebar layout's left offset so content is full-width */
.pc-main { width: 100%; margin-left: 0; padding-left: 0; }

/* keep anchored section headings clear of the sticky nav on jump */
#case-studies, #capabilities { scroll-margin-top: 90px; }

@media (max-width: 991px) {
  .pc-top-nav__bar { padding: 0 24px; }
  .pc-top-nav__toggle { display: block; }

  /* Full-height dark overlay menu (positioned below the sticky bar) */
  .pc-top-nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 72px);
    background: #201c1c;
    background: radial-gradient(120% 90% at 88% 0%, #2b2523 0%, #1b1817 60%);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; margin: 0; padding: 34px 28px 40px;
    display: flex; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s ease, transform .42s cubic-bezier(.16,1,.3,1), visibility 0s .42s;
  }
  .pc-top-nav__links.is-open {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity .3s ease, transform .46s cubic-bezier(.16,1,.3,1), visibility 0s 0s;
  }

  .pc-top-nav__links a {
    opacity: 0; transform: translateY(18px);
    transition: opacity .45s ease, transform .5s cubic-bezier(.16,1,.3,1), color .2s;
  }
  /* the large nav rows (everything except the CTA button) */
  .pc-top-nav__links a:not(.pc-top-nav__cta) {
    width: 100%; color: #fff;
    font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1.05;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: flex; align-items: center; gap: 16px;
  }
  .pc-top-nav__links a:not(.pc-top-nav__cta)::after { content: none; }  /* drop the desktop underline */
  .pc-top-nav__links a:hover,
  .pc-top-nav__links a.is-active { color: #F47B20; }

  /* stagger the links in once the panel opens */
  .pc-top-nav__links.is-open a { opacity: 1; transform: translateY(0); }
  .pc-top-nav__links.is-open a:nth-child(1) { transition-delay: .10s; }
  .pc-top-nav__links.is-open a:nth-child(2) { transition-delay: .17s; }
  .pc-top-nav__links.is-open a:nth-child(3) { transition-delay: .24s; }
  .pc-top-nav__links.is-open a:nth-child(4) { transition-delay: .31s; }
  .pc-top-nav__links.is-open a:nth-child(5) { transition-delay: .38s; }
  .pc-top-nav__links.is-open a:nth-child(6) { transition-delay: .45s; }

  .pc-top-nav__cta {
    align-self: flex-start; margin-top: 30px; border-radius: 2px;
    padding: 17px 30px; font-size: 13px !important;
  }
  .pc-top-nav__cta::before { content: none; }
  .pc-top-nav__cta:hover { transform: translateY(-2px); }
}

/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pc-top-nav, .pc-top-nav *, .pc-top-nav__links.is-open a {
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .pc-top-nav__ast, .pc-top-nav__cta { transform: none !important; }
}

/* ─── SERVICES ROW ─────────────────────────────────────────────────── */
.pc-serv { padding: 70px 0 80px; }
.pc-serv__head { margin-bottom: 42px; }
.pc-serv__eyebrow {
  display: block; font-family: 'Courier New', Courier, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #F47B20; margin-bottom: 14px;   /* orange = quiet meta label */
}
.pc-serv__title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 400;
  letter-spacing: -.02em; line-height: 1.08; color: #231f20; margin: 0; max-width: 18ch;
}
.pc-serv__item {
  display: block; height: 100%; padding: 24px 0;
  border-top: 1px solid #dcd7ce;
}
.pc-serv__num {
  display: block; font-family: 'Courier New', Courier, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #F47B20; margin-bottom: 10px;
}
.pc-serv__name {
  display: block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #231f20; margin-bottom: 6px;
}
.pc-serv__desc { display: block; font-size: 14px; line-height: 1.5; color: #6b655c; }

/* ─── TOOLKIT GRID (icons + text, 4 per row) ───────────────────────── */
.pc-tk { padding: 60px 0 70px; }
.pc-tk__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 32px; row-gap: 40px; margin-top: 42px;
}
@media (max-width: 991px) { .pc-tk__grid { grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 32px; } }
@media (max-width: 479px) { .pc-tk__grid { grid-template-columns: 1fr; } }
.pc-tk__item {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(13, 11, 8, 0.14); padding-top: 18px;
}
.pc-tk__icon { width: 40px; height: 40px; margin-bottom: 16px; display: flex; align-items: center; }
.pc-tk__icon img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pc-tk__name { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: #231f20; margin-bottom: 4px; }
.pc-tk__role { font-size: 14px; line-height: 1.45; color: #6b655c; }

/* ─── WORK GRID (uniform 3×3 of squares) ───────────────────────────── */
.pc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.pc-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pc-tile > a { display: block; width: 100%; height: 100%; }
.pc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-tile__cap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  background: rgba(35, 31, 32, 0); opacity: 0;
  transition: opacity .3s ease, background .3s ease;
}
.pc-tile > a:hover .pc-tile__cap { opacity: 1; background: rgba(35, 31, 32, .82); }
.pc-tile__cap::before { content: ''; width: 34px; height: 2px; background: #F47B20; margin-bottom: 12px; }
.pc-tile__name { color: #fff; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
.pc-tile__cat { color: #F47B20; font-family: 'Courier New', Courier, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
/* placeholder tile — a clearly-swappable slot */
.pc-tile--ph { background: #ece8e0; display: flex; align-items: center; justify-content: center; }
.pc-tile--ph::after { content: ''; width: 22px; height: 22px; background: #F47B20; }
@media (max-width: 479px) { .pc-grid { grid-template-columns: 1fr; } }

/* ─── CASE STUDY / PROJECT DETAIL ──────────────────────────────────── */
.pc-cs { background: #fff; }
.pc-cs__wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* Widen the index's Bootstrap content containers to match (xl and up) */
@media (min-width: 1200px) { .container { max-width: 1440px; } }
@media (max-width: 767px) { .pc-cs__wrap { padding: 0 24px; } }

.pc-cs-head { padding: 66px 0 34px; }
.pc-cs-eyebrow { display: block; font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #F47B20; margin-bottom: 20px; }
.pc-cs-title { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(30px, 6vw, 80px); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; color: #231f20; margin: 0; max-width: 16ch; }

.pc-cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
@media (max-width: 767px) { .pc-cs-cols { grid-template-columns: 1fr; gap: 26px; } }
/* Case-study header — headline left, collage image right */
.pc-cs-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.pc-cs-hero .pc-cs-title { max-width: none; }
.pc-cs-hero__collage { width: 100%; height: auto; display: block; border-radius: 6px; }
@media (max-width: 767px) { .pc-cs-hero { grid-template-columns: 1fr; gap: 26px; } }
.pc-cs-label { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #231f20; margin: 0 0 10px; }
.pc-cs-body { font-size: 18px; line-height: 1.65; color: #5a554d; margin: 0; }

.pc-cs-deliv { padding: 24px 0 56px; }
.pc-cs-deliv__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
@media (max-width: 767px) { .pc-cs-deliv__grid { grid-template-columns: 1fr; gap: 24px; } }
.pc-cs-list { list-style: none; margin: 0; padding: 0; }
.pc-cs-list li { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; color: #231f20; padding: 9px 0; border-bottom: 1px solid #e6e2da; }
.pc-cs-list li:first-child { border-top: 1px solid #e6e2da; }
/* Split variant: deliverables list as two equal thirds, supporting text in the last third */
.pc-cs-deliv__grid--split { grid-template-columns: 1fr 2fr; }   /* paragraph 1/3 (left), list 2/3 (right) */
.pc-cs-deliv__grid--split .pc-cs-list { column-count: 2; column-gap: 48px; border-top: 1px solid #e6e2da; }
.pc-cs-deliv__grid--split .pc-cs-list li:first-child { border-top: 0; }  /* the ul supplies the top rule now, so both columns line up */
.pc-cs-deliv__grid--split .pc-cs-list li { break-inside: avoid; }
@media (max-width: 767px) {
  .pc-cs-deliv__grid--split { grid-template-columns: 1fr; }
  .pc-cs-deliv__grid--split .pc-cs-list { column-count: 1; }
}

.pc-cs-media { padding: 0; }
.pc-cs-figure { margin: 0 0 64px; }
.pc-cs-figure img { width: 100%; height: auto; display: block; }
.pc-cs-feature { background: #231f20; padding: clamp(28px, 5vw, 64px); margin: 0 0 64px; }
.pc-cs-feature img { width: 100%; height: auto; display: block; }
.pc-cs-feature__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.pc-cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 64px; }
@media (max-width: 600px) { .pc-cs-two { grid-template-columns: 1fr; } }
.pc-cs-two img { width: 100%; height: auto; display: block; }
.pc-cs-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 64px; }
@media (max-width: 600px) { .pc-cs-strip { grid-template-columns: repeat(2, 1fr); } }
.pc-cs-sq { aspect-ratio: 1 / 1; overflow: hidden; }
.pc-cs-sq img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pc-cs-close { text-align: center; padding: 84px 0 74px; }
.pc-cs-close__title { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(26px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.02em; color: #231f20; margin: 0 0 12px; }
.pc-cs-close__text { font-size: 15px; color: #6b655c; margin: 0 0 24px; }
.pc-cs-close__email { display: inline-block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; color: #231f20; text-decoration: none; border-bottom: 3px solid #F47B20; padding-bottom: 2px; }
.pc-cs-close__email:hover { color: #F47B20; }
.pc-cs-close__links { margin-top: 34px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.pc-cs-close__links a { font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b655c; text-decoration: none; }
.pc-cs-close__links a:hover { color: #F47B20; }

/* ─── SIMPLE BUTTON + FORM (Contact page) ────────────────────────── */
.pc-btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  background: #F47B20; color: #fff !important; border: 0; border-radius: 2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 32px; transition: background .25s, transform .25s, box-shadow .25s;
}
.pc-btn:hover { background: #231f20; color: #fff !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(35,31,32,.18); }
.pc-form { display: grid; gap: 18px; }
.pc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 575px) { .pc-form__row { grid-template-columns: 1fr; } }
.pc-form__field { display: flex; flex-direction: column; gap: 7px; }
.pc-form label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #231f20; }
.pc-form input, .pc-form textarea {
  width: 100%; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px; color: #231f20; background: #fff;
  border: 1px solid #d9d4cc; border-radius: 3px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.pc-form textarea { resize: vertical; min-height: 150px; }
.pc-form input:focus, .pc-form textarea:focus { outline: 0; border-color: #F47B20; box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.pc-form__status { margin: 2px 0 0; font-size: 14px; line-height: 1.5; }
.pc-form__status:empty { display: none; }
.pc-form__status.is-ok { color: #2f7d32; }
.pc-form__status.is-error { color: #c0392b; }
/* field-level validation */
.pc-form__err { font-size: 13px; line-height: 1.4; color: #c0392b; }
.pc-form__err:empty { display: none; }
.pc-form__field.is-invalid input,
.pc-form__field.is-invalid textarea { border-color: #c0392b; }
.pc-form__field.is-invalid input:focus,
.pc-form__field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(192,57,43,.15); }

/* inline links inside body copy (e.g. the thank-you phone number) */
.pc-cs-body a { color: #231f20; text-decoration: underline; text-decoration-color: #F47B20; text-underline-offset: 2px; transition: color .2s; }
.pc-cs-body a:hover { color: #F47B20; }

/* contact detail rows (Contact page left column) */
.pc-cd { margin: 0 0 22px; }
.pc-cd__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9a9088; margin-bottom: 5px; }
.pc-cd__value { font-size: 17px; color: #231f20; text-decoration: none; }
a.pc-cd__value:hover { color: #F47B20; }

/* ─── WORK GRID · hover-expand rows (Mailchimp-style) ──────────────────
   3 rows of 2 cards. Default 50/50 squares (row locked to 2:1 so only
   widths change). Hover a card → it grows to 66%, its row-mate shrinks
   to 34%; height stays fixed so nothing jumps vertically. */
.pc-hgrid { display: flex; flex-direction: column; gap: 24px; }
.pc-hrow { display: flex; gap: 24px; aspect-ratio: 8 / 3; }   /* two 4:3 cards per row */
.pc-hcard {
  position: relative; display: block;
  flex: 1 1 50%; min-width: 0; overflow: hidden;
  transition: flex-basis .45s cubic-bezier(.4, 0, .2, 1);
}
@media (hover: hover) and (min-width: 768px) {
  .pc-hrow:hover .pc-hcard { flex-basis: 34%; }
  .pc-hrow .pc-hcard:hover { flex-basis: 66%; }
}
.pc-hcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* ── Mobile: single-row, finger-swipeable carousel ── */
.pc-hgrid { scrollbar-width: none; }
.pc-hgrid::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
  .pc-hgrid {
    flex-direction: row; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px; scroll-padding-left: 24px;
  }
  .pc-hrow { display: contents; }                 /* unwrap the 3 rows → 6 cards in one track */
  .pc-hcard {
    flex: 0 0 80%; aspect-ratio: auto;
    display: flex; flex-direction: column;
    background: #fff; scroll-snap-align: center;
  }
  .pc-hcard img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  /* content sits BELOW the image, static — no overlay, no animation,
     so the whole card is just a clean tap target to its detail page */
  .pc-hcard .pc-fc {
    position: static; inset: auto;
    justify-content: flex-start;
    background: transparent; color: #231f20;
    padding: 20px 22px 24px; gap: 6px;
  }
  .pc-hcard .pc-fc > * { opacity: 1; transform: none; transition: none; }
  .pc-hcard .pc-fc__head { color: #231f20; }
  .pc-hcard .pc-fc__phrase { color: #5a554d; }
  .pc-hcard .pc-fc__cta { color: #231f20; }
}
/* ── Carousel dot pagination (mobile only) ── */
.pc-caro-dots { display: none; }
@media (max-width: 767px) {
  .pc-caro-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
  .pc-caro-dot {
    width: 8px; height: 8px; border-radius: 50px; border: 0; padding: 0; cursor: pointer;
    background: #cfc9bf; transition: width .3s ease, background .3s ease;
  }
  .pc-caro-dot.is-active { width: 24px; background: #F47B20; }
}
@media (prefers-reduced-motion: reduce) { .pc-hcard, .pc-fc, .pc-fc > * { transition: none; } }

/* Content over the photo — hidden by default (clean photo, no overlay);
   on hover a semi-dark overlay fades in and the elements animate up in
   sequence. Elements sized up a touch. */
.pc-fc {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: 8px; padding: 34px;
  background: rgba(13, 11, 8, 0);
  color: #fff;
  transition: background .4s ease;
}
/* Hover interactions apply only on true hover devices (mouse) — never on
   touch, so tapping a mobile card never animates or transforms it. */
@media (hover: hover) and (min-width: 768px) {
  .pc-hcard:hover .pc-fc { background: linear-gradient(to top, rgba(13,11,8,.80), rgba(13,11,8,.42)); }
  .pc-fc > * { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
  .pc-hcard:hover .pc-fc > * { opacity: 1; transform: none; }
  .pc-hcard:hover .pc-fc__icon   { transition-delay: .06s; }
  .pc-hcard:hover .pc-fc__head   { transition-delay: .13s; }
  .pc-hcard:hover .pc-fc__phrase { transition-delay: .20s; }
  .pc-hcard:hover .pc-fc__cta    { transition-delay: .27s; }
}
.pc-fc__icon { color: #F47B20; margin-bottom: 8px; line-height: 0; }
.pc-fc__icon svg { display: block; width: 42px; height: 42px; }
.pc-fc__head { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(24px, 3vw, 36px); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
.pc-fc__phrase { font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.9); max-width: 38ch; }
.pc-fc__cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; font-family: 'Courier New', Courier, monospace; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.pc-fc__arrow { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #F47B20; color: #fff; font-size: 19px; -webkit-text-stroke: 0.6px #fff; flex-shrink: 0; }

/* ─── GLOBAL FOOTER (dark carbon, single tier) ─────────────────────── */
.pc-foot { background: #23211f; color: #fff; }
.pc-foot__wrap {
  max-width: 1440px; margin: 0 auto; padding: 40px 15px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
}
.pc-foot__logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500; font-size: 20px; letter-spacing: -.02em;
}
.pc-foot__ast { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; }
.pc-foot__ast svg { width: 100%; height: 100%; display: block; }
.pc-foot__nav { display: flex; flex-wrap: wrap; gap: 26px; }
.pc-foot__nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.pc-foot__nav a:hover { color: #F47B20; }
.pc-foot__legal {
  width: 100%; margin: 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10); font-size: 13px; color: #fff;
}

/* Intro portrait (left of the hero intro text) */
.pc-intro-photo { width: 100%; max-width: 240px; height: auto; display: block; }
@media (max-width: 767px) { .pc-intro-photo { margin-left: auto; margin-right: auto; } }

/* Cursor-reactive pixel field behind the intro photo + text */
.pc-intro { position: relative; }
.pc-intro > .container { position: relative; z-index: 1; }
.pc-pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ─── SCROLLING SCREENSHOT (browser frame, stepped auto-scroll) ─────── */
.pc-scroller { margin: 80px 0; border: 1px solid #dcd7ce; background: #fff; }  /* fills the wrap content width (1360px max) */
.pc-scroller__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #eae9e6; border-bottom: 1px solid #dcd7ce; }
.pc-scroller__dot { width: 11px; height: 11px; border-radius: 50%; background: #cfc9bf; flex-shrink: 0; }
.pc-scroller__dot:nth-child(1) { background: #e0705c; }
.pc-scroller__dot:nth-child(2) { background: #e6b24c; }
.pc-scroller__dot:nth-child(3) { background: #85b06a; }
.pc-scroller__url {
  margin-left: 12px; flex: 1; max-width: 340px;
  background: #fff; border: 1px solid #dcd7ce;
  font-family: 'Courier New', Courier, monospace; font-size: 12px; color: #8a837a;
  padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-scroller__win { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }  /* 16:9 window (a 1600×900 screen) */
.pc-scroller__shot { display: block; width: 100%; height: auto; transform: translateY(0); will-change: transform; }  /* stepped auto-scroll driven by JS */
@media (max-width: 767px) { .pc-scroller { margin: 28px 0; } .pc-scroller__bar { height: 34px; } .pc-scroller__url { max-width: 60%; } }
@media (prefers-reduced-motion: reduce) { .pc-scroller__shot { transform: translateY(0) !important; } }

/* Image row — equal height, each width follows its own aspect ratio (flex-grow = w/h) */
.pc-cs-13 { display: flex; gap: 24px; align-items: flex-start; margin: 24px 0 96px; }
.pc-cs-13 img { display: block; flex-basis: 0; min-width: 0; width: auto; height: auto; }
.pc-cs-13 img:first-child { flex-grow: 1.294; }   /* pim-infographic 2200×1700 */
.pc-cs-13 img:last-child  { flex-grow: 1.077; }   /* expert-edit 2847×2643 */
@media (max-width: 767px) {
  .pc-cs-13 { flex-direction: column; gap: 16px; }
  .pc-cs-13 img { flex-basis: auto; width: 100%; }
}

/* Split row: photo (left 1/3) + graphic (right 2/3) */
.pc-cs-split { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; margin: 0 0 64px; }
.pc-cs-split img { display: block; width: 100%; height: auto; }
.pc-cs-split > img:last-child { width: 72%; margin-left: auto; margin-right: auto; }  /* right-col graphic, scaled down, centered */
@media (max-width: 767px) { .pc-cs-split { grid-template-columns: 1fr; gap: 16px; } .pc-cs-split > img:last-child { width: 100%; } }

/* Per-brand block: hairline divider + numbered header above each board */
.pc-brand-block { border-top: 1px solid #e6e2da; padding-top: 48px; margin-bottom: 72px; }
/* Hairline divider between case-study sections (matches .pc-brand-block) */
.pc-cs-rule { border: 0; height: 1px; background: #e6e2da; margin: 64px 0; }
@media (max-width: 767px) { .pc-cs-rule { margin: 44px 0; } }
.pc-brand-head { margin: 0 0 26px; max-width: 640px; }   /* heading + copy share one measure */
.pc-brand-head__eyebrow { display: block; font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #F47B20; margin: 0 0 14px; }
.pc-brand-head__num { color: #231f20; margin-right: 12px; }
.pc-brand-head__title { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(26px, 3.4vw, 48px); font-weight: 400; letter-spacing: -.02em; line-height: 1.06; color: #231f20; margin: 0 0 14px; }
.pc-brand-head__desc { font-size: 18px; line-height: 1.62; color: #5a554d; margin: 0; max-width: none; }

/* Brand board — stacked application rows, 60px gutters, no background */
.bb { padding: 0; display: flex; flex-direction: column; gap: 60px; }
.bb-single { display: block; width: 100%; height: auto; }
.bb-row { display: flex; gap: 60px; }
.bb-row img { flex-basis: 0; min-width: 0; width: auto; height: auto; display: block; }
.bb-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 60px; }
.bb-swatches img { width: 100%; height: auto; display: block; }
/* Two-column masonry (Maison): narrow left col + wider right col, each stacking its images */
.bb-masonry { display: grid; grid-template-columns: 2fr 3fr; gap: 60px; align-items: start; }
.bb-col { display: flex; flex-direction: column; gap: 60px; min-width: 0; }
.bb-col img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .bb-row { flex-wrap: wrap; }
  .bb-row img { flex-basis: 100%; }
  .bb-swatches { grid-template-columns: repeat(3, 1fr); }
  .bb-masonry { grid-template-columns: 1fr; }
}

/* ─── BATES case study — boards (no background), tight gutters ──────── */
.bl { padding: 0; display: flex; flex-direction: column; gap: 56px; }
.bl--dark { background: #37373c; padding: clamp(24px, 3.2vw, 48px); gap: clamp(24px, 3.2vw, 48px); }   /* for assets designed on dark (e.g. white-text logo) */

/* UCGD branding — branded items beside the office photo, on a dark panel */
.ucgd-brand { display: flex; gap: clamp(20px, 3vw, 40px); align-items: stretch; background: #37373c; padding: clamp(24px, 3.5vw, 52px); }
.ucgd-brand img { flex: 1 1 0; min-width: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; display: block; align-self: flex-start; }
.ucgd-brand img:first-child { object-fit: contain; }
.ucgd-spec { flex: 1 1 0; min-width: 0; align-self: flex-start; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(14px, 1.8vw, 20px); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px; padding: clamp(14px, 1.6vw, 22px); }
.ucgd-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 16px); }
.ucgd-swatch-row { display: flex; flex-direction: column; gap: 8px; }
.ucgd-swatch { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); }
.ucgd-swatch__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ucgd-swatch__name { font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.ucgd-swatch__vals { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 11.5px; letter-spacing: .02em; color: #b8b4ae; }
.ucgd-type { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: clamp(10px, 1.2vw, 14px); font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.ucgd-type__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.ucgd-type__row { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.ucgd-type__aa { flex: 0 0 auto; font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1; color: #fff; }
.ucgd-type__text { min-width: 0; }
.ucgd-type__sample { display: block; font-size: 15px; font-weight: 500; line-height: 1.4; color: #fff; }
.ucgd-type__glyphs { display: block; font-size: 11.5px; font-weight: 400; letter-spacing: .03em; line-height: 1.5; color: #fff; margin-top: 8px; word-break: break-word; }
@media (max-width: 767px) { .ucgd-brand { flex-direction: column; } .ucgd-brand img { align-self: stretch; } }
.bl-single { width: 100%; height: auto; display: block; }
.bl-video { aspect-ratio: 1360 / 759; object-fit: cover; background: #0c0c0c; }
.bl-row { display: flex; gap: 16px; }
.bl-row img { flex-basis: 0; min-width: 0; width: auto; height: auto; display: block; }
/* Justified row of captioned figures (equal-height images, caption under each) */
.bl-figrow { display: flex; gap: 24px; }
.bl-figrow figure { flex-basis: 0; min-width: 0; margin: 0; }
.bl-figrow figure img { width: 100%; height: auto; display: block; }
.bl-figrow figcaption { margin-top: 14px; font-size: 14px; line-height: 1.55; color: #5a554d; }
@media (max-width: 640px) { .bl-figrow { flex-wrap: wrap; } .bl-figrow figure { flex-basis: 100%; } }
.bl-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bl-2x2 img { width: 100%; height: auto; display: block; }
.bl-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bl-grid3 img { width: 100%; height: auto; display: block; }
/* Research: horizontally-scrollable 2-row strip (12 report pages) */
.bl-scroll { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 16px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.bl-scroll img { width: clamp(260px, 30vw, 420px); height: auto; display: block; scroll-snap-align: start; }
.bl-gallery img { cursor: zoom-in; }

/* Lightbox — enlarge research pages on click */
.bl-lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(12,11,8,.93); padding: 4vh 6vw; }
.bl-lightbox.is-open { display: flex; }
.bl-lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; max-width: 100%; }
.bl-lightbox__img { max-width: 92%; max-height: 85vh; width: auto; height: auto; box-shadow: 0 24px 70px rgba(0,0,0,.55); }  /* enlarged ~15% */
.bl-lightbox__cap { color: #fff; opacity: .82; font-size: 14px; line-height: 1.4; text-align: center; margin: 0; max-width: 640px; }
.bl-lightbox__close { position: absolute; top: 16px; right: 26px; background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; opacity: .8; }
.bl-lightbox__close:hover { opacity: 1; }
.bl-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.bl-lightbox__nav:hover { background: rgba(255,255,255,.22); }
.bl-lightbox__prev { left: 20px; }
.bl-lightbox__next { right: 20px; }
.bl-lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-family: 'Courier New', Courier, monospace; font-size: 12px; letter-spacing: .12em; opacity: .8; }
@media (max-width: 640px) { .bl-lightbox__img { max-width: 94%; max-height: 78vh; } .bl-lightbox__nav { width: 44px; height: 44px; font-size: 24px; } .bl-lightbox__close { top: 10px; right: 16px; } }
.bl-scroll::-webkit-scrollbar { height: 10px; }
.bl-scroll::-webkit-scrollbar-track { background: #ece8e0; }
.bl-scroll::-webkit-scrollbar-thumb { background: #cfc9bf; border-radius: 6px; }

/* Sub-header within a board (h3 + supporting text) */
.bl-sub { margin: 8px 0 0; }
.bl-sub h3 { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(20px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; color: #231f20; margin: 0 0 8px; }
.bl-sub p { font-size: 18px; line-height: 1.62; color: #5a554d; margin: 0; max-width: 64ch; }

/* Branding section — two-column labeled system */
.bl-brand { display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: start; }
.bl-brand__col { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.bl-brand__label { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #231f20; margin: 0 0 18px; }
/* PDF download buttons — styled like the header "Start a project" CTA */
.bl-pdf-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.bl-pdf-btn { display: inline-block; background: #F47B20; color: #fff; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px; text-decoration: none; transition: background .2s; }
.bl-pdf-btn:hover { background: #231f20; color: #fff; }
.bl-brand__blk img { display: block; width: 100%; height: auto; }
.bl-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: end; }
.bl-icons img { width: 100%; height: auto; display: block; }
/* Merriweather type specimens */
.bl-serif-h { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 26px; line-height: 1.15; color: #134426; margin: 0 0 14px; }
.bl-serif-h--sm { font-size: 20px; margin-top: 34px; }
.bl-serif-p { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.75; color: #3a3a3a; margin: 0 0 20px; }
.bl-serif-p--sm { margin-bottom: 16px; }
/* Horizontal scroll for wide specimens (precipitation table) so they stay readable on small screens */
.bl-scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bl-scrollx img { display: block; width: 100%; min-width: 560px; height: auto; }
@media (max-width: 767px) {
  .bl-brand { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  .bl { gap: 40px; }
  .bl-row { flex-wrap: wrap; }
  .bl-row img { flex-basis: 100%; }
  .bl-grid3 { grid-template-columns: 1fr 1fr; }
  .bl-2x2 { grid-template-columns: 1fr; }
  .bl-icons { grid-template-columns: repeat(3, 1fr); }
  /* research gallery: swap the tiny 2-row horizontal scroller for a 2-up grid */
  .bl-scroll { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 12px; overflow-x: visible; padding-bottom: 0; }
  .bl-scroll img { width: 100%; }
}

/* ─── TEX-FAB case study — text/image rows ──────────────────────────── */
.tf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 0 0 72px; }
.tf-split img { width: 100%; height: auto; display: block; }
.tf-split__copy { max-width: 34rem; }   /* keep heading + copy the same measure */
.tf-split--rev .tf-split__copy { order: 2; }   /* image left, copy right */
.tf-split--panel { background: #f5f5f5; padding: clamp(28px, 4vw, 52px); border-radius: 6px; }   /* differentiated row */
.tf-split__copy h2, .tf-band h2 { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(26px, 3.4vw, 48px); font-weight: 400; letter-spacing: -.02em; line-height: 1.06; color: #231f20; margin: 0 0 14px; }
.tf-split__copy p, .tf-band p { font-size: 18px; line-height: 1.65; color: #5a554d; margin: 0; max-width: 54ch; }
.tf-band { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.tf-band p { margin-left: auto; margin-right: auto; }
/* Full-width variant — heading + copy span the content, left-aligned (for bands above full-bleed media) */
.tf-band--full { max-width: none; margin-left: 0; margin-right: 0; text-align: left; }
.tf-band--full p { max-width: none; margin-left: 0; margin-right: 0; }
.tf-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0 0 72px; }
.tf-grid3 img { width: 100%; height: auto; display: block; }
.tf-grid3--search img { aspect-ratio: 7 / 5; object-fit: cover; object-position: top; }   /* crop the baked "Show more" divider off the bottom */
.tf-full { display: block; width: 100%; height: auto; margin: 0 0 72px; }
/* Proof — the form (right) + the unsolicited RFQs it generates (left copy column) */
.tf-split--top { align-items: start; }
.tf-split__copy .tf-proof__lead { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: #231f20; max-width: 54ch; margin: 18px 0 clamp(20px, 2.4vw, 28px); }
.tf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.tf-stat { background: #f5f5f5; border-radius: 6px; padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 8px; }
.tf-stat__num { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; letter-spacing: -.02em; line-height: 1; color: #231f20; }
.tf-stat__label { font-size: 13px; line-height: 1.5; color: #5a554d; }
.tf-split__copy .tf-proof__note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: #8a857d; max-width: none; }
@media (max-width: 520px) { .tf-stats { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .tf-split { grid-template-columns: 1fr; gap: 26px; margin-bottom: 48px; }
  .tf-split--rev .tf-split__copy { order: 0; }
  .tf-grid3 { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .tf-full { margin-bottom: 48px; }
  .tf-band { margin-bottom: 40px; }
}

/* Phone mockup + brand mark — device leads, round mark sits beside it */
.pc-phones { display: flex; justify-content: center; align-items: center; gap: 48px; margin: 0 0 64px; }
.pc-phones__device { height: clamp(420px, 52vw, 680px); width: auto; max-width: 100%; display: block; }
.pc-phones__mark { width: clamp(150px, 18vw, 260px); height: auto; display: block; }
@media (max-width: 767px) {
  .pc-phones { flex-direction: column; gap: 28px; }
  .pc-phones__device { height: auto; width: 80%; max-width: 340px; }
  .pc-phones__mark { width: 42%; max-width: 160px; }
}
@media (max-width: 600px) {
  .pc-foot__wrap { padding: 34px 24px; align-items: flex-start; }
}
