/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---------- Header: fixed; 40px utility bar + 80px (125px ≥1800) nav bar ---------- */
.site-header { position: sticky; top: 0; z-index: 30; width: 100%; }
.navbar { background: var(--c-navy); height: 56px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--c-rule-dark); }
@media (max-width: 899.98px) { .navbar { height: 112px; } }   /* roomy on phones, so the logo can be read */
@media (min-width: 1200px) { .navbar { height: 80px; padding: 0 38px; } }
@media (min-width: 1800px) { .navbar { height: 125px; } }
.navbar__cta.btn { background: var(--c-accent-deep); font-size: var(--t-label); padding: 11px 17px 12px; }
.navbar__cta.btn:hover { background: #fff; color: var(--c-accent-deep); }
.navbar__cta.btn--arrow { --pt: 10px; padding-right: calc(17px + var(--pt)); }
/* Arrow-shaped button: pointed right edge */
.btn--arrow { --pt: 14px; border-radius: var(--btn-radius) 0 0 var(--btn-radius); padding-right: calc(24px + var(--pt));
  clip-path: polygon(0 0, calc(100% - var(--pt)) 0, 100% 50%, calc(100% - var(--pt)) 100%, 0 100%); }
.brand { display: flex; align-items: center; max-width: 123px; }
@media (max-width: 899.98px) { .brand { max-width: 200px; } }
@media (min-width: 1200px) { .brand { max-width: 171px; } }
@media (min-width: 1800px) { .brand { max-width: 223px; } }
.brand img { width: 100%; }
.nav { display: none; height: 100%; }
@media (min-width: 1200px) { .nav { display: block; } }
.nav ul { display: flex; align-items: center; height: 100%; }
.nav a { display: flex; align-items: center; padding: 6px 10px; font-weight: 700; font-size: var(--t-body); line-height: 16px; color: #fff; }
.nav__cta { margin-left: 14px; }
@media (min-width: 1300px) { .nav__cta { margin-left: 24px; } }
.nav__cta a.btn { padding: 11px 17px 12px; padding-right: calc(17px + var(--pt)); color: #fff; }
.nav__cta a.btn:hover { color: var(--c-accent-deep); }
@media (min-width: 1300px) { .nav a { padding: 0 20px; } }
.nav li:first-of-type a { padding-left: 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-accent-soft); }
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; padding: 8px 0; font: inherit; cursor: pointer; }
.nav-toggle__lines { display: grid; gap: 4px; width: 20px; }
.nav-toggle__lines span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.nav.is-open ~ .nav-toggle__lines span, .nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle__lines span { transition: none; } }
@media (min-width: 1200px) { .nav-toggle { display: none; } }
@media (max-width: 1199.98px) {
  .nav.is-open { display: block; position: fixed; inset: 0; background: var(--c-navy); z-index: 10; padding: 140px 20px 40px; }
  .nav.is-open ul { flex-direction: column; height: auto; max-width: 500px; margin: auto; }
  .nav.is-open a { justify-content: center; font-size: var(--t-lead); line-height: 32px; padding: 15px 0; }
  .nav.is-open .nav__cta { margin: 20px 0 0; text-align: center; }
  .nav.is-open .nav__cta a.btn { display: inline-block; font-size: var(--t-small); padding: 16px 24px 17px; padding-right: calc(24px + var(--pt)); }
  .nav-toggle { position: relative; z-index: 11; }
}

