/* UWP homepage concept - page-level styles: eyebrows, navigation, tickers and scroll-driven motion. */
:root { --off-black: #101010; --off-white: #f6f6f5; --rule-dark: rgba(255, 255, 255, 0.16); }

/* Eyebrow: light, uppercase, tracked, no leading character */
.eb { display: block; font-family: var(--font-text); font-weight: 300; font-size: 12px; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase; }

/* Display sizes used for editorial moments */
.hero-title { font-family: var(--font-display); font-weight: 450; font-size: min(8.2vw, 112px); line-height: 0.98; letter-spacing: 0; text-transform: uppercase; }
.stat-num { font-family: var(--font-display); font-weight: 450; font-size: clamp(64px, 9vw, 128px); line-height: 0.95; letter-spacing: 0; }

/* Case study results: one even row on desktop, numbers scale to their column and never wrap */
.stats { display: grid; grid-template-columns: 1fr; gap: 48px 20px; }
.stat { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stat .stat-num { font-size: clamp(56px, 24cqi, 128px); white-space: nowrap; }
@media screen and (min-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (min-width: 1024px) {
  .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* Navigation */
.nv-link { font-family: var(--font-text); font-size: 13px; font-weight: 400; line-height: 1; color: var(--white); text-decoration: none; white-space: nowrap; padding: 6px 0; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.3s ease; }
.nv-link:hover { background-size: 100% 1px; color: var(--white); }
.nv-cta { display: flex; align-items: center; gap: 12px; align-self: stretch; padding: 0 28px; border-left: 1px solid var(--rule-dark); font-family: var(--font-text); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); text-decoration: none; white-space: nowrap; transition: background-color 0.25s ease, color 0.25s ease; }
.nv-cta:hover { background: var(--white); color: var(--black); }
.nv-cta svg { transition: transform 0.25s ease; }
.nv-cta:hover svg { transform: translateX(4px); }
@media (hover: none) { .nv-cta:hover { background: none; color: var(--white); } }
.nv-links { display: flex; align-items: center; gap: 36px; margin-left: auto; padding-right: 40px; }
.nv-menu { display: none; }
.nv-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--white); transform-origin: left center; transform: scaleX(0); pointer-events: none; }
html.menu-open { overflow: hidden; }
/* Keeps keyboard focus clear of the sticky header (and the Services sub-navigation) */
html { scroll-padding-top: 76px; }
html:has(.sub) { scroll-padding-top: 128px; }
@media (max-width: 900px) {
  .nv-links { display: none; }
  .nv-menu { display: flex; margin-left: auto; padding: 0 20px; }
  .nv-cta { padding: 0 20px; font-size: 12px; }

  /* Mobile menu: a full-screen panel under the header. :target keeps it working without scripting */
  .nv-links:target, .nv-links.is-open { position: fixed; inset: 60px 0 0; z-index: 49; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 16px 20px 48px; overflow-y: auto; background: var(--black); }
  .nv-links:target .nv-link, .nv-links.is-open .nv-link { padding: 20px 0; border-bottom: 1px solid var(--rule-dark); background: none; font-family: var(--font-display); font-size: 32px; font-weight: 450; text-transform: uppercase; }
  .nv-links .nv-link.is-current { color: var(--grey-2); }
  footer .nv-link, .back-link { padding: 15px 0; }
  .hero-media { order: 1; }
}

/* Linked rows: number, title, one-line summary and an arrow. On a phone the summary sits under the title and the arrow holds the right edge */
.wk-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; padding: 28px 0; border-bottom: 1px solid var(--black); color: var(--black); text-decoration: none; }
.wk-link--tight { padding: 24px 0; }
.wk-link--dark { border-bottom-color: var(--rule-dark); color: var(--white); }
.wk-link .row-number { flex: none; width: 24px; }
.wk-link__title { flex: 1 1 240px; }
.wk-link__note { flex: 0 1 340px; }
.wk-link__arrow { display: flex; flex: none; align-self: center; }
@media (max-width: 720px) {
  .wk-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px 0; padding: 24px 0; }
  .wk-link .row-number { grid-area: 1 / 1; width: auto; margin-right: 16px; }
  .wk-link__title { grid-area: 1 / 2; }
  .wk-link__note { grid-area: 2 / 2; }
  .wk-link__arrow { grid-area: 1 / 3 / 3 / 4; margin-left: 24px; }
}

