/* Javi's Pools V2. Page composition only; shared navigation and interactions are unchanged. */
:root {
  --ink: #102c3b;
  --ink-soft: #52616b;
  --paper: #fff;
  --cream: #f4f5f3;
  --accent: #087184;
  --accent-deep: #075c6c;
  --blue: #137bc4;
  --line: rgba(16, 44, 59, .14);
  --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;
}
@font-face {
  font-family: "Javis Anton";
  src: url("../../case-studies/javis-pools-preview/assets/fonts/anton.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: inherit; -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
img, video, picture { display: block; max-width: 100%; }
img { height: auto; }
figure, p, dl, dd { margin: 0; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p, figcaption { text-wrap: pretty; }
.case-shell { width: var(--shell); margin-inline: auto; }
.section-space { padding-block: clamp(88px, 9vw, 136px); }
:target { scroll-margin-top: 106px; }
.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; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
html.no-sf :is(h1, h2, h3) { letter-spacing: -.025em; font-weight: 700; }
.case-hero { padding-top: 128px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 32px; color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.eyebrow, .kicker { margin: 0 0 22px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.case-hero h1 { max-width: 1200px; margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(58px, 6.5vw, 94px); font-weight: 700; letter-spacing: -.047em; line-height: 1.02; }
.case-hero h1 > span { color: var(--accent); }
.hero-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-block: 32px 56px; }
.hero-deck { max-width: 690px; color: var(--ink-soft); font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -.018em; line-height: 1.45; }
.text-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; width: fit-content; min-height: 44px; color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: none; }
.text-link span { transition: transform 180ms ease; }
.hero-art { background: #e7f1ee; }
.hero-stage { width: var(--shell); margin-inline: auto; padding-block: 44px 28px; }
.hero-stage img { width: 100%; }
.project-facts { padding-block: 38px; border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: .85fr .8fr 1.2fr 1.15fr; gap: 32px; }
.facts-grid dt { margin-bottom: 13px; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.facts-grid dd { font-size: 15px; font-weight: 600; line-height: 1.5; }
.facts-grid dd span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 14px; font-weight: 400; }
.section-head h2, .identity-copy h2, .contact-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(42px, 4.8vw, 68px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.split-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: clamp(36px, 6vw, 88px); margin-bottom: 56px; }
.split-head p:not(.kicker), .identity-copy > p:not(.kicker):not(.detail-label), .contact-copy > p:not(.kicker) { max-width: 54ch; color: var(--ink-soft); font-size: 18px; letter-spacing: -.012em; line-height: 1.6; }
figcaption { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
figcaption strong { color: var(--ink); font-weight: 600; }
.identity-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(40px, 5.5vw, 80px); align-items: center; }
.identity-mark img { width: 100%; border-radius: 4px; }
.identity-mark figcaption { margin-top: 16px; }
.identity-copy h2 { font-size: clamp(38px, 4vw, 56px); }
.identity-copy > p:not(.kicker):not(.detail-label) { margin-top: 26px; }
.brand-palette { display: flex; gap: 10px; margin-top: 32px; }
.brand-palette span { width: clamp(32px, 4vw, 50px); aspect-ratio: 1; border-radius: 50%; background: #07263b; }
.brand-palette span:nth-child(2) { background: #08698c; }
.brand-palette span:nth-child(3) { background: #18b4c4; }
.brand-palette span:nth-child(4) { background: #f5b332; }
.brand-palette span:nth-child(5) { background: #f0e8d5; }
.detail-label { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.brand-world { margin-top: clamp(64px, 7vw, 104px); }
.brand-world img { width: 100%; }
.brand-world figcaption { margin-top: 20px; }
.website-section { background: #f4f6f5; }
.screen-frame { overflow: hidden; border: 1px solid #ced6d8; border-radius: 18px; background: #e7efed; }
.screen-frame picture, .screen-frame img { width: 100%; }
.browser-chrome { display: grid; grid-template-columns: repeat(3, 7px) 1fr; align-items: center; gap: 6px; height: 40px; padding-inline: 14px; background: #fff; }
.browser-chrome > span { width: 7px; height: 7px; border-radius: 50%; background: #c6c8cf; }
.browser-title { justify-self: center; display: grid; min-height: 40px; align-content: center; margin-left: -42px; text-align: center; text-decoration: none; }
.browser-title strong { font-size: 11px; font-weight: 600; }
.browser-title small { color: var(--ink-soft); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.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; }

.cs-stage .preview-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; min-height: 44px; margin-top: 8px; }
.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; }


.preview-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.preview-note p { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.page-showcase { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); gap: 32px; margin-top: clamp(64px, 7vw, 100px); }
.page-proof { min-width: 0; }
.page-proof:nth-child(2) { padding-top: 90px; }
.page-proof figcaption { max-width: 50ch; margin-top: 22px; }
.contact-section { background: #0b2637; color: #fffdf8; }
.contact-section .kicker { color: #9bdee1; }
.contact-section .contact-copy > p:not(.kicker) { color: #c5d2d8; margin-top: 26px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(48px, 7vw, 100px); }
.contact-section .text-link { color: #f8d078; margin-top: 22px; }
.contact-section a:focus-visible { outline-color: #f8d078; }
.request-steps { margin: 30px 0 0; padding: 0; list-style: none; }
.request-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #ffffff26; }
.request-steps li > span { padding-top: 1px; font-size: 12px; line-height: 22px; font-variant-numeric: tabular-nums; color: #9bdee1; }
.request-steps h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.012em; line-height: 1.4; }
.request-steps p { margin-top: 5px; color: #b8c9d1; font-size: 14px; line-height: 1.5; }
.phone-pair { display: flex; justify-content: center; align-items: start; gap: 24px; }
.phone-example { flex: 1; max-width: 270px; min-width: 0; }
.phone-example:nth-child(2) { margin-top: 88px; }
.phone-frame { padding: 7px; border: 1px solid #425761; border-radius: 30px; background: #14202a; }
.phone-frame img { width: 100%; border-radius: 23px; }
.phone-example figcaption { margin-top: 18px; color: #c5d2d8; font-size: 12px; text-align: center; }
.creative-section { background: #fffdf8; }
.creative-boards { display: grid; gap: 72px; }
.creative-board img { width: 100%; }
.creative-board figcaption { margin-top: 20px; }
.creative-board-repair { width: min(1120px, calc(100% - 64px)); justify-self: end; }
.social-section { background: #e8f0ed; }
.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.social-piece:nth-child(2) { margin-top: 58px; }
.social-piece:nth-child(3) { margin-top: 116px; }
.social-art { position: relative; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; background: #082d42; }
.social-art > img { width: 100%; height: 100%; object-fit: cover; }
.social-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,24,40,.45), transparent 38%, rgba(0,24,40,.8)); pointer-events: none; }
.social-lockup { position: absolute; z-index: 1; top: 22px; left: 22px; display: flex; align-items: center; gap: 9px; }
.social-lockup img { width: 40px; height: 40px; flex: none; }
.social-lockup span { color: #fff; font-size: 12px; font-weight: 600; }
.social-headline { position: absolute; z-index: 1; inset: auto 24px 30px; font-family: "Javis Anton", Impact, sans-serif; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.1; text-transform: uppercase; letter-spacing: -.015em; }
.social-art-detail .social-headline { color: #fbc55c; }
.social-piece figcaption { margin-top: 16px; font-size: 13px; }
.social-note { max-width: 66ch; color: var(--ink-soft); font-size: 12px; line-height: 1.6; margin-top: 40px; }
.case-page .lead-cta-shell { width: var(--shell); }
.case-page .lead-cta-link { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; }
.related-work .section-head { margin-bottom: 42px; }
.related-work .section-head h2 { font-size: clamp(38px, 4vw, 56px); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-card { display: block; text-decoration: none; }
.related-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; transition: transform 450ms var(--ease), box-shadow 450ms var(--ease); }
.related-card > span { display: block; margin-top: 20px; color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.related-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 0 0; font-size: 24px; letter-spacing: -.025em; }
.related-card h3 span { font-size: 20px; }
.case-page .collins-footer-directory { padding-top: 0; }
/* 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; }


@media (max-width: 1060px) {
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 26px 32px; }
  .hero-intro { align-items: start; flex-direction: column; gap: 20px; }
  .contact-grid { gap: 40px; }
  .phone-pair { gap: 16px; }
}
@media (max-width: 900px) {
  .split-head, .identity-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .identity-copy { grid-row: 1; max-width: 620px; }
  .identity-mark { max-width: 748px; }
  .cs-stage { grid-template-columns: 1fr; gap: 36px; }
  .cs-phonecol { max-width: 300px; }
  .page-showcase { grid-template-columns: 1fr; gap: 48px; }
  .page-proof:nth-child(2) { padding-top: 0; }
  .phone-pair { margin-top: 20px; gap: 32px; }
  .phone-example { max-width: 294px; }
  .phone-example:nth-child(2) { margin-top: 64px; }
  .contact-copy { max-width: 650px; }
  .request-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
  .social-headline { font-size: clamp(27px, 4vw, 36px); inset-inline: 16px; bottom: 20px; }
  .social-lockup { top: 16px; left: 16px; }
  .social-lockup span { display: none; }
}
@media (max-width: 760px) {
  :root { --shell: calc(100vw - 48px); }
  .section-space { padding-block: 80px; }
  .case-hero { padding-top: 112px; }
  .back-link { margin-bottom: 24px; }
  .eyebrow, .kicker { font-size: 10px; letter-spacing: .12em; margin-bottom: 20px; }
  .case-hero h1 { font-size: clamp(42px, 10.8vw, 72px); letter-spacing: -.04em; line-height: 1.04; }
  .hero-intro { margin-block: 26px 36px; }
  .hero-deck { font-size: 19px; line-height: 1.5; }
  .hero-stage { width: calc(100vw - 32px); padding-block: 28px 18px; }
  .project-facts { padding-block: 30px; }
  .facts-grid { gap: 26px 20px; }
  .facts-grid dt { font-size: 10px; margin-bottom: 10px; }
  .facts-grid dd, .facts-grid dd span { font-size: 13px; }
  .section-head h2, .identity-copy h2, .contact-copy h2 { font-size: clamp(36px, 9vw, 56px); }
  .split-head { margin-bottom: 36px; gap: 24px; }
  .split-head p:not(.kicker), .identity-copy > p:not(.kicker):not(.detail-label), .contact-copy > p:not(.kicker) { font-size: 17px; }
  .brand-world { margin-top: 48px; }
  .brand-world figcaption, .creative-board figcaption { font-size: 13px; margin-top: 16px; }
  .preview-note { flex-direction: column; align-items: start; gap: 10px; margin-top: 12px; }
  .page-showcase { margin-top: 56px; }
  .creative-boards { gap: 44px; }
  .creative-board-repair { width: 100%; }
  .social-grid { grid-template-columns: 1fr; gap: 36px; max-width: 480px; margin-inline: auto; }
  .social-piece:nth-child(n) { margin-top: 0; }
  .social-headline { font-size: clamp(38px, 10vw, 58px); inset: auto 24px 28px; }
  .social-lockup { top: 22px; left: 22px; }
  .social-lockup span { display: inline; }
  .social-note { margin-top: 32px; }
  .related-grid { grid-template-columns: 1fr; gap: 40px; }
  .related-card h3 { font-size: 24px; }
  #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) {
  .cs-desk { display: none; }
  .cs-phonecol { max-width: 330px; }
  .page-proof .screen-frame { width: min(330px, 100%); margin-inline: auto; border-radius: 22px; }
  .page-proof figcaption { max-width: 330px; margin-inline: auto; font-size: 14px; }
  .request-steps { grid-template-columns: 1fr; }
  .phone-pair { flex-direction: column; align-items: center; gap: 38px; }
  .phone-example { width: min(318px, 100%); max-width: none; flex: none; }
  .phone-example:nth-child(2) { margin-top: 0; }
  .contact-section .phone-example figcaption { font-size: 13px; }
  .brand-palette span { width: 40px; }
}
@media (max-width: 360px) {
  :root { --shell: calc(100vw - 36px); }
  .case-hero h1 { font-size: 39px; }
  .facts-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (hover: hover) and (pointer: fine) {
  .back-link:hover { color: var(--ink); transform: translateX(-3px); }
  .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
  .text-link:hover span { transform: translate(2px, -2px); }
  .preview-enter:hover > span { background: var(--accent-deep); }
  .related-card:hover img { transform: translateY(-5px); box-shadow: 0 18px 32px -16px #102c3b40; }
}
@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%; }
}