/* ---------- Image placeholder (replaced automatically when a real image exists) ---------- */
.ph { position: relative; background: linear-gradient(135deg, #1B2F4A 0%, #0D1928 100%); overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,.035) 18px 19px); }
.ph::after { content: attr(data-label); position: absolute; right: 16px; bottom: 16px; font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.25); padding: .3em .6em; z-index: 1; }
.bg, .bg .ph, .bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.bg { z-index: 0; }

/* ---------- Hero slider (ref .hero_slider_section) ---------- */
.hero { position: relative; background: var(--c-ink-deep); overflow: hidden; }
.hero__viewport { overflow: hidden; }
.hero__track { display: flex; transition: transform 4s ease; will-change: transform; }
.hero__track.is-swiping { transition-duration: .45s; }   /* a swipe moves at once; the automatic rotation still drifts */
.hero__slide { flex: 0 0 100%; position: relative; }
.hero__slide-content { position: relative; padding-top: 160%; overflow: hidden; }
@media (min-width: 650px)  { .hero__slide-content { padding-top: 60%; } }
@media (min-width: 1024px) { .hero__slide-content { padding-top: 41.4%; } }
.hero__overlay { position: absolute; inset: 0; z-index: 3; --mask: var(--c-navy); --tint: .5; --flat: .15; }
.hero__overlay::before { content: ""; position: absolute; inset: 0; background: var(--mask); opacity: var(--tint); mix-blend-mode: multiply; }
.hero__overlay::after  { content: ""; position: absolute; inset: 0; background: var(--mask); opacity: var(--flat); }
.hero__info { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 1400px; padding: 0 20px; text-align: center; z-index: 4; }
.hero__info h1 { color: #fff; margin-bottom: 24px; font-size: var(--t-title); line-height: calc(var(--t-title) * 1.12); }
.hero__info p { color: #fff; font-size: var(--hero-p); line-height: var(--hero-p-lh); }
.hero__info .btn { margin-top: 40px; }
/* On the dark hero bands, buttons highlight to white with navy text — black on black did not read */
.hero__info .btn:not(.btn--light):hover,
.hero--inner .btn:not(.btn--light):hover,
.section--dark .btn:not(.btn--light):hover { background: #fff; color: var(--c-accent); }

.hero__dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 20px; }
@media (min-width: 1250px) { .hero__dots { bottom: 40px; gap: 40px; } }
.hero__dot { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .25); border: 0; padding: 0; cursor: pointer; transition: var(--t); }
.hero__dot.is-active { background: var(--c-accent); }
.hero__dot:focus-visible, .hero__pause:focus-visible { outline-color: #fff; }
/* Pause / play: sits to the left of the dots, so the dots stay centred where they were */
.hero__pause { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 12px; width: 24px; height: 24px; display: grid; place-items: center;
  border: 0; padding: 0; background: none; color: #fff; opacity: .6; cursor: pointer; transition: var(--t); }
@media (min-width: 1250px) { .hero__pause { margin-right: 28px; } }
.hero__pause:hover, .hero__pause:focus-visible { opacity: 1; }
.hero__pause[hidden] { display: none; }
.hero__pause svg { fill: currentColor; }
.hero__play-icon, .hero__pause.is-paused .hero__pause-icon { display: none; }
.hero__pause.is-paused .hero__play-icon { display: block; }

/* ---------- Statement line under the hero ---------- */
.statement { margin: 60px 0 0; }
@media (min-width: 768px)  { .statement { margin-top: 80px; } }
.statement__text { font-family: var(--f-display); font-weight: 700; color: var(--c-navy); text-align: center; max-width: 1150px; margin: 0 auto;
  font-size: var(--h2); line-height: var(--h2-lh); }
@media (max-width: 599.98px) { .statement__text { font-size: var(--t-lead); line-height: 32px; } }

/* Client logo strip — one row on wide screens, wraps below */
/* Below 1100px: flex rows that wrap, so a short last row sits centred */
.clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 0; margin: 50px auto 0; max-width: 1400px; }
.clients li { flex: 0 0 33.333%; }
@media (min-width: 650px)  { .clients li { flex-basis: 25%; } }
/* Seven to a row, but still flex so a short last row sits centred rather than left-aligned */
@media (min-width: 1100px) { .clients { gap: 40px 0; } .clients li { flex-basis: 14.2857%; } }
.clients li { display: flex; align-items: center; justify-content: center; }
.clients li img { transform: scale(var(--logo-scale, 1)); transform-origin: center; }
.clients img { height: 21px; width: auto; max-width: 84px; object-fit: contain; }
.clients__wide img { max-width: 140px; }

/* On a phone: an even three-column grid, every logo scaled to fit its cell */
@media (max-width: 649.98px) {
  .clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 10px; margin-top: 56px; }
  .clients li { flex: none; }
  .clients li img,
  .clients img,
  .clients__wide img,
  .clients__tall img { height: auto; max-height: 26px; max-width: 100%; width: auto; transform: none; }
  .clients__tall img { max-height: 40px; }
  /* a few marks need trimming or lifting so the grid reads evenly */
  .clients img[src*="CLS-navy"], .clients img[src*="GLMX-navy"] { max-width: 56px; }
  .clients img[src*="Euroclear-navy"], .clients img[src*="MBC-navy"], .clients img[src*="Mitsui-navy"] { max-height: 52px; }
  /* a last row of one or two sits centred rather than pinned to the left */
  .statement .clients li:last-child:nth-child(3n + 1) { transform: translateX(100%); }
  .statement .clients li:nth-last-child(2):nth-child(3n + 1),
  .statement .clients li:nth-last-child(2):nth-child(3n + 1) + li { transform: translateX(50%); }
}

.clients__tall img { height: 44px; }
@media (min-width: 1600px) { .clients img { height: 25px; max-width: 105px; } .clients__wide img { max-width: 168px; } .clients__tall img { height: 52px; } }
@media (min-width: 1800px) { .clients img { height: 29px; max-width: 120px; } .clients__wide img { max-width: 196px; } .clients__tall img { height: 60px; } }

/* ---------- "We are" grid (ref .grid_section): 2 per row, alternating 59.5 / 40.5 ---------- */
.grid-section { max-width: 1990px; padding: 0 17.5px; margin: 40px auto 14px; }   /* bottom gap = tile gutter */
@media (min-width: 768px) { .grid-section { margin-top: 60px; } }
@media (min-width: 1800px) { .grid-section { margin-bottom: 17.5px; } }
.feedback { padding-top: 60px; padding-bottom: 60px; }
@media (min-width: 768px) { .feedback { padding-top: 80px; padding-bottom: 90px; } }
.grid-section .section__intro .lead { max-width: 704px; }
.grid-cards { display: flex; flex-wrap: wrap; }
.gcard { padding: 14px; width: 100%; display: block; }
@media (min-width: 1100px) {
  .gcard:nth-child(4n+1), .gcard:nth-child(4n+4) { width: 53%; }
  .gcard:nth-child(4n+2), .gcard:nth-child(4n+3) { width: 47%; }
}
@media (min-width: 1800px) {
  .gcard { padding: 17.5px; }
  .gcard:nth-child(4n+1), .gcard:nth-child(4n+4) { width: 56%; }
  .gcard:nth-child(4n+2), .gcard:nth-child(4n+3) { width: 44%; }
}
.gcard__content { position: relative; min-height: 310px; height: 100%; display: flex; align-items: flex-end; background: var(--c-navy-deep); overflow: hidden; }
.gcard .bg { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); transform: scale(1.001); }
.gcard:hover .bg { transform: scale(1.06); }
@media (min-width: 1800px) { .gcard__content { min-height: 400px; } }
.gcard__overlay { position: absolute; inset: 0; z-index: 1; --mask: var(--c-navy); --tint: .5; --flat: .15; }
.gcard__overlay::before { content: ""; position: absolute; inset: 0; background: var(--mask); opacity: var(--tint); mix-blend-mode: multiply; }
.gcard__overlay::after  { content: ""; position: absolute; inset: 0; background: var(--mask); opacity: var(--flat); transition: opacity .8s ease; }
.gcard:hover .gcard__overlay::after { opacity: calc(var(--flat) * .35); }
/* Experiment: dark red mask on one tile — tint = colour wash, flat = how much photo is hidden */
.gcard--red .gcard__overlay { --mask: #4A020B; --tint: 0; --flat: .35; }
.gcard--flat30 .gcard__overlay { --flat: .3; }
.gcard__info { position: relative; z-index: 2; width: 100%; padding: 20px; }
@media (min-width: 1250px) { .gcard__info { padding: 30px 40px; } }
@media (min-width: 1800px) { .gcard__info { padding: 50px 60px; } }
.gcard__info h3 { color: #fff; margin-bottom: 16px; }
.gcard__info p { color: #fff; max-width: 440px; }
.gcard__info .btn { margin-top: 40px; }

/* ---------- "What we do" cards (ref .template_part_cards): portrait, lift on hover ---------- */
.cards { margin-top: 40px; display: flex; justify-content: center; flex-wrap: wrap; }
@media (min-width: 650px)  { .cards { width: calc(100% + 30px); margin-left: -15px; } }
@media (min-width: 1800px) { .cards { width: calc(100% + 44px); margin-left: -22px; } }
.card { width: 100%; margin-bottom: 20px; display: block; transition: var(--t); }
.card:last-of-type { margin-bottom: 0; }
@media (min-width: 650px)  { .card { margin-bottom: 0; padding: 15px; width: 50%; } }
@media (min-width: 1024px) { .card { width: 33.333%; } }
@media (min-width: 1800px) { .card { padding: 22px; } }
.card:hover { transform: translate(-10px, -10px); }
.card:hover h3 { text-decoration: underline; }
.card__content { position: relative; padding-top: 123.4%; background: var(--c-navy); overflow: hidden; }
.card__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16,24,32,0) 40%, rgba(16,24,32,.85) 100%); }
.card__info { position: absolute; bottom: 0; left: 0; width: 100%; text-align: center; padding: 30px 20px; z-index: 2; }
@media (min-width: 1800px) { .card__info { padding: 44px 40px; } }
.card__info h3 { color: #fff; margin-bottom: 16px; transition: var(--t); }
.card__info p { color: #fff; opacity: .8; max-width: 316px; margin-inline: auto; }
.section__intro--narrow .lead { max-width: 554px; }

/* ---------- CTA (ref .cta_section): full-width image, panel + square image overlapping ---------- */
.cta { margin: var(--section) auto; }
.cta__image { position: relative; padding-top: 100%; z-index: 1; }
@media (min-width: 650px) { .cta__image { padding-top: 60%; } }
@media (min-width: 860px) { .cta__image { padding-top: 40.8%; } }
.cta__panel { display: flex; flex-wrap: wrap; margin-top: -16%; position: relative; z-index: 2; }
.cta__left, .cta__right { width: 100%; }
@media (min-width: 860px) { .cta__left, .cta__right { width: 50%; } }
.cta__left { display: flex; align-items: center; padding: 30px 15px; background: var(--c-paper-2); order: 1; }
@media (min-width: 768px) { .cta__left { padding: 80px 40px; } }
@media (min-width: 860px) { .cta__left { order: 0; padding: 80px; } }
.cta__text { max-width: 500px; margin: auto; }
.cta__text h2 { margin-bottom: 24px; }
.cta__text .btn { margin-top: 40px; }
@media (min-width: 1800px) { .cta__text .btn { margin-top: 56px; } }
.cta__right { align-self: center; }
.cta__square { position: relative; padding-top: 100%; }

/* ---------- News / commentary slider (ref .cards_slider_section) ---------- */
.news.section { margin-top: 60px; margin-bottom: 60px; }
@media (min-width: 768px) { .news.section { margin-top: 80px; margin-bottom: 80px; } }
.news h2 { text-align: center; margin-bottom: 50px; }
@media (min-width: 1800px) { .news h2 { margin-bottom: 60px; } }
.slider { position: relative; }
.slider__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 750px)  { .slider__track > * { flex-basis: calc((100% - 10px) / 2); } }
@media (min-width: 1024px) { .slider__track { gap: 15px; } .slider__track > * { flex-basis: calc((100% - 30px) / 3); } }
@media (min-width: 1200px) { .slider__track { gap: 30px; } .slider__track > * { flex-basis: calc((100% - 60px) / 3); } }
.news__card { padding: 34px; background: var(--c-navy); border-top: 3px solid var(--c-accent); display: flex; flex-direction: column; min-height: 100%; transition: var(--t); }
.news__card:hover { background: var(--c-navy-deep); box-shadow: 0 12px 32px rgba(19,36,58,.25); transform: translateY(-4px); }
@media (min-width: 1800px) { .news__card { padding: 44px; } }
.news__card h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lead); line-height: 30px; color: #fff; margin-bottom: 16px; }
@media (min-width: 1800px) { .news__card h3 { font-size: var(--t-lead); line-height: 34px; } }
.news__card p { font-size: var(--p-r); line-height: var(--p-r-lh); margin-bottom: 30px; color: var(--c-on-dark-soft); }
.news__link { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--c-rule-dark); font-size: var(--t-small); line-height: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.news__link { gap: 12px; }
.news__author { position: relative; width: 40px; height: 40px; flex: 0 0 40px; }
.news__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.news__li { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 2px var(--c-navy); }
.news__link::after { content: "\2192"; transition: transform .35s ease; }
.news__card:hover .news__link { color: var(--c-accent-soft); }
.news__card:hover .news__link::after { transform: translateX(4px); }
.slider__controls { display: flex; flex-wrap: wrap; align-items: center; margin-top: 65px; }
@media (min-width: 768px) { .slider__controls { flex-wrap: nowrap; } }
.slider__progress { width: 100%; height: 2px; background: rgba(10,22,55,.15); position: relative; overflow: hidden; }
@media (min-width: 768px) { .slider__progress { margin-right: 50px; } }
.slider__bar { position: absolute; inset: 0; background: var(--c-accent); transform-origin: left; transform: scaleX(.33); transition: transform .3s ease; }
.slider__buttons { display: flex; justify-content: center; width: 100%; margin-top: 24px; gap: 20px; }
@media (min-width: 768px) { .slider__buttons { width: auto; margin-top: 0; } }

/* ---------- Testimonials (ref .quotes_section on navy) ---------- */
.quotes { display: grid; gap: 40px; }
@media (min-width: 52em) { .quotes { grid-template-columns: 1fr 1fr; gap: 48px 56px; } }
.quote { margin: 0; text-align: center; position: relative; padding: 22px 20px 20px;
  border-radius: 10px; transition: background .35s ease, opacity .35s ease, transform .35s ease; }

/* Hovering one quote brings it forward; the others stand back but stay legible */
@media (hover: hover) {
  .quotes:has(.quote:hover) .quote { opacity: .42; }
  .quotes:has(.quote:hover) .quote:hover { opacity: 1; background: rgba(255, 255, 255, .06); transform: translateY(-4px); }
  .quotes .quote:hover figcaption { color: #fff; }
  .quotes .quote:hover::before { opacity: .9; transform: none; }
}
.quote::before { content: "\201C"; position: absolute; top: -6px; left: 10px; font-family: var(--f-display); font-weight: 900;
  font-size: 64px; line-height: 1; color: var(--c-accent-soft); opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.quote p { font-weight: 400; letter-spacing: .02em; font-size: var(--t-lead); line-height: 30px; color: #fff; margin-bottom: 24px; }
@media (min-width: 1280px) { .quote p { font-size: var(--t-lead); line-height: 36px; } }
.quote figcaption { font-size: var(--t-small); line-height: 13px; text-transform: uppercase; color: var(--c-accent); transition: color .35s ease; }
.quote figcaption strong { display: block; text-transform: none; font-weight: 700; font-size: var(--t-body); line-height: 24px; margin-bottom: 10px; }
@media (min-width: 1280px) { .quote figcaption strong { font-size: var(--t-lead); line-height: 30px; } }

/* ---------- Inner-page components (unchanged structure, new tokens) ---------- */
.hero--inner { background: var(--c-navy); color: #fff; position: relative; overflow: hidden; }
.hero--inner { --band: 200px; --band-extra: 44px; }
.hero--inner .wrap { display: grid; align-content: center; min-height: var(--band); padding-block: 28px; position: relative; z-index: 2; }
.hero--inner:has(.lead) .wrap { min-height: calc(var(--band) + var(--band-extra)); }   /* room for the second line */
@media (max-width: 859.98px) { .hero--inner { --band: 150px; --band-extra: 36px; } }
.hero--inner h1 { color: #fff; margin-bottom: 16px; }
.hero--inner h1:last-child { margin-bottom: 0; }   /* title-only band stays evenly padded */
.hero--centred .wrap { text-align: center; }
.hero--inner .lead { color: var(--c-on-dark-soft); max-width: 76ch; }
.hero--centred .lead { margin-inline: auto; }
.hero--inner .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; z-index: 0; }
/* Veiled: photo only just visible under the navy, matching .page-hero--veiled (Confidential appointments). Raise/lower opacity to show more/less */
.hero--inner.hero--veiled .hero__img { opacity: .08; }
.hero__context { font-weight: 700; font-size: var(--t-body); line-height: 26px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ledger { columns: 1; column-gap: 32px; }
@media (min-width: 40em) { .ledger { columns: 2; } }
@media (min-width: 64em) { .ledger--3 { columns: 3; } }
.ledger li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--c-rule); }
.ledger li span { display: block; color: var(--c-ink-soft); font-size: var(--t-small); }
.services { display: grid; gap: 48px; }
@media (min-width: 52em) { .services { grid-template-columns: 1fr 1fr; } }
.service { border-top: 2px solid var(--c-accent); padding-top: 24px; }
.service h3 { margin-bottom: 8px; }
.service__sub { margin-bottom: 16px; }
.service a { text-decoration: underline; }
.pubs li { padding: 24px 0; border-top: 1px solid var(--c-rule); display: grid; gap: 8px; }
@media (min-width: 52em) { .pubs li { grid-template-columns: 8rem 1fr; gap: 32px; align-items: baseline; } }
.pubs__source { color: var(--c-ink-soft); font-size: var(--t-small); }
.pubs h3 { font-size: var(--t-lead); line-height: 30px; margin-bottom: 8px; }
.pubs h3 a:hover { color: var(--c-accent); }
.process { counter-reset: step; }
.process li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--c-rule); }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-display); font-size: var(--t-sub); color: var(--c-accent); line-height: 1; }
.process h3 { font-size: var(--t-lead); line-height: 30px; margin-bottom: 8px; }
.portrait { display: grid; gap: 32px; align-items: start; }
@media (min-width: 52em) { .portrait { grid-template-columns: 18rem 1fr; gap: 72px; } }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--c-paper-2); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 52em) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--c-rule); }
.form { display: grid; gap: 18px; max-width: 360px; }
.field label { display: block; font-size: var(--t-body); line-height: 24px; margin-bottom: 8px; color: var(--c-ink); }
.field input, .field textarea { width: 100%; font: inherit; height: 50px; padding: 0 24px; border: 1px solid #D0D3D4; border-radius: 25px; background: #fff; color: var(--c-ink); }
.field textarea { height: 124px; padding: 24px; border-radius: 25px; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--c-accent); outline: none; }
.form__consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-small); color: var(--c-ink-soft); }
.form__consent input { margin-top: .3em; }
.form__note { font-size: var(--t-small); color: var(--c-ink-soft); }
.invite h2 { max-width: 20ch; }