/* Rows and cards: hover moves the arrow, never the colour */
.wk-row svg, .card svg { transition: transform 0.25s ease; }
.wk-row:hover svg, .card:hover svg { transform: translateX(6px); }
.card .uwp-media img { transition: scale 0.6s ease; }
.card:hover .uwp-media img { scale: 1.04; }

/* Client logo over a card image. Logos are forced white; the scrim keeps them legible on pale photography */
.uwp-media--logo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, color-mix(in srgb, var(--black) 60%, transparent)); pointer-events: none; }
.uwp-media .card-logo { inset: auto auto 24px 24px; z-index: 1; width: auto; height: var(--logo-h, 22px); object-fit: contain; filter: brightness(0) invert(1); }
.card:hover .uwp-media .card-logo { scale: 1; }

/* Case study hero: the photo keeps its parallax, the logo stays still on top of it */
.px .card-logo { animation: none; }
.uwp-media--hero .card-logo { inset: auto auto clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px); }
@media screen and (min-width: 720px) {
  .uwp-media--hero .card-logo { height: calc(var(--logo-h, 22px) * 1.5); }
}

/* Video poster: a deeper scrim than the logo cards, because the poster carries large lettering behind the play label */
.uwp-media--video::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, color-mix(in srgb, var(--black) 78%, transparent)); pointer-events: none; }
.video-play { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 20px; padding: 40px; color: var(--white); text-decoration: none; }
.video-play__button { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--white); color: var(--black); }
@media (max-width: 720px) {
  .video-play { padding: 16px; }
  .video-play__label { display: none; }
  .video-play__button { width: 48px; height: 48px; }
}

/* Ticker: content that would overflow the width runs as one line instead of wrapping */
.tk { overflow: clip; width: 100%; }
.tk-track { display: flex; width: max-content; animation: tk 48s linear infinite; }
.tk-track.slow { animation-duration: 64s; }
.tk:hover .tk-track { animation-play-state: paused; }
.tk-set { display: flex; flex: none; align-items: center; }
.tk.is-paused .tk-track { animation-play-state: paused; }

/* Ticker pause control, added by site.js. WCAG 2.2.2 needs a way to stop motion that runs longer than five seconds */
.tk-host { position: relative; }
.tk-toggle { position: absolute; top: 50%; right: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 56px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 0; background: var(--tk-bg); cursor: pointer; }
.tk-toggle::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 48px; background: linear-gradient(to right, transparent, var(--tk-bg)); pointer-events: none; }
.tk-toggle:focus-visible { outline-offset: -4px; }
.tk-toggle svg { display: block; }
@media (prefers-reduced-motion: reduce) { .tk-toggle { display: none; } }
@keyframes tk { to { transform: translateX(-25%); } }

/* Clip instead of hide so these never become scroll containers (keeps scroll timelines attached to the page) */
.uwp-media { overflow: clip; }
.ln { display: block; overflow: clip; }
.ln > span { display: block; }

/* Line breaks written for desktop leave orphaned words on a phone, so titles reflow there instead */
@media (max-width: 720px) {
  .ln, .ln > span { display: inline; }
  .ln + .ln::before { content: " "; }
  h2 br { display: none; }
}

