:root {
  --ink: #141414;
  --ink-soft: #55534d;
  --paper: #f4f1ea;
  --cream: #eae5da;
  --accent: #141414;
  --accent-deep: #000;
  --blue: #141414;
  --sky: #eae5da;
  --line: rgba(20, 20, 20, .14);
  --accent-text: #4f7a05;
  --muted-label: #55534d;
  --caption: #55534d;
  --dark: #141414;
  --dark-kicker: #9be31c;
  --dark-soft: #cfcabd;
  --dark-line: rgba(255, 255, 255, .18);
  --dark-link: #9be31c;
  --quote-bg: #9be31c;
  --shell: min(1320px, calc(100vw - 64px));
  --ease: cubic-bezier(.2, .75, .25, 1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

body, button, a { -webkit-tap-highlight-color: transparent; }

img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { text-wrap: balance; }

button, input, textarea, select { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 10001;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Non-Apple platforms fall back to Segoe UI, Roboto or Arial, which need looser tracking and true bold. */
html.no-sf :is(h1, h2, h3, blockquote, .hero-deck, .pull-quote blockquote) { letter-spacing: -.025em; }
html.no-sf :is(h1, h2, h3, blockquote) { font-weight: 700; }

.case-shell { width: var(--shell); margin-inline: auto; }

.section-space { padding-block: clamp(80px, 9vw, 132px); }

.case-hero {
  position: relative;
  min-height: auto;
  padding: 116px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f3e9 0%, #efe9dc 100%);
}


.case-hero-copy { position: relative; z-index: 2; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: #49516a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}



.eyebrow, .kicker {
  margin: 0 0 21px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--ink-soft); }

.eyebrow span { color: var(--accent-text); }

.eyebrow::after {
  width: 54px;
  height: 1px;
  background: rgba(16, 26, 63, .24);
  content: "";
}

.case-hero h1 {
  max-width: 1180px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(62px, 7vw, 88px);
  font-weight: 680;
  letter-spacing: -.068em;
  line-height: .93;
}

.case-hero h1 span { display: block; }
.hero-title-compact { display: none !important; }

.hero-deck {
  max-width: 625px;
  margin: 31px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -.028em;
  line-height: 1.4;
}

.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 31px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.015em;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 180ms ease;
}


.button:active { transform: scale(.98); }

.button-primary { color: #fff; background: var(--accent); box-shadow: 0 14px 34px rgba(8, 113, 132, .16); }

.button-secondary { color: #fff; background: var(--ink); }
.button-light { color: var(--ink); background: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.text-link span { transition: transform 180ms ease; }


.hero-stage {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100vw - 64px));
  margin: clamp(24px, 3vw, 40px) auto 0;
  padding-bottom: clamp(28px, 3vw, 48px);
}

.hero-stage picture { display: block; }
.hero-stage img { position: relative; z-index: 1; width: 100%; height: auto; }


.project-facts { padding-block: 34px; border-block: 1px solid var(--line); background: #fff; }

.facts-grid { display: grid; grid-template-columns: 1.1fr .7fr 1.25fr; gap: 42px; }

.facts-grid div { display: grid; gap: 8px; }
.facts-grid div > span { color: var(--muted-label); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.facts-grid strong { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }

.section-head { max-width: 820px; }

.section-head h2, .challenge-copy h2, .lead-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 670;
  letter-spacing: -.058em;
  line-height: .98;
}


.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(min(280px, 100%), .7fr);
  align-items: end;
  max-width: none;
  gap: clamp(36px, 6vw, 86px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.split-head > div:last-child { padding-bottom: 4px; }
.split-head p:not(.kicker) { margin: 0 0 20px; color: var(--ink-soft); font-size: 18px; letter-spacing: -.02em; line-height: 1.55; }




.browser-chrome {
  display: grid;
  grid-template-columns: repeat(3, 8px) 1fr;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(16, 26, 63, .12);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #f6f6f8;
}

.browser-chrome > span { width: 8px; height: 8px; border-radius: 50%; background: #c6c8cf; }
.browser-chrome .browser-title {
  display: grid;
  justify-self: center;
  margin-left: -45px;
  color: #5e6577;
  line-height: 1.05;
  text-align: center;
}

.browser-title strong { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .015em; }
.browser-title small { margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }


figcaption { color: var(--caption); font-size: 14px; letter-spacing: -.01em; line-height: 1.5; }
figcaption strong { color: var(--ink); }

.challenge { background: #f6f0e3; }

.challenge-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(54px, 7vw, 100px); }
.challenge-copy h2 { max-width: 620px; font-size: clamp(38px, 4.25vw, 64px); }

.challenge-copy p:not(.kicker) { margin: 24px 0 0; color: var(--ink-soft); font-size: 18px; letter-spacing: -.02em; line-height: 1.58; }

.board-feature { margin: 0; }
.board-feature img { width: 100%; box-shadow: 0 30px 80px rgba(16, 26, 63, .12); }
.board-feature figcaption { margin-top: 16px; }

.scope-section { background: #fff; }

.scope-layout {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  align-items: start;
  gap: clamp(60px, 10vw, 150px);
}

.scope-heading { position: sticky; top: 118px; }

.scope-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 5.7vw, 74px);
  font-weight: 670;
  letter-spacing: -.06em;
  line-height: .97;
}

.scope-heading > p:last-child { margin: 25px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }

.scope-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }

.scope-list li {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.scope-list h3 { margin: 0; font-size: clamp(20px, 2vw, 27px); font-weight: 660; letter-spacing: -.035em; line-height: 1.15; }
.scope-list p { max-width: 650px; margin: 9px 0 0; color: var(--ink-soft); font-size: 15px; letter-spacing: -.012em; line-height: 1.56; }

.pull-quote { padding-block: clamp(64px, 8.25vw, 113px); background: #d5edf0; }
.pull-quote blockquote { max-width: 1080px; color: var(--ink); font-size: clamp(46px, 7vw, 94px); font-weight: 670; letter-spacing: -.065em; line-height: .96; }

.project-lead { background: #fff; }
.lead-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(54px, 10vw, 142px); }
.lead-photo { width: min(320px, 100%); margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px; }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 16%; }
.lead-copy { max-width: 630px; }
.lead-copy p:not(.kicker) { margin: 24px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.58; }
.lead-copy .button { margin-top: 31px; }

.related-work { background: #f5f5f7; }
.related-work .section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { display: block; text-decoration: none; }
.related-card img { width: 100%; height: auto; border-radius: 28px; transition: transform 450ms var(--ease), box-shadow 450ms var(--ease); }
.related-card span { display: block; margin-top: 17px; color: var(--muted-label); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.related-card h3 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.035em; }


/* Reveal-on-scroll only engages when the script is running; without JS everything is simply visible. */
html.case-enhanced .reveal { opacity: 0; transform: translateY(20px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
html.case-enhanced .reveal.d1 { transition-delay: 60ms; }
html.case-enhanced .reveal.d2 { transition-delay: 120ms; }
html.case-enhanced .reveal.is-visible { opacity: 1; transform: none; }

#collins-project-form-modal {
  box-sizing: border-box;
  width: min(1520px, calc(100vw - 64px));
  height: min(1100px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
}

#collins-project-form-modal::backdrop { background: rgba(7, 19, 44, .66); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); }
#collins-project-form-modal iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; background: transparent; opacity: 1; transition: opacity 160ms ease; }
#collins-project-form-modal .project-form-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 18px; padding: 32px; color: var(--ink); background: linear-gradient(135deg, #f8fbff, #eef5ff); text-align: center; visibility: hidden; opacity: 0; }
#collins-project-form-modal .project-form-loading strong { font-size: clamp(24px, 3vw, 42px); letter-spacing: -.04em; }
#collins-project-form-modal .project-form-loading span { width: min(360px, 64vw); height: 8px; overflow: hidden; border-radius: 99px; background: rgba(15, 31, 68, .09); }
#collins-project-form-modal .project-form-loading span::after { content: ""; display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--blue); animation: project-form-load 900ms ease-in-out infinite alternate; }
#collins-project-form-modal.is-loading .project-form-loading { visibility: visible; opacity: 1; }
#collins-project-form-modal.is-loading iframe { opacity: 0; }
@keyframes project-form-load { to { transform: translateX(122%); } }
html.collins-project-form-open,
html.collins-project-form-open body { overflow: hidden !important; overscroll-behavior: none; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* This page already closes with its own campaign CTA, so the footer's generic CTA card is dropped here. */
.case-page .collins-footer-intro { display: none; }
.case-page .collins-footer-directory { padding-top: 0; }


/* Javi's-specific proof and service chapters. V1 owns the shared page components above. */
:target { scroll-margin-top: 106px; }
figure { margin-inline: 0; }
.request-section { background: #fffdf8; }
/* Responsive live iframe fitting follows V2 case-mockups.js and site.js. */
.cs-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(min(220px, 100%), 270px); gap: clamp(24px, 3vw, 42px); align-items: start; }
.cs-desk { width: 100%; min-width: 0; margin: 0; }
.cs-desk .fit { aspect-ratio: 8/5; position: relative; overflow: hidden; background: #fff; contain: layout paint; }
.fit iframe, .fit-m iframe { display: block; position: absolute; inset: 0 auto auto 0; border: 0; width: 100%; height: 100%; max-width: none; background: #fff; transform-origin: top left; }
.cs-phonecol { width: 100%; max-width: 270px; min-width: 0; margin: 0; justify-self: center; }
.live-phone { padding: 7px; border-radius: 30px; background: #0b2637; box-shadow: 0 20px 40px -28px #173f53; }
.fit-m { position: relative; aspect-ratio: 390/844; overflow: hidden; border-radius: 23px; contain: layout paint; }
.cs-stage figcaption { margin: 16px 0 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
.fit iframe[inert], .fit-m iframe[inert] { pointer-events: none; }
.preview-enter { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 16px; border: 0; background: #0b26370a; color: #fff; cursor: pointer; touch-action: pan-y pinch-zoom; }
.preview-enter > span { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; padding: 15px 20px; background: #0b2637; box-shadow: 0 6px 24px #0b263733; font-size: 14px; font-weight: 600; }

.preview-enter:focus-visible { outline: 3px solid #087184; outline-offset: -5px; }
.cs-stage .preview-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; min-height: 44px; margin-top: 8px; }
[data-preview-exit] { position: fixed; z-index: 80; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); box-shadow: 0 6px 24px #0b263726; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border: 1px solid #aac1c5; border-radius: 999px; color: #0b2637; background: #fff; font-size: 12px; cursor: pointer; }
.preview-enter[hidden], [data-preview-exit][hidden] { display: none; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.preview-reset { padding: 10px 0; min-height: 44px; border: 0; color: var(--ink-soft); background: transparent; font-size: 13px; cursor: pointer; }
.preview-reset span { margin-left: 6px; }

@media(max-width: 900px) { .cs-stage { grid-template-columns: 1fr; gap: 36px; } .cs-phonecol { max-width: 330px; } }

.screen-frame { overflow: hidden; border: 1px solid #c8d5d7; border-radius: 28px; background: #eef5f3; }
.screen-frame .browser-chrome { border: 0; border-radius: 0; }
.screen-frame picture, .screen-frame img { display: block; width: 100%; }
.preview-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.portrait-proof { max-width: 520px; justify-self: end; }
.portrait-proof img { box-shadow: none; border-radius: 22px; }
.challenge-detail { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #c9cfc9; color: #087184; font-size: 14px; font-weight: 650; }
.challenge-detail span::before { content: '↗'; margin-right: 8px; }
.system-section { background: #fffdf8; }
.direction-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.direction-board { min-width: 0; margin: 0; }
.direction-board img { display: block; width: 100%; height: auto; }
.direction-board figcaption { margin-top: 22px; max-width: 60ch; }
.direction-board figcaption strong { color: var(--ink); }
@media (max-width: 760px) { .direction-boards { grid-template-columns: 1fr; gap: 40px; } }

.service-section { background: #0b2637; color: #fffdf8; }
.service-section .kicker { color: #91d9e2; }
.service-section h2, .service-section h3 { color: #fffdf8; }
.service-section .split-head p:not(.kicker) { color: #c0d1d5; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.service-proof { min-width: 0; margin: 0; }
.service-proof .screen-frame { border: 1px solid #526873; border-radius: 22px; }
.service-label { margin-bottom: 24px; }
.service-label > span { display: block; color: #9abac6; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.service-label h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 650; letter-spacing: -.035em; margin: 12px 0 0; }
.service-proof figcaption { margin: 24px 0 18px; color: #c0d1d5; max-width: 54ch; }
.service-proof .text-link { color: #faca69; }
.service-section a:focus-visible { outline-color: #faca69; }
.mobile-section { background: #e3f0ee; }
.mobile-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 6vw, 90px); align-items: center; }
.mobile-copy h2 { font-size: clamp(38px, 4.6vw, 64px); }
.mobile-copy > p:not(.kicker) { color: var(--ink-soft); font-size: 18px; line-height: 1.6; margin: 24px 0 0; }
.phone-pair { display: flex; justify-content: center; align-items: start; gap: 24px; }
.phone-example { flex: 1; max-width: 248px; min-width: 0; margin: 0; }
.phone-example:nth-child(2) { margin-top: 80px; }
.phone-frame { padding: 7px; border-radius: 27px; background: #0b2637; box-shadow: 0 20px 40px -24px #173f53; }
.phone-frame img { width: 100%; border-radius: 21px; }
.phone-example figcaption { font-size: 13px; margin-top: 16px; text-align: center; }
.case-page .collins-footer-directory { padding-top: 0; }

@media (min-width: 1800px) {
  :root { --shell: min(1320px, calc(100vw - 64px)); }
  .case-hero h1 { font-size: 96px; }
}
@media (max-width: 900px) {
  .challenge-grid, .scope-layout, .lead-grid, .mobile-grid { grid-template-columns: 1fr; }
  .challenge-copy, .lead-copy, .mobile-copy { max-width: 680px; }
  .portrait-proof { width: min(520px, 100%); justify-self: center; }
  .scope-layout { gap: 48px; }
  .scope-heading { position: static; }
  .split-head { grid-template-columns: 1fr; gap: 28px; }
  .split-head > div:last-child { max-width: 640px; }
  .split-head p:not(.kicker) { margin-bottom: 0; }
  .service-grid { grid-template-columns: 1fr; gap: 60px; }
  .phone-pair { margin-top: 12px; }
  .facts-grid { grid-template-columns: 1fr 1fr 1.3fr; gap: 20px; }
}
@media (max-width: 767px) { :root { --shell: calc(100vw - 48px); } }
@media (max-width: 760px) {
  .section-space { padding-block: 76px; }
  .case-hero { padding-top: 112px; }
  .back-link { margin-bottom: 30px; }
  .eyebrow { gap: 8px; font-size: 10px; letter-spacing: .12em; flex-wrap: wrap; }
  .eyebrow::after { display: none; }
  .case-hero h1 { font-size: clamp(39px, 10.6vw, 64px); line-height: .99; }
  .hero-title-wide { display: none !important; }
  .hero-title-compact { display: block !important; }
  .hero-title-compact > span { white-space: normal; }
  .hero-deck { margin-top: 24px; font-size: 18px; max-width: 540px; }
  .hero-actions { flex-wrap: wrap; gap: 20px 24px; margin-top: 24px; }
  .hero-stage { width: calc(100vw - 32px); margin-top: 32px; padding-bottom: 24px; }
  .project-facts { padding-block: 22px; }
  .facts-grid { grid-template-columns: 1fr; gap: 15px; }
  .facts-grid > div { grid-template-columns: 70px 1fr; align-items: baseline; gap: 12px; }
  .facts-grid div > span { font-size: 10px; }
  .facts-grid strong { font-size: 13px; }
  .section-head h2, .lead-copy h2 { font-size: clamp(38px, 9.5vw, 52px); }
  .challenge-copy h2, .mobile-copy h2 { font-size: clamp(36px, 9.5vw, 48px); }
  .scope-heading h2 { font-size: clamp(40px, 10vw, 54px); }
  .challenge-grid { gap: 42px; }
  .related-grid { grid-template-columns: 1fr; gap: 42px; }
  .lead-grid { gap: 40px; }
  .lead-photo { width: 224px; }
  .pull-quote { padding-block: 64px; }
  .pull-quote blockquote { margin-block: 0; font-size: clamp(40px, 10.5vw, 64px); }
  #collins-project-form-modal { position: fixed; inset: var(--project-form-top, 0) 0 auto; width: 100vw; max-width: 100vw; height: var(--project-form-height, 100dvh); max-height: none; margin: 0; border-radius: 0; overscroll-behavior: none; }
}
@media (max-width: 600px) {
  .preview-note { align-items: start; flex-direction: column; gap: 12px; }
  .service-proof .screen-frame { width: calc(100% - 32px); max-width: 402px; margin-inline: auto; }
  .service-proof figcaption { font-size: 15px; }
  .phone-pair { gap: 16px; }
  .phone-frame { padding: 5px; border-radius: 19px; }
  .phone-frame img { border-radius: 14px; }
  .phone-example:nth-child(2) { margin-top: 44px; }
  .phone-example figcaption { font-size: 12px; }
}
/* Approved CTA concept 10, with the supplied Javi's Studio Display image. */
.project-cta { padding-block: 60px 26px; color: #111a41; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.chapter-inner { width: calc(100% - clamp(48px, 10vw, 144px)); max-width: 1120px; margin-inline: auto; }
.chapter-panel { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; overflow: hidden; background: #f5f5f7; border-radius: 28px; }
.chapter-copy { min-width: 0; padding: clamp(30px, 4.5vw, 62px); padding-right: 20px; }
.chapter-eyebrow { color: #5f6577; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; margin: 0 0 24px; }
.chapter-copy h2 { margin: 0; color: #111a41; font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size: clamp(40px, 4.8vw, 65px); font-weight: 650; letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
.chapter-deck { max-width: 34ch; margin: 25px 0 0; color: #5f6577; font-size: clamp(16px, 1.6vw, 19px); letter-spacing: -.02em; line-height: 1.5; text-wrap: pretty; }
.chapter-action { display: inline-flex; align-items: center; justify-content: center; gap: 19px; max-width: 100%; min-height: 52px; margin-top: 28px; padding: 15px 25px; border-radius: 999px; color: #fff; background: #0071e3; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.018em; text-decoration: none; transition: background-color 180ms ease, transform 220ms ease; }

.chapter-action:active { transform: scale(.98); }
.chapter-arrow { width: 20px; height: 20px; flex: none; transition: transform 220ms ease; }

.chapter-art { min-width: 0; margin: 0; padding: 24px 24px 24px 0; }
.chapter-art img { display: block; width: 100%; height: auto; border-radius: 28px; }
.chapter-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 24px; color: #5f6577; font-size: 14px; }
.chapter-footer p { margin: 0; }
.chapter-more { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding-block: 10px; color: #0066cc; font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.4; }

.project-cta a:focus-visible { outline: 3px solid #111a41; outline-offset: 5px; }
@media (max-width: 640px) {
  .project-cta { padding-block: 24px; }
  .chapter-inner { width: calc(100% - 32px); }
  .chapter-panel { display: flex; flex-direction: column; align-items: stretch; border-radius: 22px; }
  .chapter-copy { padding: 33px 25px 24px; }
  .chapter-eyebrow { font-size: 13px; margin-bottom: 23px; }
  .chapter-copy h2 { font-size: clamp(34px, 9.8vw, 54px); }
  .chapter-deck { font-size: 15px; margin-top: 21px; }
  .chapter-action { padding: 15px 22px; font-size: 15px; gap: 17px; }
  .chapter-art { padding: 0 25px 25px; }
  .chapter-footer { flex-direction: column; align-items: start; gap: 4px; padding: 24px 9px 0; font-size: 13px; }
  .chapter-more { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.case-enhanced .reveal { opacity: 1; transform: none; }
  #collins-project-form-modal .project-form-loading span::after { animation: none; width: 100%; }
}

@media (hover:hover) and (pointer:fine){
.back-link:hover { color: var(--ink); transform: translateX(-3px); }
.button:hover { transform: translateY(-2px); }
.button-primary:hover { color: #141414; background: #b2f03a; box-shadow: 0 18px 40px rgba(155, 227, 28, .32); }
.text-link:hover span { transform: translate(2px, -2px); }
.related-card:hover img { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(16, 26, 63, .14); }
.preview-enter:hover > span { background: #075c6c; }
.preview-reset:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.chapter-action:hover { color: #fff; background: #0066cc; transform: translateY(-2px); }
.chapter-action:hover .chapter-arrow { transform: translateX(3px); }
.chapter-more:hover { color: #0066cc; text-decoration: underline; text-underline-offset: 5px; }
}

a,button,summary,[role="button"],label{touch-action:manipulation;-webkit-tap-highlight-color:rgba(0,0,0,.06)}



/* ===== Case-study chapters (shared markup across the Perkins / NEFCO pages) ===== */
.facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.hero-stage img { border-radius: clamp(18px, 2vw, 30px); box-shadow: 0 40px 100px rgba(0, 0, 0, .14); }
.site-window { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .12); }
.site-window .browser-chrome { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #f6f5f0; }
.site-window img { display: block; width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.site-url { justify-self: center; margin-left: -45px; overflow: hidden; color: #5e6577; font-size: 12px; font-weight: 700; letter-spacing: .015em; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.site-url:hover { color: var(--ink); text-decoration: underline; }
.challenge { background: var(--cream); }
.challenge-detail { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--accent-text); font-size: 14px; font-weight: 650; }
.challenge-detail span::before { content: '↗'; margin-right: 8px; }
.context-proof { max-width: 680px; justify-self: end; margin: 0; }
.context-proof img { width: 100%; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .12); }
.context-proof figcaption { margin-top: 16px; max-width: 52ch; }
.context-proof.portrait { max-width: 480px; }
.system-section { background: #fff; }
.boards { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: clamp(20px, 2.4vw, 32px); }
.board { display: grid; gap: 22px; min-width: 0; margin: 0; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: var(--cream); }
.board-image { padding: 0; overflow: hidden; border: 0; background: transparent; gap: 0; }
.board-image img { display: block; width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--line); }
.board-image figcaption { padding: 18px 4px 0; max-width: 56ch; }
.board-label { display: block; color: var(--muted-label); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.specimen { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(38px, 4.25vw, 64px); font-weight: 670; letter-spacing: -.058em; line-height: .98; }
.specimen em { color: var(--accent-text); font-style: normal; }
.specimen-body { max-width: 46ch; margin: 0; color: var(--ink-soft); font-size: 18px; letter-spacing: -.02em; line-height: 1.55; }
.type-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; color: var(--caption); font-size: 14px; letter-spacing: -.01em; }
.type-meta strong { color: var(--ink); font-weight: 650; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.swatch { display: grid; align-content: end; gap: 4px; min-height: 124px; padding: 16px 18px; border-radius: 20px; }
.swatch strong { font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.swatch span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; letter-spacing: -.012em; line-height: 1.56; }
.points li::before { content: '✓'; color: var(--accent-text); font-weight: 700; }
.points strong { color: var(--ink); font-weight: 650; }
/* Proof on the dark field */
.service-section { background: var(--dark); color: #fffdf8; }
.service-section .kicker { color: var(--dark-kicker); }
.service-section h2, .service-section h3 { color: #fffdf8; }
.service-section .split-head p:not(.kicker) { color: var(--dark-soft); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.service-grid.uneven { grid-template-columns: 1.35fr .65fr; align-items: start; }
.service-proof { min-width: 0; margin: 0; }
.service-label { margin-bottom: 24px; }
.service-label > span { display: block; color: var(--dark-kicker); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.service-label h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 650; letter-spacing: -.035em; margin: 12px 0 0; }
.screen-frame { overflow: hidden; border: 1px solid var(--dark-line); border-radius: 22px; background: #1c1c1e; }
.screen-frame img { display: block; width: 100%; height: auto; }
.screen-frame.phone-shot { max-width: 360px; margin-inline: auto; border-radius: 30px; }
.service-proof figcaption { margin: 24px 0 18px; color: var(--dark-soft); max-width: 54ch; }
.service-wide { margin: clamp(48px, 6vw, 80px) 0 0; }
.service-wide figcaption { margin-top: 18px; color: var(--dark-soft); max-width: 60ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 6vw, 80px); }
.stats > div { min-width: 0; padding-top: 22px; border-top: 1px solid var(--dark-line); }
.stats strong { display: block; color: #fffdf8; font-family: var(--display); font-size: clamp(38px, 4.6vw, 64px); font-weight: 670; letter-spacing: -.058em; line-height: .98; }
.stats span { display: block; max-width: 34ch; margin-top: 12px; color: var(--dark-soft); font-size: 15px; letter-spacing: -.012em; line-height: 1.56; }
.service-section a:focus-visible { outline-color: var(--dark-link); }
/* Mobile chapter */
.mobile-section { background: #fff; }
.mobile-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 6vw, 90px); align-items: center; }
.mobile-copy h2 { font-size: clamp(38px, 4.6vw, 64px); }
.mobile-copy > p:not(.kicker) { color: var(--ink-soft); font-size: 18px; line-height: 1.6; margin: 24px 0 0; }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.phone-example { min-width: 0; margin: 0; }
.phone-example:nth-child(2) { margin-top: 56px; }
.phone-frame { padding: 8px; border-radius: 34px; background: #111; box-shadow: 0 30px 70px rgba(0, 0, 0, .18); }
.phone-frame img { width: 100%; height: auto; border-radius: 26px; }
.phone-scroll { position: relative; aspect-ratio: 390 / 800; overflow: hidden; border-radius: 26px; background: #fff; }
.phone-scroll .phone-scroller { height: 100%; overflow-y: auto; scrollbar-width: none; border-radius: 26px; }
.phone-scroll .phone-scroller::-webkit-scrollbar { display: none; }
.phone-scroll img { width: 100%; height: auto; border-radius: 0; }
.phone-example figcaption { margin-top: 14px; font-size: 13px; text-align: center; }
.phone-solo { max-width: 360px; margin: 0 auto; }
.mobile-aside { margin: 0; }
.mobile-aside img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .12); }
.mobile-aside figcaption { margin-top: 16px; max-width: 52ch; }
/* Live preview + scope + quote */
.request-section { background: var(--paper); }
.scope-section { background: var(--cream); }
.scope-layout { display: grid; grid-template-columns: .68fr 1.32fr; align-items: start; gap: clamp(60px, 10vw, 150px); }
.scope-heading { position: sticky; top: 118px; }
.scope-heading h2 { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(46px, 5.7vw, 74px); font-weight: 670; letter-spacing: -.06em; line-height: .97; }
.scope-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.scope-list li { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.scope-list h3 { margin: 0; font-size: clamp(20px, 2vw, 27px); font-weight: 660; letter-spacing: -.035em; line-height: 1.15; }
.scope-list p { max-width: 650px; margin: 9px 0 0; color: var(--ink-soft); font-size: 15px; letter-spacing: -.012em; line-height: 1.56; }
.pull-quote { background: var(--quote-bg); }
.lead-copy .button { margin-top: 31px; }
.case-page .collins-footer-intro { display: none; }
.case-page .collins-footer-directory { padding-top: 0; }
@media (max-width: 1100px) { .boards { grid-template-columns: 1fr; } .board-image { max-width: 640px; } }
@media (max-width: 980px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; } .stats { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 900px) {
  .challenge-grid, .scope-layout, .lead-grid, .mobile-grid { grid-template-columns: 1fr; }
  .challenge-copy, .lead-copy, .mobile-copy { max-width: 680px; }
  .context-proof, .context-proof.portrait { max-width: 100%; justify-self: stretch; }
  .context-proof.portrait { max-width: 480px; justify-self: center; }
  .scope-layout { gap: 48px; }
  .scope-heading { position: static; }
  .split-head { grid-template-columns: 1fr; gap: 28px; }
  .split-head > div:last-child { max-width: 640px; }
  .split-head p:not(.kicker) { margin-bottom: 0; }
  .service-grid, .service-grid.uneven { grid-template-columns: 1fr; gap: 60px; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 767px) { :root { --shell: calc(100vw - 48px); } }
@media (max-width: 760px) {
  .section-space { padding-block: 76px; }
  .case-hero { padding-top: 112px; }
  .back-link { margin-bottom: 30px; }
  .eyebrow { gap: 8px; font-size: 10px; letter-spacing: .12em; flex-wrap: wrap; }
  .eyebrow::after { display: none; }
  .case-hero h1 { font-size: clamp(39px, 10.6vw, 64px); line-height: .99; }
  .hero-title-wide { display: none !important; }
  .hero-title-compact { display: block !important; }
  .hero-title-compact > span { white-space: normal; }
  .hero-deck { margin-top: 24px; font-size: 18px; max-width: 540px; }
  .hero-actions { flex-wrap: wrap; gap: 20px 24px; margin-top: 24px; }
  .hero-stage { width: calc(100vw - 32px); margin-top: 32px; padding-bottom: 24px; }
  .hero-stage img { border-radius: 16px; }
  .site-window { border-radius: 22px; }
  .site-url { display: none; }
  .project-facts { padding-block: 22px; }
  .facts-grid { grid-template-columns: 1fr; gap: 15px; }
  .facts-grid > div { grid-template-columns: 70px 1fr; align-items: baseline; gap: 12px; }
  .facts-grid div > span { font-size: 10px; }
  .facts-grid strong { font-size: 13px; }
  .section-head h2, .lead-copy h2 { font-size: clamp(38px, 9.5vw, 52px); }
  .challenge-copy h2, .mobile-copy h2, .scope-heading h2 { font-size: clamp(36px, 9.5vw, 48px); }
  .challenge-grid { gap: 42px; }
  .board { padding: 24px; border-radius: 22px; }
  .swatch { min-height: 96px; }
  .related-grid { grid-template-columns: 1fr; gap: 42px; }
  .lead-grid { gap: 40px; }
  .lead-photo { width: 224px; }
  .pull-quote { padding-block: 64px; }
  .pull-quote blockquote { margin-block: 0; font-size: clamp(40px, 10.5vw, 64px); }
  .phone-pair { gap: 12px; }
  .phone-example:nth-child(2) { margin-top: 28px; }
  .phone-frame { padding: 5px; border-radius: 22px; }
  .phone-frame img, .phone-scroll, .phone-scroll .phone-scroller { border-radius: 17px; }
  .phone-example figcaption { font-size: 12px; }
  #collins-project-form-modal { position: fixed; inset: var(--project-form-top, 0) 0 auto; width: 100vw; max-width: 100vw; height: var(--project-form-height, 100dvh); max-height: none; margin: 0; border-radius: 0; overscroll-behavior: none; }
}
@media (max-width: 600px) { .service-proof .screen-frame { width: calc(100% - 32px); max-width: 402px; margin-inline: auto; } .service-proof figcaption { font-size: 15px; } }
@media (min-width: 1800px) { .case-hero h1 { font-size: 96px; } }

/* Pilates | Barre: studio black, off-white, one lime */
.case-hero { background: linear-gradient(180deg, #f6f3ec 0%, #ece7db 100%); }
.button-primary { color: #141414; background: #9be31c; box-shadow: 0 14px 34px rgba(155, 227, 28, .25); }
.swatch-black { color: #f4f1ea; background: #141414; }
.swatch-lime { color: #141414; background: #9be31c; }
.swatch-offwhite { color: #141414; background: #f4f1ea; border: 1px solid var(--line); }
.swatch-sand { color: #141414; background: #cbb391; }
.specimen { text-transform: uppercase; font-weight: 800; letter-spacing: -.03em; }
.pull-quote blockquote { color: #141414; }
.pull-quote blockquote em { color: #2f4a06; font-style: normal; }
.screen-frame { background: #2a2a2a; }
.service-grid.uneven { grid-template-columns: 1fr 1fr; }
.service-proof .screen-frame.phone-shot { aspect-ratio: 390 / 820; }
.service-proof .screen-frame.phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Mobile chapter: copy beside the two-phone mockup */
.mobile-section { background: var(--cream); }
.mobile-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.mobile-duo { min-width: 0; margin: 0; }
.mobile-duo img { width: 100%; height: auto; border-radius: 28px; }
.mobile-duo figcaption { margin-top: 14px; font-size: 13px; text-align: center; }
@media (max-width: 900px) { .mobile-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .mobile-duo img { border-radius: 18px; } }


/* What we built: four photo-led cards on the studio field */
.scope-section { background: var(--cream); }
.scope-section .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.scope-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.scope-cards article { min-width: 0; }
.scope-cards figure { margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #141414; aspect-ratio: 4 / 3; }
.scope-cards figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms var(--ease); }
.scope-cards article > span { display: block; margin: 22px 0 0; color: var(--accent-text); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.scope-cards h3 { margin: 12px 0 0; font-size: clamp(22px, 2vw, 28px); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.scope-cards p { max-width: 36ch; margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; letter-spacing: -.012em; line-height: 1.56; }
@media (hover:hover) and (pointer:fine) { .scope-cards article:hover figure img { transform: scale(1.03); } }
@media (max-width: 1100px) { .scope-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } }
@media (max-width: 600px) { .scope-cards { grid-template-columns: 1fr; gap: 40px; } .scope-cards p { max-width: 60ch; } }

/* Art direction: the site composite runs full width; the type board sits beneath it as one band */
.system-wide { margin: 0 0 clamp(20px, 2.4vw, 32px); }
.system-wide img { display: block; width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--line); }
.system-wide figcaption { padding: 18px 4px 0; max-width: 60ch; }
.boards.single { grid-template-columns: 1fr; }
.board-wide { grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(28px, 4vw, 64px); }
.board-copy { display: grid; gap: 22px; min-width: 0; }
.board-wide .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .board-wide { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .system-wide img { border-radius: 18px; } }

#site-preview.section-space { padding-bottom: clamp(56px, 6vw, 88px); }


/* ── Mobile responsiveness: no horizontal overflow, headings always wrap ── */
@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .case-page :is(h1, h2, h3, h4, blockquote, p, li, dt, dd, figcaption) { overflow-wrap: break-word; text-wrap: pretty; }
  .case-page :is(h1, h2, h3, blockquote) > span { white-space: normal; }
  .case-page :is(img, video, iframe, svg, canvas, picture) { max-width: 100%; }
  .case-page :is(table, pre) { max-width: 100%; overflow-x: auto; }
}
/* Large premium type that still fits a 320px screen */
@media (max-width: 430px) {
  .case-hero h1 { font-size: clamp(38px, 11.8vw, 52px); line-height: 1; letter-spacing: -.038em; }
  .section-head h2, .lead-copy h2, .challenge-copy h2, .mobile-copy h2, .scope-heading h2, .chapter-copy h2 { font-size: clamp(34px, 10.4vw, 46px); line-height: 1.02; letter-spacing: -.034em; }
  .pull-quote blockquote { font-size: clamp(34px, 10.6vw, 46px); line-height: 1.04; letter-spacing: -.034em; }
  .stats strong { font-size: clamp(34px, 10.4vw, 46px); }
  .eyebrow, .kicker { overflow-wrap: break-word; }
}
@media (max-width: 360px) {
  :root { --shell: calc(100vw - 36px); }
}