/* ---------- Footer (ref .site_footer) ---------- */
.site-footer { background: var(--c-navy); padding: 36px 0 28px; margin-top: auto; }
/* Red rule above the footer when the page ends on a dark section (e.g. Evaluation), so page and footer don't run together */
main:has(> :last-child:is(.ingredients, .section--dark)) + .site-footer { border-top: 2px solid var(--c-accent); }
@media (min-width: 768px) { .site-footer { padding: 64px 0 40px; } }
.site-footer .wrap { display: grid; gap: 40px; padding-inline: 20px; }
@media (min-width: 768px)  { .site-footer .wrap { padding-inline: 38px; } }
@media (min-width: 1100px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; gap: 60px; } }
.site-footer .brand { max-width: 200px; margin-bottom: 20px; }
.site-footer p { color: var(--c-on-dark-soft); font-size: var(--t-small); line-height: 22px; max-width: 40ch; }
.site-footer h4 { font-family: var(--f-body); font-weight: 700; font-size: var(--t-body); line-height: 24px; color: #fff; margin-bottom: 14px; }
@media (min-width: 1100px) { .site-footer .wrap > div:not(:first-child) { padding-top: 6px; } }
.site-footer li { margin-bottom: 12px; }
.site-footer li a { font-weight: 700; font-size: var(--t-small); line-height: 22px; color: #fff; opacity: .64; }
.site-footer li a:hover { opacity: 1; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 0; font-size: var(--t-small); line-height: 21px; color: #fff; opacity: .64; }
@media (max-width: 1099.98px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer__legal { order: 9; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--c-rule-dark); width: 100%; }
  .site-footer .wrap > div:first-child { display: contents; }        /* lets the legal line drop to the end */
  .site-footer .brand { order: 0; }
}
.site-footer__legal > * { padding: 0 10px; border-right: 1px solid #fff; }
.site-footer__legal > :first-child { padding-left: 0; }
.site-footer__legal > :last-child { padding-right: 0; border-right: 0; }

/* ============================================================
   INNER PAGES — hero band, story rows, timeline, MD, CTA band
   ============================================================ */
.page-hero { position: relative; background: var(--c-ink-deep); color: #fff; overflow: hidden; min-height: 160px; display: grid; place-items: center; text-align: center; }
@media (min-width: 1024px) { .page-hero { min-height: 210px; } }
.page-hero__overlay { position: absolute; inset: 0; z-index: 1; --tint: .5; --flat: .15; }
.page-hero__overlay::before { content: ""; position: absolute; inset: 0; background: var(--c-navy); opacity: var(--tint); mix-blend-mode: multiply; }
.page-hero__overlay::after  { content: ""; position: absolute; inset: 0; background: var(--c-navy); opacity: var(--flat); }
/* Veiled: photo only just visible under the navy (Evaluation). Raise/lower --flat to show less/more of the photo */
.page-hero--veiled .page-hero__overlay { --flat: .75; }
/* Favour the lower half of the photo: 0% = top edge, 50% = centre, 100% = bottom edge (Evaluation) */
.page-hero--low .bg img { object-position: 50% 75%; }
/* Zoom out: on wider screens the photo spans 85% of the band (so more of it shows) and its sides fade into the navy.
   Lower the width to zoom out further; keep left at half of what's left over (e.g. 80% wide -> left 10%) */
@media (min-width: 600px) {
  .page-hero--zoom-out .bg img { left: 7.5%; width: 85%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
}
.page-hero__info { position: relative; z-index: 2; padding: 32px 20px; max-width: 900px; }
.page-hero__info h1 { color: #fff; margin-bottom: 8px; }
.page-hero__info p { color: #fff; font-size: var(--p-xl); line-height: var(--p-xl-lh); font-weight: 400; }

.story { margin-block: 80px; }
@media (min-width: 768px) { .story { margin-block: 110px; } }
.story__row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .story__row { grid-template-columns: 1fr 2fr; gap: 60px; } .story__row--flip { grid-template-columns: 2fr 1fr; } .story__row--flip .story__media { order: 2; } }
@media (min-width: 1280px) { .story__row { gap: 100px; } }
.story__media { max-width: 460px; width: 100%; }
.story__row--flip .story__media { margin-left: auto; }
.story__media { position: relative; padding-top: 75%; overflow: hidden; background: var(--c-navy); }
.story__media .bg { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.story__media:hover .bg { transform: scale(1.04); }
.story__mask { position: absolute; inset: 0; z-index: 1; background: var(--c-navy); opacity: .12; }
.story__text h2 { margin: 6px 0 20px; }
.story__text p { margin-bottom: 16px; }
.story__text .step__label { margin-bottom: 0; }

/* History: timeline down the left, story down the right */
.history { margin-block: 60px; }
@media (min-width: 768px) { .history { margin-block: 80px; } }
.history__grid { display: grid; gap: 60px; }
@media (min-width: 960px) { .history__grid { grid-template-columns: 340px 1fr; gap: 80px; align-items: start; } }
@media (min-width: 1280px) { .history__grid { grid-template-columns: 380px 1fr; gap: 120px; } }
.history__heading { font-size: var(--t-lead); line-height: 28px; margin-bottom: 8px; }
.timeline { position: relative; margin: 0; padding: 8px 0 8px 32px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--c-rule); }
.timeline__node { position: relative; padding-bottom: 22px; }
.timeline__node:last-child { padding-bottom: 0; }
.timeline__node::before { content: ""; position: absolute; left: -32px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-accent-deep); box-shadow: 0 0 0 4px #fff; }
.timeline__card { background: #fff; border: 1px solid var(--c-rule); border-radius: 8px; padding: 14px 18px; }
.timeline__year { display: block; font-weight: 700; font-size: var(--t-small); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); margin-bottom: 4px; }
.timeline__card ul { list-style: none; margin: 0; padding: 0; }
.timeline__card li { font-size: var(--t-small); line-height: 21px; color: var(--c-ink); padding: 3px 0 3px 24px; position: relative; }
.timeline__card li:not(.has-icon)::before { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent-deep); }
.timeline__card li + li { border-top: 1px solid var(--c-rule); }
.timeline__card li.has-icon { display: flex; gap: 8px; align-items: flex-start; padding-left: 0; }
.tl-icon { width: 16px; height: 18px; flex: 0 0 16px; margin-top: 2px; color: var(--c-accent-deep); }
.story__block + .story__block { margin-top: 56px; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 0 0 32px; padding: 0 0 28px; border-bottom: 1px solid var(--c-rule); }
.stats li { font-size: var(--t-small); line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-soft); }
.stats strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--t-title); line-height: 1; color: var(--c-accent-deep); margin-bottom: 6px; letter-spacing: 0; }
@media (min-width: 1280px) { .stats strong { font-size: var(--t-title); } }
.stats strong span { font-size: .6em; vertical-align: top; }
.story__block--panel { background: var(--c-band); padding: 32px; border-radius: 8px; }
.rule-red { border: 0; height: 2px; background: var(--c-accent-deep); width: 72px; margin: 36px auto; }
.rule-red + .story__block { margin-top: 0; }
.quotes-inline { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 8px; margin: 32px auto; max-width: 640px; }
.quotes-inline::before { content: "\201C"; flex: 0 0 auto; font-family: var(--f-display); font-weight: 900; font-size: 88px; line-height: .6; height: 52px; color: var(--c-accent-deep); opacity: .9; }
.quotes-inline .quotebox { flex: 1; align-items: center; }
.quotes-inline .quotebox__item { align-self: center; }
.quotes-inline .quotebox { text-align: left; }
.quotes-inline .quotebox blockquote::before, .quotes-inline .quotebox blockquote::after { content: none; }
.quotes-inline .quotebox blockquote { color: var(--c-navy); font-style: italic; }
.quotes-inline .quotebox figcaption { color: var(--c-accent-deep); }
.quotes-inline + .story__block { margin-top: 0; }
.quotes-inline .quotebox { min-height: 90px; }
.quotes-inline .quotebox blockquote { font-size: var(--t-body); line-height: 27px; }
@media (min-width: 1280px) { .quotes-inline .quotebox blockquote { font-size: var(--t-lead); line-height: 30px; } }
@media (min-width: 1280px) { .story__block--panel { padding: 40px; } }
.story__block--panel p:last-child { margin-bottom: 0; }
.story__block--navy { background: var(--c-navy); }
.story__block--navy h2, .story__block--navy p { color: #fff; }
.md-inline { display: grid; gap: 24px; align-items: start; }
#managing-director { scroll-margin-top: 120px; }   /* clears the sticky header, with a little air above */
@media (min-width: 1200px) { #managing-director { scroll-margin-top: 210px; } }
@media (min-width: 640px) { .md-inline { grid-template-columns: 220px 1fr; gap: 36px; } }
.md-inline__photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--c-navy); border-radius: 8px; }
.md-inline h2 { margin: 4px 0 14px; }
.md-inline .step__label { margin-bottom: 0; }
.md-inline__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.md-inline__actions .btn--navy { background: var(--c-navy); }   /* sits next to the red one, so it needs to differ */
.md-inline__actions .btn--navy:hover { background: var(--c-navy-deep); color: #fff; }
.li-link { display: inline-flex; }
.li-link img { width: 32px; height: 32px; border-radius: 5px; transition: var(--t); }
.li-link:hover img { transform: translateY(-2px); }
.ffk-link { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: var(--t-small); font-weight: 700; color: var(--c-navy); border: 1px solid #D0D3D4; border-radius: var(--btn-radius); background: #fff; transition: var(--t); }
.ffk-link:hover { border-color: var(--c-navy); transform: translateY(-2px); }
.ffk-link img { height: 24px; width: auto; }

.story__block .story__media { margin-bottom: 28px; }
.story__media--float { float: right; width: 42%; max-width: 300px; margin: 8px 0 16px 28px; padding-top: 0; aspect-ratio: 1 / 1; }
.story__block::after { content: ""; display: table; clear: both; }
@media (max-width: 559px) { .story__media--float { float: none; width: 100%; max-width: none; margin: 0 0 20px; } }
.story__block h2 { margin-bottom: 20px; }
.story__block p { margin-bottom: 16px; }

/* Managing Director */
.md { padding-block: 80px; }
@media (min-width: 768px) { .md { padding-block: 110px; } }
.md__row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .md__row { grid-template-columns: 340px 1fr; gap: 60px; } }
@media (min-width: 1280px) { .md__row { grid-template-columns: 400px 1fr; gap: 100px; } }
.md__photo { position: relative; padding-top: 120%; overflow: hidden; background: var(--c-navy); }
.md__text h2 { margin: 6px 0 20px; }
.md__text p { margin-bottom: 20px; }
.md__text .step__label { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; padding-block: 80px; }
@media (min-width: 768px) { .cta-band { padding-block: 100px; } }
.cta-band h2 { max-width: 20ch; margin: 0 auto 16px; }
.cta-band p { max-width: 50ch; margin: 0 auto 32px; color: var(--c-on-dark-soft); }

/* ---------- Rotating quote band ---------- */
.quotes-band { padding-block: 70px; }
@media (min-width: 768px) { .quotes-band { padding-block: 100px; } }
.quotebox { position: relative; display: grid; min-height: 160px; text-align: center; max-width: 900px; margin: 0 auto; }
.quotebox__item { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.quotebox__item.is-active { opacity: 1; }
.quotebox blockquote { margin: 0 0 20px; font-family: var(--f-display); font-weight: 400; font-size: var(--t-lead); line-height: 34px; color: #fff; letter-spacing: .01em; }
@media (min-width: 1280px) { .quotebox blockquote { font-size: var(--t-sub); line-height: 42px; } }
.quotebox blockquote::before { content: "\201C"; } .quotebox blockquote::after { content: "\201D"; }
.quotebox figcaption { font-size: var(--t-small); line-height: 18px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-soft); }
/* One dot per quote, moving along as they change */
.quotebox__dots { grid-area: 2 / 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.quotebox__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 7px; cursor: pointer; background: rgba(255, 255, 255, .3); transition: background .5s ease; }
.quotebox__dot.is-active { background: var(--c-accent); }
.quotebox__dot:hover { background: rgba(255, 255, 255, .6); }
.quotebox__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.quotes-inline .quotebox__dot { background: rgba(10, 22, 55, .2); }
.quotes-inline .quotebox__dot.is-active { background: var(--c-accent); }
.quotes-inline .quotebox__dot:hover { background: rgba(10, 22, 55, .45); }
.quotes-inline .quotebox__dot:focus-visible { outline-color: var(--c-accent); }
.cta-band--light { background: var(--c-paper); }
.cta-band--light h2 { color: var(--c-navy); }
.cta-band--light p { color: var(--c-ink-soft); }


/* ---------- Ingredients (Evaluation page): large grey panels staggered down the page ---------- */
/* White above, navy below, joined by a shallow diagonal that runs on into the footer */
.ingredients { position: relative; margin: 0; padding: 60px 0 60px; isolation: isolate; background: var(--c-band); }
@media (min-width: 768px) { .ingredients { padding: 80px 0 90px; } }
.ingredients::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(174deg, transparent 0 46%, var(--c-navy) calc(46% + 1px) 100%); }
@media (max-width: 859.98px) { .ingredients::before { background: linear-gradient(180deg, transparent 0 var(--split, 48%), var(--c-navy) calc(var(--split, 48%) + 1px) 100%); } }
/* Photo behind the light half of the section, nearly all veiled out */
.ingredients__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ingredients__bg .bg, .ingredients__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ingredients__bg::after { content: ""; position: absolute; inset: 0; background: var(--c-band); opacity: .9; }
.ingredients__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.ingredient { position: relative; background: var(--c-panel); border: 1px solid #C9CED6; border-radius: 0; padding: 36px 32px 32px; box-shadow: 0 18px 50px rgba(13,25,40,.10); }
@media (min-width: 860px) {
  .ingredients__list { gap: 0; }
  .ingredient { width: 56%; padding: 44px 40px 40px; }
  .ingredient + .ingredient { margin-top: -14px; }          /* just a corner of overlap */
  .ingredient:nth-child(even) { margin-left: auto; }
  .ingredient:nth-child(odd) { margin-right: auto; }
}
@media (min-width: 1280px) { .ingredient { width: 54%; padding: 52px 48px 48px; } }
.ingredient__num { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: var(--t-body); letter-spacing: .12em; color: #fff; background: var(--c-accent-deep); border-radius: 6px; padding: 6px 10px; margin-bottom: 18px; }
.ingredient h2 { margin-bottom: 16px; }
.ingredient { overflow: hidden; }
.ingredient__title { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--t-lead); line-height: 26px; letter-spacing: .02em; color: #fff; background: var(--c-accent-deep); border-radius: 0;
  padding: 16px 32px; margin: -37px -33px 28px; }
@media (min-width: 860px)  { .ingredient__title { margin: -45px -41px 28px; padding: 18px 40px; } }
@media (min-width: 1280px) { .ingredient__title { font-size: var(--t-lead); line-height: 30px; margin: -53px -49px 32px; padding: 20px 48px; } }
.ingredient p { margin-bottom: 14px; }
.ingredient p:last-child { margin-bottom: 0; }
/* Aside beside an ingredient panel (desktop: sits in the empty half) */
.ingredient__aside { margin: 0 0 24px; }
@media (min-width: 860px) {
  .ingredient--with-aside { overflow: visible; }
  .ingredient--with-aside .ingredient__aside { position: absolute; left: calc(100% + 40px); top: 50%; transform: translateY(-50%); width: calc(100% * 44 / 56 - 40px); margin: 0; }
}
.awards-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: center; justify-items: center; }
.awards-grid img { max-width: 100%; height: auto; width: auto; }
/* Aside on the LEFT of a right-hand panel */
@media (min-width: 860px) {
  .ingredient--aside-left .ingredient__aside { left: auto; right: calc(100% + 40px); top: calc(50% - 40px); }
}
/* Meet our MD (Evaluation, last panel): bottom level with the panel's bottom edge, left edge in line with the left-hand panels.
   Offsets are from the panel's padding box, hence the 1px border corrections. */
@media (min-width: 860px) {
  .ingredient--aside-left .ingredient__aside.meet-md { top: auto; bottom: -1px; transform: none; right: auto; left: calc((100% + 2px) * -44 / 56 - 1px); }
}
@media (min-width: 1280px) {
  .ingredient--aside-left .ingredient__aside.meet-md { left: calc((100% + 2px) * -46 / 54 - 1px); }
}
/* Mock assessment screen with typewriter question */
.assess { padding: 0; font-family: var(--f-body); }
.assess__bar { display: flex; align-items: center; gap: 8px; padding: 0 0 18px; }
.assess__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent-deep); opacity: .25; transition: opacity .4s ease; }
.assess__bar span.is-on { opacity: 1; }
.assess__bar em { margin-left: 10px; font-style: normal; font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-on-dark-soft); }
.assess__label { margin: 20px 24px 8px; font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); }
.assess__q { margin: 0; min-height: 54px; font-size: var(--t-body); line-height: 27px; font-weight: 700; color: var(--c-navy); }
@media (min-width: 1280px) { .assess__q { font-size: var(--t-lead); line-height: 30px; min-height: 60px; } }
.assess__q::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--c-accent-deep); margin-left: 3px; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.assess__opts { list-style: none; margin: 0 24px; padding: 0; display: grid; gap: 8px; }
.assess__opts li { height: 34px; border: 1px solid #D0D3D4; border-radius: 6px; background: var(--c-band); }
/* Award showcase: one award at a time, slow gentle crossfade */
/* ---------- Awards: a row of badges, the one in focus enlarged, its citation beneath ---------- */
.awardshow { --aw-small: 42px; --aw-large: 86px; }
@media (min-width: 1280px) { .awardshow { --aw-small: 46px; --aw-large: 96px; } }
.awardshow__strip { list-style: none; margin: 0 0 26px; padding: 0; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; min-height: var(--aw-large); }
.awardshow__badge { display: flex; align-items: flex-end; justify-content: center; }
.awardshow__badge img { width: auto; height: var(--aw-small); max-width: 100%; object-fit: contain; opacity: .7;
  transition: height .8s cubic-bezier(.4, 0, .2, 1), opacity .8s ease; }
.awardshow__badge.is-active img { height: var(--aw-large); opacity: 1; }

.awardshow__captions { position: relative; min-height: 190px; }
@media (min-width: 1280px) { .awardshow__captions { min-height: 196px; } }
/* the citation clears away first, then the next one arrives */
.awardshow__caption { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .34s ease, transform .34s ease; }
.awardshow__caption.is-active { opacity: 1; transform: none;
  transition: opacity .48s ease .36s, transform .48s cubic-bezier(.4, 0, .2, 1) .36s; }
.awardshow__year { display: block; font-size: var(--t-small); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-deep); margin-bottom: 4px; }
.awardshow__caption h3 { font-size: var(--t-body); line-height: 24px; margin-bottom: 10px; }
.awardshow__caption p { margin: 0; font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: var(--t-lead); line-height: 27px; color: var(--c-accent-deep); }
@media (min-width: 1280px) { .awardshow__caption h3 { font-size: var(--t-lead); line-height: 26px; } .awardshow__caption p { font-size: var(--t-lead); line-height: 29px; } }
.awardshow__caption p::before { content: "\201C"; } .awardshow__caption p::after { content: "\201D"; }
/* Record button beside "Meet your shortlist" (sits on the navy half) */
.recbtn { position: relative; display: flex; align-items: center; gap: 24px; color: #fff; }
/* Film strip: each frame carries its own sprocket holes so the strip can curl in 3D.
   The live frame is flat and bright; the others tilt away and fade, as if the reel is curling round. */
.filmstrip { --g: rgba(255,255,255,.45); margin-left: auto; flex: 0 0 220px; width: 220px; }
.filmstrip__frame { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px; aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,.35); border-radius: 2px; overflow: visible;
  transform-style: preserve-3d; transition: none; }