/* Scroll-driven motion: every effect is scrubbed by scroll position, so it plays forward going down and reverses going up */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Ranges are viewport lengths, not percentages, so a tall block (an open accordion) is fully lit by the same point on screen as a short one */
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: cover 2vh cover 26vh; }
    .rv.d1 { animation-range: cover 5vh cover 29vh; }
    .rv.d2 { animation-range: cover 8vh cover 32vh; }
    .rv.d3 { animation-range: cover 11vh cover 35vh; }
    @keyframes rv { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }

    .ln > span { animation: ln linear both; animation-timeline: view(); animation-range: cover 0% cover 24%; }
    .ln.d1 > span { animation-range: cover 4% cover 28%; }
    .ln.d2 > span { animation-range: cover 8% cover 32%; }
    @keyframes ln { from { transform: translateY(108%); } to { transform: none; } }

    .rule { transform-origin: left center; animation: rule linear both; animation-timeline: view(); animation-range: cover 0% cover 32%; }
    @keyframes rule { from { transform: scaleX(0); } to { transform: none; } }

    .px img { inset: auto; left: 0; top: -10%; width: 100%; height: 120%; animation: px linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes px { from { transform: translateY(-8%); } to { transform: translateY(8%); } }

    .grow { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 48%; }
    @keyframes grow { from { clip-path: inset(12% 9%); } to { clip-path: inset(0); } }

    .drift { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes drift { from { transform: translateX(6%); } to { transform: translateX(-14%); } }

    .hero-out { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes hero-out { from { opacity: 1; transform: none; } to { opacity: 0.2; transform: translateY(-40px); } }

    .nv-prog { animation: prog linear both; animation-timeline: scroll(); }
    @keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } }


/* ---- Multi-page additions ---- */
.nv-link.is-current { background-size: 100% 1px; }
.page-title { font-family: var(--font-display); font-weight: 450; font-size: clamp(38px, 6.2vw, 92px); line-height: 1; letter-spacing: 0; text-transform: uppercase; }
.case-title { font-family: var(--font-display); font-weight: 450; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; letter-spacing: 0; text-transform: uppercase; }

/* On-page secondary navigation (Services) */
.sub { position: sticky; top: 60px; z-index: 40; background: var(--off-black); border-bottom: 1px solid var(--rule-dark); }
.sub-in { display: flex; align-items: center; gap: 36px; height: 52px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.sub-in::-webkit-scrollbar { display: none; }
.sub-in .nv-link { padding: 19px 0; }

/* Image slot awaiting client photography */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; padding: 24px; border: 1px solid var(--black); background: var(--off-white); color: var(--black); }
.ph.dark { border-color: var(--rule-dark); background: var(--off-black); color: var(--white); }

/* Site screens with white edges sit on a mat, or they disappear into light sections */
.shot { background: var(--off-white); }
.shot img { inset: 6%; width: 88%; height: 88%; object-fit: contain; }

/* FAQ */
.faq { --acc-sign-hover: var(--white); border-bottom: 1px solid var(--black); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }

/* Accordion sign: a hairline square holding a plus that folds into a minus when open.
   site.js adds .is-closing while a panel animates shut, so the sign turns back as soon as it is tapped */
.acc-sign { position: relative; flex: none; width: 44px; height: 44px; box-sizing: border-box; border: 1px solid currentColor; transition: background-color 0.25s ease, color 0.25s ease; }
.acc-sign::before, .acc-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; margin: -0.5px 0 0 -7px; background: currentColor; transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1); }
.acc-sign::after { transform: rotate(90deg); }
details[open]:not(.is-closing) > summary .acc-sign::after { transform: rotate(180deg); }
@media (hover: hover) {
  summary:hover .acc-sign { background: currentColor; }
  summary:hover .acc-sign::before, summary:hover .acc-sign::after { background: var(--acc-sign-hover, var(--black)); }
}

