/* Home page only. Uses the tokens from patrace.css. */

/* ---------- Client logos band ---------- */
.logos { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); margin-inline: var(--edge-gap); padding: 22px var(--inset); border-bottom: 1px solid var(--line); }
.logos-label { flex: none; color: var(--soft-ink); }
.logos-run { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.logos-track { display: flex; width: max-content; animation: logos-x 48s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.lg-grp { display: flex; align-items: center; }
.lg { display: block; flex: none; width: auto; height: 46px; margin-right: clamp(56px, 6vw, 96px); opacity: .7; transition: opacity .4s ease; }
.lg--wide { height: 34px; }
.lg:hover { opacity: 1; }
@keyframes logos-x { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .logos { flex-direction: column; align-items: flex-start; gap: 14px; } .logos-run { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }

/* ---------- Three ways in: stacked cards ---------- */
.ways { padding-top: clamp(90px, 9vw, 140px); padding-bottom: clamp(60px, 6vw, 100px); }
.ways-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; margin-bottom: 34px; }
.ways-head .body-s { margin: 0; max-width: 360px; color: var(--soft-ink); }
.ways-stack { padding-inline: var(--edge-gap); }
.way { position: sticky; top: calc(var(--header-h) + 16px + var(--i) * 14px); margin-bottom: 4vh; transform-origin: 50% 0; will-change: transform; }
.way:last-child { margin-bottom: 0; }
/* Even padding on all four sides; the text column runs the full height of the picture so the link sits on its bottom edge. */
.way-in { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: stretch; padding: clamp(24px, 2.6vw, 40px); border-radius: 14px; overflow: hidden; }
.way:nth-child(1) .way-in { background: var(--tint-denim-1); }
.way:nth-child(2) .way-in { background: var(--tint-denim-2); }
.way:nth-child(3) .way-in { background: var(--tint-denim-3); }
.way-text { display: flex; flex-direction: column; padding-left: clamp(0px, 1.4vw, 16px); }
.way-text .num { font-family: var(--font-label); font-size: var(--size-label); letter-spacing: .2em; margin: 0 0 22px; text-transform: uppercase; }
.way-text .title { margin: 0 0 10px; }
.way-text .nri { display: block; color: var(--soft-ink); margin: 0 0 24px; }
.way-text .body-s { margin: 0 0 12px; max-width: 440px; }
.way-text .suite-list { margin-bottom: 30px; }
.way-text .link-bracket { margin-top: auto; line-height: 1; }
.way-text .way-btn { margin-top: auto; align-self: flex-start; background: var(--deep-denim); border-color: var(--deep-denim); color: var(--white); }
.way-text .way-btn:hover { background: color-mix(in srgb, var(--deep-denim) 82%, var(--ink)); border-color: color-mix(in srgb, var(--deep-denim) 82%, var(--ink)); color: var(--white); }
.way-media { justify-self: end; align-self: end; width: min(100%, 440px); aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 130px); overflow: hidden; border-radius: 8px; }
.way-media img, .way-media video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .way { top: calc(var(--header-h) + 8px + var(--i) * 10px); }
  .way-in { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .way-text { padding-left: 0; }
  .way-text .link-bracket, .way-text .way-btn { margin-top: 8px; }
  .way-media { justify-self: stretch; width: 100%; aspect-ratio: 4 / 3; }
}

/* ---------- Selected work: black and white, colour on hover ---------- */
.wk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-inline: var(--edge-gap); }
.wk { display: block; }
.wk-im { aspect-ratio: 4 / 5; overflow: hidden; background: var(--denim-mist); }
.wk-im img, .wk-im video { width: 100%; height: 100%; object-fit: cover; transition: filter .9s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
.wk-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px 26px; }
.wk-name { font-size: 13.5px; }
.wk-cap .label { color: var(--soft-ink); }
@media (hover: hover) {
  .wk-im img, .wk-im video { filter: grayscale(1); }
  .wk:hover .wk-im img, .wk:hover .wk-im video, .wk:focus-visible .wk-im img { filter: none; transform: scale(1.03); }
}
@media (max-width: 900px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- How it works: Client Access preview beside the intro ---------- */
.how-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.how-intro .h2 { margin: 18px 0 26px; }
.how-intro .body-s { max-width: 400px; margin: 0 0 14px; }
.how-ca { margin-top: 26px; }
.ca { position: relative; margin: 0; padding: 0 0 84px 46px; }
.ca-browser { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--ink) 45%, transparent); font-family: var(--font-sans); color: var(--ink); }
.ca-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--denim-mist); }
.ca-dots { display: flex; gap: 5px; }
.ca-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ca-url { flex: 1; max-width: 300px; margin-inline: auto; text-align: center; font-size: 10px; background: var(--white); border-radius: 4px; padding: 3px 10px; color: var(--soft-ink); }
.ca-nav { display: flex; justify-content: space-between; padding: 10px 22px; border-bottom: 1px solid var(--line); font-family: var(--font-label); font-size: 7.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft-ink); }
.ca-nav b { font-weight: 400; color: var(--ink); }
.ca-screens { display: grid; }
.ca-screen { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.ca-screen.on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.ca-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; padding: 20px 22px; align-items: start; }
.ca-tag { font-family: var(--font-label); font-size: 7px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft-ink); margin: 0 0 8px; }
.ca-greet { font-family: var(--font-serif); font-size: clamp(14px, 1.3vw, 18px); line-height: 1.25; margin: 0 0 8px; }
.ca-small { font-size: 9px; line-height: 1.55; color: var(--soft-ink); margin: 0; max-width: 240px; }
.ca-card { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.ca-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 9px; line-height: 1.35; }
.ca-item em { display: block; font-style: normal; font-size: 7.5px; color: var(--soft-ink); }
.ca-go { font-family: var(--font-label); font-size: 6.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.ca-btn { display: inline-block; margin-top: 10px; padding: 6px 10px; background: var(--plum); color: var(--white); font-family: var(--font-label); font-size: 6.5px; letter-spacing: .18em; text-transform: uppercase; border-radius: 2px; }
.ca-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ca-feed--ph { grid-template-columns: repeat(2, 1fr); }
.ca-th { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--denim-mist); }
.ca-th img { width: 100%; height: 100%; object-fit: cover; }
.ca-chip { position: absolute; left: 4px; bottom: 4px; padding: 2px 4px; background: var(--white); font-weight: 400; font-family: var(--font-label); font-size: 5.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); border-radius: 2px; }
.ca-chip--soft { color: var(--soft-ink); }
.ca-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ca-stats > div { padding: 10px 22px 14px; font-family: var(--font-serif); font-size: 11px; border-right: 1px solid var(--line); }
.ca-stats > div:last-child { border-right: 0; }
.ca-stats em { display: block; font-style: normal; font-family: var(--font-label); font-size: 6.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft-ink); margin-bottom: 4px; }
.ca-prog { display: block; height: 2px; background: var(--line); margin-top: 6px; border-radius: 2px; overflow: hidden; }
.ca-prog i { display: block; height: 100%; width: 0; background: var(--plum); transition: width 1.4s cubic-bezier(.2,.7,.2,1) .5s; }
.ca-screen.on .ca-prog i { width: var(--p, 40%); }
.ca-phone { position: absolute; left: 0; bottom: 0; width: clamp(108px, 9.5vw, 132px); background: var(--white); border: 5px solid var(--ink); border-radius: 20px; padding: 0 10px 12px; box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--ink) 55%, transparent); font-family: var(--font-sans); color: var(--ink); }
.ca-ph-top { display: flex; justify-content: space-between; margin: 0 -10px 10px; padding: 16px 10px 8px; background: var(--plum); color: var(--white); border-radius: 14px 14px 0 0; font-family: var(--font-label); font-size: 6px; letter-spacing: .16em; text-transform: uppercase; }
.ca-phone .ca-btn { display: block; text-align: center; }
.ca-tabs { display: flex; justify-content: flex-end; gap: 22px; margin-top: 22px; }
.ca-tabs button { background: none; border: 0; padding: 0 0 4px; font-family: var(--font-label); font-size: var(--size-label); letter-spacing: .2em; text-transform: uppercase; color: var(--soft-ink); cursor: pointer; border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease; }
.ca-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* Motion: the screen rises, the phone slides in; each screen brings its items in one by one. */
.js .ca-browser { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1.3s cubic-bezier(.2,.7,.2,1); }
.js .ca-phone { opacity: 0; transform: translate(-24px, 20px); transition: opacity 1s ease .45s, transform 1.3s cubic-bezier(.2,.7,.2,1) .45s; }
.ca.is-in .ca-browser, .ca.is-in .ca-phone { opacity: 1; transform: none; }
.js .ca-screen .ca-item, .js .ca-screen .ca-th, .js .ca-screen .ca-btn { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.ca.is-in .ca-screen.on .ca-item, .ca.is-in .ca-screen.on .ca-th, .ca.is-in .ca-screen.on .ca-btn { opacity: 1; transform: none; }
.ca-screen.on .ca-item:nth-of-type(1), .ca-screen.on .ca-th:nth-child(1) { transition-delay: .35s; }
.ca-screen.on .ca-item:nth-of-type(2), .ca-screen.on .ca-th:nth-child(2) { transition-delay: .5s; }
.ca-screen.on .ca-item:nth-of-type(3), .ca-screen.on .ca-th:nth-child(3) { transition-delay: .65s; }
.ca-screen.on .ca-th:nth-child(4) { transition-delay: .8s; }
.ca-screen.on .ca-th:nth-child(5) { transition-delay: .95s; }
.ca-screen.on .ca-th:nth-child(6) { transition-delay: 1.1s; }
.ca-screen.on .ca-btn { transition-delay: .9s; }
.ca.is-in .ca-phone { animation: ca-float 6s ease-in-out 2s infinite; }
@keyframes ca-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 900px) {
  .how-top { grid-template-columns: 1fr; }
  .ca { padding: 0; margin-top: 10px; }
  .ca-phone { display: none; }
  .ca-body { grid-template-columns: 1fr; }
  .ca-hello .ca-small { display: none; }
  .ca-stats > div:nth-child(2), .ca-stats > div:nth-child(3) { display: none; }
  .ca-stats { grid-template-columns: 1fr 1fr; }
  .ca-tabs { justify-content: flex-start; flex-wrap: wrap; gap: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ca-browser, .js .ca-phone, .js .ca-screen .ca-item, .js .ca-screen .ca-th, .js .ca-screen .ca-btn { opacity: 1; transform: none; transition: none; animation: none; }
}

/* ---------- Refinements (round 3) ---------- */
/* Studio script sits below the statement, at the same distance it had above. */
.home-page .studio-sec .script-bg { top: auto; bottom: 16%; left: 54%; }
@media (max-width: 760px) { .home-page .studio-sec .script-bg { bottom: 8%; left: 36%; } }

/* Panels with a tint get the same soft corners as the service cards; photographs stay square. */
.home-page .how-sec { border-radius: 14px; }
.way-media { border-radius: 0; }

/* Built for captions: name on the left edge of the picture, number on the right, a hairline between. */
.home-page .card figcaption { grid-template-columns: 1fr auto; gap: 0 16px; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.home-page .card figcaption > div { display: contents; }
.home-page .card figcaption .num { grid-column: 2; grid-row: 1; padding-top: 0; font-family: var(--font-label); font-size: var(--size-label); letter-spacing: .2em; text-transform: uppercase; }
.home-page .card figcaption .name { grid-column: 1; grid-row: 1; }
.home-page .card figcaption .nri { grid-column: 1 / -1; margin-top: 8px; }
.home-page .card figcaption .label { grid-column: 1 / -1; margin-top: 10px; color: var(--soft-ink); }


/* Reviews: no rule above, less empty space, a quote size in line with the rest of the Newsreader on the page. */

/* ---------- Refinements (round 4) ---------- */
.logos { border-bottom: 0; }
/* The moving words sit under the Three ways in heading, inset with the same soft corners as the cards. */
.home-page .ways .words { margin: 0 var(--edge-gap) 16px; border-radius: 14px; }
.home-page .ways .marquee { height: 58px; }
.home-page .ways .words[data-band] { clip-path: inset(50% 0 50% 0 round 14px); }
.home-page .ways .words[data-band].is-in { clip-path: inset(0 0 0 0 round 14px); }
@media (prefers-reduced-motion: reduce) { .home-page .ways .words[data-band] { clip-path: none; } }
@media (max-width: 760px) {
  .home-page .hero-strip { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .logos { align-items: center; }
  .logos-label { text-align: center; }
  .home-page .studio-sec { min-height: 0; padding-block: 90px 130px; }
  .home-page .studio-sec .script-bg { left: auto; right: -40px; top: auto; bottom: 40px; width: 230px; }
}

/* ---------- Refinements (round 5): logos follow Selected work ---------- */
.home-page .sec:has(+ .logos) { padding-bottom: clamp(56px, 6vw, 90px); }
.home-page .logos { flex-direction: column; align-items: stretch; gap: 26px; margin-inline: var(--edge-gap); padding: 0 0 clamp(130px, 14vw, 220px); border: 0; }
.home-page .logos-label { text-align: center; }
.home-page .logos-run { width: 100%; }
/* Logos: a fine line above and the logos right under it, compact. */
.home-page .sec:has(+ .logos) { padding-bottom: clamp(36px, 4vw, 56px); }
.home-page .logos { gap: 0; padding: 28px 0 clamp(120px, 13vw, 200px); border-top: 1px solid var(--line-strong); }

/* ---------- The Studio: words fill in with the scroll; each moment brings its picture ---------- */
.st-imgs { position: absolute; inset: 0; pointer-events: none; }
.st-im { position: absolute; margin: 0; width: clamp(130px, 12vw, 190px); aspect-ratio: 4 / 5; overflow: hidden; opacity: 0; filter: blur(14px); transition: opacity 1.4s ease, filter 1.6s ease, transform 1.4s cubic-bezier(.16,.84,.24,1); will-change: transform; box-shadow: 0 24px 44px -28px color-mix(in srgb, var(--ink) 50%, transparent); }
.st-im img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.4s cubic-bezier(.16,.84,.24,1); }
.st-im.on { opacity: 1; filter: none; }
.st-im.on img { transform: none; }
.st-im--1 { left: 6%; top: 12%; }
.st-im--2 { right: 7%; top: 38%; }
.st-im--3 { left: 12%; bottom: 10%; }
@media (max-width: 1100px) { .st-im--1 { left: 3%; } .st-im--2 { right: 3%; } .st-im--3 { left: 5%; } .st-im { width: 120px; } }
@media (max-width: 860px) {
  .st-imgs { position: static; display: flex; justify-content: center; gap: 8px; order: 2; margin-top: 40px; padding-inline: 20px; }
  .st-im { position: static; width: 30%; max-width: 140px; }
  .home-page .studio-sec { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .st-im { opacity: 1; filter: none; transition: none; }
  .st-im img { transform: none; }
}

/* Selected work on touch screens: the pictures start in black and white and turn to colour one after another as they appear. */
@media (hover: none) {
  .wk-im img, .wk-im video { filter: grayscale(1); transition: filter 1.4s ease; }
  .wk.is-color .wk-im img, .wk.is-color .wk-im video { filter: none; }
}
/* Reviews: a small service label in place of the photo. */
.lg--mid { height: 36px; }
.lg--sm { height: 22px; }
.lg--wide { height: 30px; }
/* Hero: on phones the call button runs the full width of the column. */
@media (max-width: 760px) { .home-page .hero-foot .button { width: 100%; } }