.filmstrip__frame::before, .filmstrip__frame::after { content: ""; position: absolute; top: -5px; bottom: -5px; width: 8px;
  background: repeating-linear-gradient(180deg, var(--g) 0 12px, transparent 12px 22px); background-position: 0 4px; }
.filmstrip__frame::before { left: -14px; } .filmstrip__frame::after { right: -14px; }
.filmstrip__frame span { position: relative; overflow: hidden; }
.filmstrip__frame span + span { border-left: 1px solid rgba(255,255,255,.35); }
.filmstrip__frame img { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); height: 92%; width: auto; opacity: .45; }
.filmstrip__frame img.flip { transform: translateX(-50%) scaleX(-1); }
.filmstrip__frame--live { border: 2px solid var(--c-accent); }
@media (max-width: 859.98px) { .filmstrip { display: none; } }
.recbtn__ring { position: relative; width: 78px; height: 78px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); display: grid; place-items: center; flex: 0 0 78px; }
.recbtn__ring::before { content: ""; width: 50px; height: 50px; border-radius: 50%; background: var(--c-accent); animation: rec-pulse 2.6s ease-in-out infinite; }
.recbtn__ring::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--c-accent); opacity: 0; animation: rec-ripple 2.6s ease-out infinite; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes rec-ripple { 0% { transform: scale(.8); opacity: .55; } 100% { transform: scale(1.25); opacity: 0; } }
.recbtn__label { margin: 0 0 6px; font-size: var(--t-small); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--c-accent-soft); }
.recbtn__title { margin: 0 0 4px; font-size: var(--t-lead); line-height: 28px; font-weight: 700; color: #fff; }
@media (min-width: 1280px) { .recbtn__title { font-size: var(--t-lead); line-height: 32px; } }
.recbtn__time { font-size: var(--t-body); color: var(--c-on-dark-soft); font-variant-numeric: tabular-nums; }
/* A4 page around the interview frame: grey border, red play button, text lines beneath */
.cvpage { position: relative; margin-left: auto; flex: 0 0 210px; width: 210px; aspect-ratio: 210 / 297; padding: 54px 18px 22px; border: 1px solid rgba(255,255,255,.45); border-radius: 2px; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; }
.cvpage__mark { position: absolute; left: 14px; top: 14px; width: 26px; height: auto; }
.cvpage__lines + .cvpage__lines { margin-top: 6px; }
.cvpage__name { display: grid; gap: 7px; justify-items: center; margin-bottom: 2px; }
.cvpage__name span { display: block; height: 7px; border-radius: 3px; background: rgba(255,255,255,.55); width: 58%; }
.cvpage__name span + span { height: 5px; width: 40%; background: rgba(255,255,255,.35); }
.cvpage .filmstrip__frame { margin: 0; }
.cvpage .filmstrip__frame::before, .cvpage .filmstrip__frame::after { display: none; }
.cvpage__play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; border-radius: 50%; background: var(--c-accent); transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cvpage__play::after { content: ""; position: absolute; left: 56%; top: 50%; transform: translate(-50%, -50%); border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cvpage__lines { display: grid; gap: 8px; }
.cvpage__lines span { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
/* "Meet our MD" note beside the guarantee panel (on the navy) */
.meet-md { color: #fff; max-width: 380px; }
.meet-md__label { margin: 0 0 10px; font-size: var(--t-small); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--c-accent-soft); }
.meet-md__text { margin: 0 0 24px; font-size: var(--t-lead); line-height: 30px; color: #fff; }
@media (min-width: 1280px) { .meet-md__text { font-size: var(--t-lead); line-height: 32px; } }
.meet-md__btn.btn { font-size: var(--t-small); padding: 15px 24px 16px; padding-right: calc(24px + var(--pt)); --pt: 14px; }
@media (max-width: 859.98px) { .meet-md { margin-bottom: 24px; } }


/* ---------- Confidential appointments page: editorial layout ---------- */
/* Intro: photo bleeding off the left edge, text set on white */
.conf-intro { display: grid; background: #fff; }
.conf-intro__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.conf-intro__photo::after { content: ""; position: absolute; inset: 0; background: var(--c-navy); mix-blend-mode: multiply; opacity: .35; }
.conf-intro__text { padding: 56px var(--gutter) 64px; }
.conf-intro__text > * { max-width: 620px; }
@media (min-width: 960px) {
  .conf-intro { grid-template-columns: 5fr 7fr; min-height: 580px; }
  .conf-intro__photo { aspect-ratio: auto; }
  .conf-intro__text { align-self: center; padding: 100px max(var(--gutter), calc((100vw - var(--w-max)) / 2 + var(--gutter))) 100px 72px; }
}
@media (min-width: 1280px) { .conf-intro__text { padding-left: 96px; } }
.conf-statement { font-family: var(--f-display); font-weight: 400; font-size: var(--t-sub); line-height: 42px; letter-spacing: 0; color: var(--c-navy); margin: 0 0 24px; }
.conf-statement em { font-style: normal; color: var(--c-accent-deep); }   /* accent words */
@media (min-width: 1280px) { .conf-statement { font-size: var(--t-title); line-height: 54px; } }
.conf-lead { font-size: var(--p-xl); line-height: 28px; color: var(--c-ink-soft); margin: 0 0 40px; }
/* Key facts: label / value rows between hairlines, like a fact sheet */
.conf-facts { margin: 0; border-top: 1px solid rgba(10,22,55,.14); }
.conf-facts > div { padding: 18px 0; border-bottom: 1px solid rgba(10,22,55,.14); }
.conf-facts dt { font-weight: 700; font-size: var(--t-label); line-height: 20px; letter-spacing: .13em; text-transform: uppercase; color: var(--c-accent-deep); margin-bottom: 6px; }
.conf-facts dd { margin: 0; font-size: var(--t-body); line-height: 26px; color: var(--c-ink-soft); }
/* Wide enough for two columns: label on the left, detail on the right */
@media (min-width: 620px) {
  .conf-facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
  .conf-facts dt { margin: 0; line-height: 26px; }
}
@media (min-width: 1280px) { .conf-facts > div { grid-template-columns: 180px 1fr; gap: 32px; } }

/* Clients: the same logo strip as the home page, shown white on the navy */
.conf-clients { padding-block: 52px; }
@media (min-width: 960px) { .conf-clients { padding-block: 72px; } }
.conf-clients .clients { margin-top: 0; }   /* the strip has its own spacing above; this section does not need more */
.conf-clients .clients img { filter: brightness(0) invert(1); opacity: .9; }   /* the logo files are navy, so they are flipped to white here */
/* Fewer logos here than on the home page, so they sit centred in one row rather than on a seven-column grid */
/* Fewer logos than the home page, so they sit in an even block rather than on a seven-column grid */
.conf-clients .clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; justify-items: center; }
@media (min-width: 650px) {
  .conf-clients .clients { grid-template-columns: repeat(4, 1fr); gap: 48px 32px; }
  .conf-clients .clients li { flex: 0 0 auto; }
  .conf-clients .clients img { height: 30px; max-width: 132px; }   /* a little larger, since there are fewer of them */
  .conf-clients .clients__tall img { height: 58px; }
}

/* Slide-out panel */
/* visibility switches on instantly when opening and only after the slide when closing, so the panel can take focus straight away */
/* A frame the panels slide inside. On closing, its foot lifts to the section's bottom edge,
   so the panel disappears into that line rather than the bottom of the window. */
.drawer-stage { position: fixed; inset: 0; z-index: 60; overflow: hidden; overflow: clip; pointer-events: none; transition: none; }   /* clip, so the hidden panel below can never scroll this frame */
.drawer-stage .drawer { pointer-events: auto; }
.drawer-scrim { position: fixed; inset: 0; z-index: 55; pointer-events: auto; background: rgba(8,14,24,.6); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.drawer-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.drawer { position: fixed; top: 0; right: 0; z-index: 60; text-align: left; width: min(640px, 100%); height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--c-navy); color: #fff; transform: translateX(100%); visibility: hidden; transition: transform .4s cubic-bezier(.22,.61,.36,1), visibility 0s linear .4s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.22,.61,.36,1), visibility 0s; }
.drawer__inner { padding: 72px 28px 56px; }
@media (min-width: 720px) { .drawer__inner { padding: 88px 56px 72px; } }
.drawer__close { position: absolute; top: 18px; right: 18px; touch-action: manipulation; -webkit-tap-highlight-color: rgba(255,255,255,.25); width: 44px; height: 44px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff; font-size: var(--t-lead); line-height: 1; transition: background .25s ease, color .25s ease; }   /* not "all": that would transition visibility too and block focus */
.drawer__close:hover { background: var(--c-accent); }
.drawer__close:focus-visible, .drawer a:focus-visible { outline-color: #fff; }
.drawer .drawer__label { margin: 0 0 10px; font-weight: 700; font-size: var(--t-label); line-height: 16px; letter-spacing: .13em; text-transform: uppercase; color: var(--c-accent); }
.drawer h2 { color: #fff; margin: 0 0 28px; }
.drawer h3 { color: #fff; font-size: var(--t-body); line-height: 24px; margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--c-rule-dark); }
.drawer p { color: var(--c-on-dark-soft); margin: 0 0 12px; }
.drawer__results { list-style: none; margin: 16px 0 0; padding: 0; }
.drawer__results li { position: relative; padding: 0 0 14px 26px; color: #fff; }
.drawer__results li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 2px; background: var(--c-accent); }
.drawer__quote { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--c-rule-dark); }
.drawer__quote p { font-size: var(--p-xl); line-height: 28px; color: #fff; }
.drawer__quote cite { font-style: normal; font-weight: 700; font-size: var(--t-label); letter-spacing: .13em; text-transform: uppercase; color: var(--c-accent-soft); }
.drawer__cta { margin-top: 32px; }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim, .case-tab { transition: none; } }

/* Panel that slides in from the left (the history timeline) */
.drawer--left { right: auto; left: 0; transform: translateX(-100%); }

/* Panel can slide up from the foot of the page instead (team builds page) */
.drawer--bottom { position: absolute; top: auto; right: 0; bottom: 0; left: 0; width: 100%; transform: translateY(100%);
  display: flex; flex-direction: column; overflow: visible; }   /* stops short of the top, and lets the close tab sit above the panel */
/* The panel all but fills the window, covering the navigation while it is open */
.drawer--bottom { height: calc(100% - 26px); }
.drawer--bottom .drawer__inner { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* Close: a red tab on the panel's top edge, mirroring the tabs that open it */
.drawer--bottom .drawer__close { top: 0; bottom: auto; right: max(24px, calc((100% - 860px) / 2)); width: auto; height: 46px; padding: 0 20px; gap: 10px;
  border-radius: 0 0 8px 8px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--c-accent); color: #fff; border-radius: 8px 8px 0 0;
  font-family: var(--f-body); font-weight: 700; font-size: var(--t-label); line-height: 1; letter-spacing: .13em; text-transform: uppercase; }
.drawer--bottom .drawer__inner { padding-top: 80px; }
.drawer--bottom .drawer__close:hover { background: var(--c-accent-hover); }
.drawer--bottom .drawer__close svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Team builds page ---------- */
.teams { position: relative; background: #fff; padding: 56px 0 0; }
/* Photo behind the section, almost entirely veiled by white */
.teams__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.teams > .wrap:not(.cases__foot) { position: relative; z-index: 1; }   /* content sits above the photo */
.teams .cases__foot { position: relative; }          /* positioned, but no z-index: that would trap the sliding panels */
.teams__bg .bg, .teams__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teams__bg::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .9; }
@media (min-width: 960px) { .teams { padding-top: 90px; } }
.teams__grid { display: grid; gap: 20px; }
/* Staggered: first box top left, second bottom right */
@media (min-width: 960px) {
  .teams__grid { grid-template-columns: repeat(12, 1fr); gap: 0; }
  .teams-panel:first-child { grid-column: 1 / 8;  grid-row: 1; align-self: start; }   /* sized to its text, not to the column beside it */
  .caps                    { grid-column: 8 / 13; grid-row: 1; align-self: center; margin-top: 0; padding-left: 48px; }
  .teams-logos             { grid-column: 1 / 6;  grid-row: 2; align-self: center; padding-right: 40px; }
  .teams-panel--navy       { grid-column: 6 / 13; grid-row: 2; margin-top: 40px; }
  .teams-panel--third      { grid-column: 1 / 8;  grid-row: 3; margin-top: 56px; }
  .teams-cta               { grid-column: 6 / 13; grid-row: 4; justify-self: end; }
}
@media (max-width: 959.98px) { .teams-panel--third { margin-top: 26px; } }
/* The three kinds of team build, in a panel with the focus moving down them */
.caps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.caps li { display: grid; justify-items: center; align-content: start; }
.caps img { display: block; width: 62px; height: auto; margin: 0 auto 12px; }
.caps h3 { margin: 0; font-size: var(--t-body); line-height: 24px; }
/* Same two panel styles as the Our history page: a grey one with a red accent, and a navy one in white */
.teams-panel { background: rgba(238, 240, 243, .9); border-radius: 8px; padding: 32px; }   /* slightly see-through, so the photo behind shows a little */
@media (min-width: 1280px) { .teams-panel { padding: 40px; } }
.teams-panel h2 { margin: 0 0 20px; font-size: var(--t-lead); line-height: 32px; }
@media (min-width: 1280px) { .teams-panel h2 { font-size: var(--t-sub); line-height: 36px; } }
.teams-panel p { margin: 0 0 16px; }
.teams-panel p:last-child { margin-bottom: 0; }   /* no trailing gap inside the box */
.teams-panel p:last-child { margin: 0; }
.teams-panel:not(.teams-panel--navy) { border: 1px solid var(--c-navy); }   /* thin navy outline on the grey box */
.teams-panel--navy { background: rgba(19, 36, 58, .92); }
.teams-panel--navy h2, .teams-panel--navy p { color: #fff; }

/* Case studies: heading, then tabs standing on the bottom edge of this section */
.cases__foot { margin-top: 64px; text-align: center; }
@media (min-width: 960px) { .cases__foot { margin-top: 90px; } }
.cases__title { margin: 0 0 8px; }
.cases__hint { margin: 0; color: var(--c-ink-soft); font-size: var(--p-xl); line-height: 28px; }
.case-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; margin-top: 32px; }   /* stretch keeps both tabs the same height */
.case-tab { flex: 1 1 240px; max-width: 320px; display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 132px;
  background: var(--c-band); border: 1px solid rgba(10,22,55,.10); border-bottom: 0; border-top: 3px solid var(--c-navy); border-radius: 8px 8px 0 0;
  padding: 24px 24px 22px; cursor: pointer; font-family: var(--f-body); box-shadow: 0 -8px 26px rgba(13,25,40,.10);
  transition: transform .28s ease, box-shadow .28s ease; }
.case-tab:hover { transform: translateY(-8px); box-shadow: 0 -14px 34px rgba(13,25,40,.18); }
.case-tab:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 3px; }
.case-tab.no-ring:focus, .case-tab.no-ring:focus-visible { outline: none; }
/* Both logos sit in a slot of the same height and scale inside it, so neither stretches and the tabs match */
.case-tab__logobox { display: grid; place-items: center; width: 100%; height: 46px; }
.case-tab__logo { max-height: 46px; max-width: min(100%, 180px); width: auto; height: auto; object-fit: contain; }
.case-tab__label { font-weight: 700; font-size: var(--t-label); line-height: 16px; letter-spacing: .13em; text-transform: uppercase; color: var(--c-ink-soft); }
/* A red chip so the tab clearly invites a click */
.case-tab__cue { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--c-accent); color: #fff;
  font-weight: 700; font-size: var(--t-label); line-height: 16px; letter-spacing: .13em; text-transform: uppercase; transition: background .28s ease; }
.case-tab:hover .case-tab__cue { background: var(--c-accent-hover); }
.case-tab__cue svg { width: 15px; height: 15px; fill: currentColor; animation: cue-bob 2.4s ease-in-out infinite; }
.case-tab:hover .case-tab__cue svg { animation: none; transform: translateY(-3px); transition: transform .28s ease; }
@keyframes cue-bob { 0%, 70%, 100% { transform: translateY(0); } 82% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .case-tab, .case-tab__cue svg { transition: none; animation: none; } }
/* Stacked on small screens: give the tabs a bottom edge and a little space above the footer */
@media (max-width: 599.98px) {
  .case-tabs { margin-bottom: 0; }
  .case-tab { border-bottom: 1px solid rgba(10,22,55,.12); border-radius: 8px; box-shadow: 0 12px 30px rgba(13,25,40,.10); min-height: 0; }
}

/* Client logos beside the navy box: one line, sized to fit whatever is in the group */
.teams-logos { margin: 28px 0 0; }
@media (min-width: 960px) { .teams-logos { margin: 0; } }
.teams-logos .clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 22px; margin: 0; }
@media (min-width: 960px) {
  /* Spread across the column: first logo flush with the text box edge, last one out towards the navy box */
  .teams-logos .clients { flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
}
.teams-logos .clients li { flex: 0 0 auto; }
.teams-logos .clients img { height: 24px; width: auto; max-width: 92px; object-fit: contain; }
.teams-logos .clients img[src*="BrevanHoward"] { max-width: 140px; }   /* a long, thin wordmark needs more width */
/* Tighter on smaller desktops, where the column is narrower */
@media (min-width: 960px) and (max-width: 1439.98px) {
  .teams-logos .clients img { height: 18px; max-width: 70px; }
  .teams-logos .clients img[src*="BrevanHoward"] { max-width: 104px; }
}

/* Case study panel details */
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.drawer__head h2 { margin-bottom: 0; }
.drawer__logo { flex: 0 0 auto; height: 46px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.drawer__logo[src*="BrevanHoward"] { max-width: 200px; }   /* long, thin wordmark */
/* Pale scrollbar inside the panel, instead of the browser's dark default */
.drawer__inner { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent; }
.drawer__inner::-webkit-scrollbar { width: 10px; }
.drawer__inner::-webkit-scrollbar-track { background: transparent; }
.drawer__inner::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .45); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.drawer__inner::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .7); background-clip: content-box; }
/* On anything wider than a phone the panel sits at 80% of the screen, centred, leaving a sliver of page either side */
@media (min-width: 720px) {
  .drawer--bottom { left: 10%; right: 10%; width: 80%; }
  .drawer--bottom .drawer__close { right: 28px; }   /* tucked into the panel's own corner now it is narrower */
}
.drawer__head + h3 { margin-top: 34px; }
/* The result, lifted out in a grey box */
.drawer__result { background: var(--c-band); border-radius: 8px; padding: 24px 26px 8px; margin-top: 34px; }
@media (min-width: 720px) { .drawer__result { padding: 30px 32px 14px; } }
.drawer__result h3 { margin: 0 0 14px; padding: 0; border: 0; color: var(--c-navy); }
.drawer__result .drawer__results { margin: 0; }
.drawer__result .drawer__results li { color: var(--c-ink); }
/* Quote: red quote mark to the left, set in italics */
.drawer__quote { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; margin-top: 38px; padding-top: 0; border: 0; }
.drawer__quote::before { content: "\201C"; grid-column: 1; grid-row: 1 / span 2; font-family: var(--f-display); font-weight: 900; font-size: 88px; line-height: .6; height: 52px; color: var(--c-accent); }
.drawer__quote p { grid-column: 2; font-style: italic; margin-bottom: 10px; }
.drawer__quote cite { grid-column: 2; }
.drawer .drawer__cta { margin-top: 64px; }

.teams-cta { margin: 28px 0 0; }

.prose--narrow { max-width: 760px; }
.prose--narrow p { margin-bottom: 20px; }
.privacy__who { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(10,22,55,.12); font-size: var(--t-small); color: var(--c-ink-soft); }

/* ---------- Contact: the four ways, and the note form ---------- */
/* Tighter than the usual rhythm: the page should start high and run straight on into the form. */
.ways { margin-top: 48px; margin-bottom: 20px; }
@media (min-width: 768px) { .ways { margin-top: 72px; margin-bottom: 24px; } }
.note-band { padding: 40px 0 56px; }
@media (min-width: 768px) { .note-band { padding: 44px 0 72px; } }
.ways__title { margin: 0 0 30px; }
.ways__lead { margin: 0 0 36px; color: var(--c-ink-soft); font-size: var(--p-xl); line-height: 28px; }
.ways__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .ways__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid rgba(10, 22, 55, .12);
  border-top: 3px solid var(--c-navy); padding: 28px 26px 30px; box-shadow: 0 14px 40px rgba(13, 25, 40, .06); }
.way h3 { margin: 0; font-size: var(--t-lead); line-height: 28px; }
.way p { margin: 0; color: var(--c-ink-soft); }
.way .btn { margin-top: auto; }
.way__big { font-size: var(--t-lead); line-height: 28px; font-weight: 700; }
.way__big a { color: var(--c-navy); }
.way__big a:hover { color: var(--c-accent); }
.way--chat .way__status { font-weight: 700; font-size: var(--t-label); letter-spacing: .13em; text-transform: uppercase; color: var(--c-ink-soft); }
.way--chat.is-online { border-top-color: var(--c-accent); }
.way--chat.is-online .way__status { color: var(--c-accent-deep); }
.way--chat.is-online .way__status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #35C759; margin-right: 8px; }

.note { display: grid; gap: 28px; }
@media (min-width: 960px) { .note { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }
.note__intro h2 { margin: 0 0 12px; }
.note__intro p { color: var(--c-ink-soft); margin: 0 0 12px; }
.note__alt a { color: var(--c-accent-deep); font-weight: 700; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__note { margin: 0; font-size: var(--t-small); line-height: 22px; color: var(--c-ink-soft); }
.form__note.is-error { color: var(--c-accent-deep); font-weight: 700; }

/* This photo is mostly soft grey sky, so it needs a little more than the usual 8% to register */
.hero--inner.contact-hero .hero__img { opacity: .14; }
/* A deeper band, so more of the photo shows. It scales with the width of the window. */


/* Phones: the copyright line sits at the very bottom, under the contact details */
@media (max-width: 1099.98px) {
  .site-footer .wrap > div:first-child { display: contents; }
  .site-footer .brand { order: 1; }
  .site-footer .wrap > div:nth-child(2) { order: 2; }
  .site-footer .wrap > div:nth-child(3) { order: 3; }
  .site-footer__legal { order: 4; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); width: 100%;
    display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .site-footer__legal > * { padding: 0; border-right: 0; }
}

/* ---------- Team builds page on a phone ---------- */
@media (max-width: 959.98px) {
  /* On a phone the section reads as one column: icons, box, logos, box, case studies, then the button. */
  .teams { padding-bottom: 40px; }
  .teams__grid { display: flex; flex-direction: column; }
  .teams .caps { order: 1; margin-top: 0; margin-bottom: 8px; }
  .teams-panel:not(.teams-panel--navy) { order: 2; }
  .teams-logos { order: 3; margin-top: 34px; margin-bottom: 34px; }   /* sits evenly between the two boxes */
  .teams-panel--navy { order: 4; margin-top: 0; }
  .teams-panel.teams-panel--third { order: 5; margin-top: 26px; }
  .teams-quote { order: 6; margin-top: 26px; }
  .teams-cta { order: 7; margin-top: 28px; text-align: center; }
  .cases__foot .teams-cta { margin-top: 28px; }                        /* once moved below the case studies */
  .teams-logos .clients { display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; gap: 22px 16px; }
  .teams-logos .clients li:nth-child(3) { grid-column: 1 / -1; }   /* two, one, two */
  .teams-logos .clients img { height: 22px; max-width: 120px; }
  .teams-logos .clients img[src*="BrevanHoward"] { max-width: 150px; }
}

.drawer__close-long { display: none; }
@media (max-width: 599.98px) {
  .drawer--bottom .drawer__close { left: 0; right: 0; width: 100%; height: 64px; border-radius: 0; justify-content: center; gap: 12px;
    font-size: var(--t-small); padding-top: env(safe-area-inset-top, 0px); }
  .drawer--bottom .drawer__close-short { display: none; }
  .drawer--bottom .drawer__close-long { display: inline; }
  .drawer--bottom .drawer__inner { padding-top: 88px; }
}

/* ---------- Evaluation page on a phone ---------- */
/* The panels read title, text, then the illustration beneath — nothing sits over anything else. */
@media (max-width: 859.98px) {
  .ingredient { display: flex; flex-direction: column; }
  .ingredient__title { order: -2; }
  .ingredient > p { order: -1; }
  .ingredient__aside { order: 1; margin: 30px 0 0; }
  .ingredient__aside.meet-md { margin-bottom: 0; }

  /* out on the page now, so no box of their own is needed */
  .ingredient__outside { list-style: none; margin: 22px 0 0; }
  .ingredient__outside .ingredient__aside { margin: 0; }
  .ingredient__aside.recbtn { flex-wrap: wrap; gap: 18px; }
  /* keep the interview frame, drop the A4 page around it */
  .recbtn .cvpage { display: block; flex: 1 1 100%; width: auto; margin: 6px 0 0; padding: 0; border: 0; aspect-ratio: auto; }
  .recbtn .cvpage__mark, .recbtn .cvpage__name, .recbtn .cvpage__lines { display: none; }
  .recbtn .filmstrip__frame { margin: 0; }
  .meet-md { max-width: none; }

  /* phones: a tighter strip */
  .awardshow { --aw-small: 32px; --aw-large: 66px; }
  .awardshow__strip { gap: 6px; margin-bottom: 20px; }
  .awardshow__captions { min-height: 210px; }
  .awardshow__caption h3 { font-size: var(--t-body); line-height: 22px; }
  .awardshow__caption p { font-size: var(--t-body); line-height: 24px; }
}

/* ---------- Our history: the timeline slides out on phones ---------- */
.timeline-tab { display: none; }
@media (max-width: 959.98px) {
  /* a tab against the left edge of the window, reading downwards */
  .timeline-tab { display: flex; align-items: center; justify-content: center; position: fixed; left: 0; top: 320px; z-index: 50;
    border: 0; cursor: pointer; width: 44px; min-height: 132px; padding: 18px 0;
    background: var(--c-accent); color: #fff; font-family: var(--f-body); font-weight: 700; font-size: var(--t-label);
    letter-spacing: .13em; text-transform: uppercase; border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
    box-shadow: 0 10px 30px rgba(8, 14, 24, .35); transition: width .25s ease, background .25s ease; }
  .timeline-tab span { display: block; writing-mode: vertical-rl; line-height: 1; font-size: var(--t-label); }
  .timeline-tab:hover { width: 52px; background: var(--c-accent-hover); }
  .timeline-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  body.drawer-open .timeline-tab { opacity: 0; visibility: hidden; }

  .timeline-stage .drawer { width: min(360px, 92vw); background: #fff; }
  .timeline-stage .drawer__inner { padding: 72px 24px 40px; }
  .timeline-stage .drawer__close { background: var(--c-navy); }
  .timeline-stage .drawer__close:hover { background: var(--c-accent); }
  .history__grid { gap: 0; }
  .history__story { margin-top: 140px; }
}

/* On desktop it is simply the left-hand column again */
@media (min-width: 960px) {
  .timeline-stage { position: static; overflow: visible; pointer-events: auto; z-index: auto; }
  .timeline-stage .drawer-scrim { display: none; }
  .timeline-stage .drawer { position: static; width: auto; height: auto; transform: none; visibility: visible; overflow: visible;
    background: none; color: inherit; text-align: left; }
  .timeline-stage .drawer__inner { padding: 0; max-width: none; overflow: visible; }
  .timeline-stage .drawer__close { display: none; }
}

/* ---------- Our history on a phone: a size up, and a smaller portrait ---------- */
@media (max-width: 639.98px) {
  .story__block p, .md-inline p { font-size: var(--t-body); line-height: 27px; }
  .md-inline__photo { width: var(--md-photo, 35%); max-width: 100%; }
}

/* ---------- Phones: body copy inside panels reads a size up ---------- */
@media (max-width: 639.98px) {
  .teams-panel p,
  .ingredient > p,
  .conf-facts dd,
  .way p,
  .note__intro p,
  .svc__item p,
  .cases__hint,
  .drawer__inner p:not(.drawer__label):not(.drawer__cta),
  .drawer__results li { font-size: var(--t-body); line-height: 27px; }
  .conf-lead { font-size: var(--t-lead); line-height: 29px; }
}

/* Desktop: let the sentence run wider, so it sits on fewer, longer lines */
@media (min-width: 960px) { .statement__text { max-width: 1500px; } }

/* ---------- Case studies page ---------- */
.cases-page { margin: 48px 0 0; }                       /* the page starts high, like Contact */
@media (min-width: 768px) { .cases-page { margin-top: 72px; } }

.cases-page__title { margin: 0 0 10px; max-width: 24ch; }
.cases-page__lead { margin: 0 0 4px; color: var(--c-ink-soft); font-size: var(--p-xl); line-height: 28px; }
.cases-page__hint { margin: 0 0 4px; color: var(--c-ink-soft); }
/* the grid sits on a band a shade darker than the page */
.cases-band { background: var(--c-band); padding: 40px 0 56px; margin: 28px 0 0; }
@media (min-width: 768px) { .cases-band { padding: 48px 0 64px; margin-top: 36px; } }
/* Flex rather than grid, so a short last row sits centred instead of hugging the left */
.case-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.case-grid > li { flex: 0 1 calc(50% - 9px); min-width: 0; }   /* a wide logo must not force a wider tile */
@media (min-width: 620px)  { .case-grid { gap: 20px; } .case-grid > li { flex: 0 1 240px; } }
@media (min-width: 1100px) { .case-grid > li { flex: 0 1 280px; } }

.case-card { display: flex; }
.case-card__open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
  background: #fff; border: 1px solid rgba(10, 22, 55, .12); border-top: 3px solid var(--c-navy); border-radius: 8px;
  padding: 24px 18px 22px; font-family: var(--f-body); text-align: center;
  box-shadow: 0 14px 34px rgba(13, 25, 40, .06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.case-card__open:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(13, 25, 40, .14); border-top-color: var(--c-accent); }
.case-card__open:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 3px; }
.case-card__logobox { display: grid; place-items: center; height: 46px; width: 100%; }
.case-card__logo { max-height: 40px; max-width: min(128px, 100%); width: auto; object-fit: contain; }
.case-card__logo--wide { max-height: 18px; max-width: min(160px, 100%); }
.case-card__wordmark { font-family: var(--f-display); font-weight: 700; font-size: var(--t-body); line-height: 22px; color: var(--c-navy); letter-spacing: .01em; }
.case-card__label { font-weight: 700; font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink-soft); }
.case-card__type { font-weight: 700; font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin-top: -4px; }
.case-card__role { font-weight: 700; font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-navy); margin-top: -4px; }
.case-card__name { font-family: var(--f-display); font-weight: 700; font-size: var(--t-body); line-height: 24px; color: var(--c-navy); }
.case-card__summary { font-size: var(--t-small); line-height: 21px; color: var(--c-ink-soft); }
.case-card .case-tab__cue { margin-top: auto; }

.case-card--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 190px;
  border: 1px dashed rgba(10, 22, 55, .22); border-radius: 8px; background: rgba(255, 255, 255, .45); text-align: center; }
.case-card__soon { font-weight: 700; font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: rgba(10, 22, 55, .35); }
.case-card__note { font-size: var(--t-small); color: rgba(10, 22, 55, .35); }

/* Case studies banner: the carved face sits higher in the frame, and the stone needs a touch more light */
.hero--inner.cases-hero .hero__img { opacity: .11; object-position: 50% 20%; }

/* ---------- Client logo band: a slow, endless scroll under the hero ---------- */
.logobar { background: var(--c-navy); overflow: hidden; padding: 22px 0; position: relative; z-index: 0; isolation: isolate; }
@media (min-width: 768px) { .logobar { padding: 28px 0; } }
.logobar__track { display: flex; width: max-content; animation: logobar-roll 70s linear infinite;
  transform: translate3d(0, 0, 0); }
/* once the script takes over, the strip is short and moved frame by frame */
.logobar.is-rolling .logobar__track { animation: none; }
.logobar.is-rolling .logobar__run { padding-right: 0; }
/* Phones: a shorter strip that stays inside Safari's compositing limit, moving at a visible pace */
@media (max-width: 767.98px) {
  .logobar__track { animation-duration: 30s; }
  .logobar__run { gap: 26px; padding: 0 13px; }
}
.logobar__run { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0 18px; list-style: none; }
@media (min-width: 768px) { .logobar__run { gap: 76px; padding: 0 38px; } }
.logobar__item img { height: calc(var(--logo-h, 28px) * .54); width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .88; }
@media (min-width: 768px) { .logobar__item img { height: var(--logo-h, 30px); } }
@keyframes logobar-roll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .logobar__track { animation: none; }
  .logobar { overflow-x: auto; }
}