/* About hero: the words take turns once, then all stay lit. Finishing inside five seconds avoids needing a pause control (WCAG 2.2.2) */
.cyc span { display: block; color: #6e6e6e; animation: cyc 1s linear forwards, cyc-end 0.6s ease 5s forwards; }
.cyc span:nth-child(2) { animation-delay: 1s, 5s; } .cyc span:nth-child(3) { animation-delay: 2s, 5s; } .cyc span:nth-child(4) { animation-delay: 3s, 5s; } .cyc span:nth-child(5) { animation-delay: 4s, 5s; }
@keyframes cyc { 0%, 85% { color: #ffffff; } 100% { color: #6e6e6e; } }
@keyframes cyc-end { to { color: #ffffff; } }
@media (prefers-reduced-motion: reduce) { .cyc span { animation: none; color: #ffffff; } }

/* Final sections never get enough scroll travel to finish a reveal, so they stay still */
.still .rv, .still .ln > span, .still .rule { animation: none !important; }

/* Consent banner. Sits under the mobile menu (z-index 49) so the menu covers it while open */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--black); color: var(--white); border-top: 1px solid var(--rule-dark); padding: 20px clamp(20px, 4.2vw, 60px) calc(20px + env(safe-area-inset-bottom)); font-family: var(--font-text); -webkit-font-smoothing: antialiased; }
.consent:focus { outline: none; }
.consent__in { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.consent__copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.consent__copy p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.4; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.consent__actions .uwp-cta { min-width: 132px; justify-content: center; }
.consent__policy { padding: 14px 0; }
.cookie-settings { appearance: none; background: none; border: 0; padding: 6px 0; cursor: pointer; text-align: left; color: var(--white); }
@media (max-width: 900px) {
  .consent__actions { width: 100%; }
  .consent__policy { flex: 1 0 100%; }
  .consent__actions .uwp-cta { flex: 1 1 0; min-width: 0; }
}

/* Skip link: first tab stop on every page, hidden until focused */
.skip-link { position: absolute; left: 16px; top: 16px; z-index: 100; padding: 14px 18px; background: var(--white); color: var(--black); font-family: var(--font-text); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; outline: 2px solid var(--black); outline-offset: 2px; }

/* Where you are: six inflection-point statements, one open at a time (native exclusive accordion through name="where").
   Rules follow the section: dark sections use the default, light sections set --where-rule to the black hairline */
/* Statements are divided by a full-strength hairline; the rules inside an open panel stay faint, so the six choices read as six */
.where-list { width: 100%; border-top: 1px solid currentColor; }
.where { border-bottom: 1px solid currentColor; scroll-margin-top: 128px; }
.where summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; padding: 28px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.where summary::-webkit-details-marker { display: none; }
.where summary .row-number { flex: none; width: 24px; }
.where-title { flex: 1 1 320px; min-width: 0; margin: 0; font-family: var(--font-text); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; letter-spacing: 0; }
.where-title small { display: block; margin-top: 8px; font-size: 16px; line-height: 1.3; color: var(--grey-2); }
.where-sign { align-self: center; margin-left: auto; }
.where-body { display: flex; flex-wrap: wrap; gap: 48px 60px; padding: 12px 0 56px; }
.where-need { flex: 1 1 320px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.where-need ul { list-style: none; width: 100%; margin: 0; padding: 0; border-top: 1px solid var(--where-rule, var(--rule-dark)); }
.where-need li { padding: 14px 0; border-bottom: 1px solid var(--where-rule, var(--rule-dark)); }
.where-services { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.where-proof { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.where-proof > .where-cases { align-self: stretch; }
.where-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.where-cases { display: flex; flex-wrap: wrap; gap: 32px 20px; }
.where-cases .card { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.where-cases .uwp-media { aspect-ratio: 4 / 3; margin-bottom: 4px; }
@media (max-width: 720px) {
  .where summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: start; padding: 24px 0; }
  .where summary .row-number { grid-area: 1 / 1; width: auto; }
  .where-title { grid-area: 2 / 1; }
  .where-sign { grid-area: 1 / 2 / 3 / 3; align-self: center; margin-left: 0; }
  .where-body { gap: 40px; padding: 8px 0 48px; }
  .where-need > .uwp-cta { align-self: stretch; }
}

/* Inline role links into the Work page lens */
.role-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.role-links a:hover { text-decoration-thickness: 2px; }

/* Where you are as a hairline list of links (Work page) */
.where-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; padding: 24px 0; border-bottom: 1px solid var(--black); color: var(--black); text-decoration: none; }
.where-link .row-number { flex: none; width: 24px; }
.where-link .desktop-title-5-lower { flex: 1 1 240px; }
.where-link svg { flex: none; align-self: center; margin-left: auto; }

/* Who you are: role lens on the Work page. Radios are the control; the section's data-lens drives which copy shows */
.lens { display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.lens legend { padding: 0; margin-bottom: 20px; }
.lens-row { display: flex; align-items: baseline; gap: 28px; width: 100%; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding-bottom: 2px; border-bottom: 1px solid var(--black); }
.lens-row::-webkit-scrollbar { display: none; }
.lens-opt { position: relative; flex: none; }
.lens-opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.lens-opt span { display: block; padding: 12px 0 14px; font-family: var(--font-text); font-size: 15px; line-height: 1; color: var(--black); cursor: pointer; background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; transition: background-size 0.3s ease; }
.lens-opt:hover span, .lens-opt input:checked + span { background-size: 100% 2px; }
.lens-opt input:checked + span { font-weight: 500; }
.lens-opt input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 3px; }
.lens-note { min-height: 1.3em; }
.lensed [data-for] { display: none; }
.lensed[data-lens="all"] [data-for="all"], .lensed[data-lens="cfo"] [data-for="cfo"], .lensed[data-lens="coo"] [data-for="coo"], .lensed[data-lens="cto"] [data-for="cto"], .lensed[data-lens="cmo"] [data-for="cmo"], .lensed[data-lens="ecom"] [data-for="ecom"] { display: revert; }

/* Select fields take the same hairline treatment as the inputs */
select.uwp-field__input { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat right center; }
select.uwp-field__input option { color: var(--black); background: var(--white); }

/* Policy pages */
.policy { display: flex; flex-direction: column; gap: 40px; max-width: 760px; }
.policy-block { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-top: 1px solid var(--black); padding-top: 28px; }
.policy-block h2, .policy-block p, .policy-block li { margin: 0; }
.policy-block ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; }
.policy-block a { color: inherit; }
.policy-gap { font-weight: 500; }