/* ---------- A closing band, and the run-in to the case studies ---------- */
.conf-clients__label { margin: 0 0 26px; text-align: center; font-weight: 700; font-size: var(--t-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-on-dark-soft); }
.cases-page--lead { margin-bottom: 0; }
.closing { padding-block: 56px; }
@media (min-width: 768px) { .closing { padding-block: 76px; } }
.closing__inner { display: grid; gap: 24px; }
@media (min-width: 960px) { .closing__inner { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; } }
.closing h2 { margin: 0 0 10px; font-size: var(--h3); line-height: var(--h3-lh); }
.closing p { margin: 0; color: var(--c-on-dark-soft); }
.closing .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 960px) { .closing .btn-row { justify-content: flex-end; } }

.md-inline__note { font-size: var(--t-small); color: var(--c-ink-soft); font-style: italic; }
@media (min-width: 640px) { #founder { margin-top: 56px; } }

.cases-band__more { margin: 56px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cases-band__more .btn:hover { background: #fff; color: var(--c-accent); }
.cases-band--flush { padding-bottom: 28px; }   /* the row of buttons sits close to the footer */
.cases-band--flush { margin-top: 0; padding-top: 44px; }
@media (min-width: 768px) { .cases-band--flush { padding-top: 56px; } }
.cases-band__title { margin: 0 0 44px; font-size: var(--h2); line-height: var(--h2-lh); }

/* ---------- Client logos beneath the buttons on Senior Appointments ---------- */
.conf-intro__clients { margin-top: 34px; padding-top: 34px; border-top: 1px solid rgba(10, 22, 55, .12); }
/* Three across on a phone, four on wider screens; a short last row sits centred */
.conf-intro__clients .clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 16px; margin: 0; }
.conf-intro__clients .clients li { flex: 0 1 calc(33.333% - 11px); display: flex; justify-content: center; min-width: 0; }
@media (min-width: 560px) { .conf-intro__clients .clients li { flex: 0 1 calc(25% - 12px); } }
.conf-intro__clients .clients img { height: auto; max-height: 28px; max-width: 108px; width: auto; filter: none; opacity: 1; transform: none; }
.conf-intro__clients .clients__tall img { max-height: 40px; }

/* Senior Appointments: equal space above and below the client logos */
.conf-intro__text { padding-bottom: 34px; }
@media (min-width: 860px) {
  .conf-intro__text { padding-bottom: 48px; }
  .conf-intro__clients { padding-top: 48px; }
}

/* Market feedback: the quotes, then a way through to the case studies */
.feedback__quotes { margin-top: 40px; }
.feedback__cta { margin: 44px 0 0; text-align: center; }
.feedback__cta .btn:hover { background: var(--c-accent); color: #fff; }

/* ---------- Managed Service: the three capabilities, one in focus at a time ---------- */
.caps li { transition: transform .8s cubic-bezier(.4, 0, .2, 1); }
.caps img { filter: grayscale(1); opacity: .8;
  transition: width .8s cubic-bezier(.4, 0, .2, 1), filter .8s ease, opacity .8s ease; }
.caps li.is-active img { filter: none; opacity: 1; }
.caps h3 { transition: color .8s ease, font-size .8s cubic-bezier(.4, 0, .2, 1); }
.caps li:not(.is-active) h3 { color: var(--c-ink-soft); }

@media (min-width: 960px) {
  .caps { background: none; border: 0; box-shadow: none; padding: 0 10px;
    align-content: center; row-gap: 26px;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .caps li { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 0 22px;
    text-align: left; align-self: center; }
  .caps li + li { border-top: 1px solid rgba(10, 22, 55, .12); padding-top: 26px; }
  .caps img { width: 58px; margin: 0; }
  .caps h3 { font-size: var(--t-body); line-height: 26px; }

  .caps li.is-active { transform: translateX(10px); }
  .caps li.is-active img { width: 110px; }
  .caps li.is-active h3 { font-size: var(--t-lead); color: var(--c-navy); }
}

@media (max-width: 959.98px) {
  .caps li.is-active img { width: 76px; }
  .caps li.is-active h3 { color: var(--c-navy); }
}

/* ---------- Market feedback: five quotes round the Kite mark ---------- */
.feedback__mark { display: none; }
@media (min-width: 1100px) {
  .feedback__quotes--pentagon { position: relative; }
  .feedback__quotes--pentagon .quotes { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 30px; align-items: start; }
  /* top point, given room to breathe */
  .feedback__quotes--pentagon .quote:nth-child(1) { grid-column: 4 / 10; grid-row: 1; }
  /* the two shoulders, set wide */
  .feedback__quotes--pentagon .quote:nth-child(2) { grid-column: 1 / 5;  grid-row: 2; }
  .feedback__quotes--pentagon .quote:nth-child(3) { grid-column: 9 / 13; grid-row: 2; }
  /* the two feet, drawn in but wider */
  .feedback__quotes--pentagon .quote:nth-child(4) { grid-column: 2 / 7;  grid-row: 3; }
  .feedback__quotes--pentagon .quote:nth-child(5) { grid-column: 7 / 12; grid-row: 3; }
  .feedback__quotes--pentagon .quote p { font-size: var(--t-body); line-height: 27px; }

  /* the mark sits on the same row as the two shoulder quotes, centred between them */
  .feedback__mark { display: block; grid-column: 5 / 9; grid-row: 2; align-self: center; justify-self: center;
    width: 120px; height: auto; opacity: .9; pointer-events: none; }
}
@media (min-width: 1400px) { .feedback__mark { width: 140px; } }

/* The Our Company photograph is high-contrast glasswork, so it carries a touch more than the default */
.hero--inner.about-hero .hero__img { opacity: .12; }

/* The capabilities sit centred against the panel beside them (this must come after the base .caps rule) */
@media (min-width: 960px) { .caps { margin-top: 0; align-self: center; } }

/* ---------- Managed Service: a client quote beside the last panel ---------- */
.teams-quote { margin: 28px 0 0; padding: 0 4px; position: relative; }
.teams-quote::before { content: "\201C"; display: block; font-family: var(--f-display); font-weight: 900; font-size: 88px;
  line-height: .55; height: 44px; color: var(--c-accent-deep); opacity: .9; }
.teams-quote blockquote { margin: 0; }
.teams-quote p { margin: 0 0 14px; font-family: var(--f-display); font-weight: 700; font-style: italic;
  font-size: var(--t-lead); line-height: 30px; color: var(--c-navy); }
.teams-quote figcaption { font-size: var(--t-small); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); }
@media (min-width: 960px) {
  .teams-quote { grid-column: 8 / 13; grid-row: 3; align-self: center; margin: 56px 0 0; padding-left: 48px; }
}

/* the first of the two quotes sits where the client logos were */
@media (min-width: 960px) {
  .teams-quote--first { grid-column: 1 / 6; grid-row: 2; align-self: center; margin: 0; padding-right: 48px; padding-left: 0; }
}
@media (max-width: 959.98px) {
  .teams-quote--first { order: 3; margin: 26px 0; }
}

/* The column is a fixed height with three equal rows, so the focused icon grows inside its own
   space and nothing below it moves. */
@media (min-width: 960px) {
  .caps { height: 324px; grid-template-rows: repeat(3, 1fr); row-gap: 0; }   /* never taller than the panel beside it */
  .caps li { min-height: 0; align-content: center; padding-top: 0; }
  .caps li + li { border-top: 1px solid rgba(10, 22, 55, .12); }
  .caps img { width: 46px; }
  .caps li.is-active img { width: 84px; }
}
@media (max-width: 959.98px) {
  .caps { min-height: 150px; align-items: center; }
  .caps li { align-content: center; }
}
