/* ==========================================================================
   JB Trickey: homepage
   Tokens come from the approved design system (claude.ai/artifact/GigEjCQheywdKHUxUrPbuW).
   Five colours, two families, square corners, one graphic device (the diagonal slash).
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour: the five design-system tokens */
  --navy: #07135c;
  --ink: #121934;
  --royal: #0064e0;
  --grey: #f8f9fa;
  --white: #ffffff;
  /* rules and soft text are alphas of those tokens, never new tints */
  --rule: rgba(7, 19, 92, 0.16);
  --rule-inv: rgba(255, 255, 255, 0.24);
  --text-inv-soft: rgba(255, 255, 255, 0.82);

  /* type */
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  /* the design-system sizes are the values at a 1440px design width; they scale a little either side */
  --fs-display: clamp(2.375rem, 3.89vw, 4.25rem);   /* 56px at 1440 */
  --fs-h1: clamp(1.875rem, 2.78vw, 3rem);           /* 40px at 1440 */
  --fs-h2: clamp(1.625rem, 2.084vw, 2.375rem);      /* 30px at 1440 */
  --fs-h3: clamp(1.1875rem, 1.53vw, 1.5rem);        /* 22px at 1440 */
  --fs-lead: clamp(1.0625rem, 1.32vw, 1.1875rem);   /* 19px */

  /* spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  /* rhythm: fluid tokens for the vertical spacing of the page, built on the steps above.
     Every section uses the same top and bottom padding, so the space either side of each
     background change is equal; the values grow with the screen and stop at a ceiling. */
  --section: clamp(72px, 8.2vw, 140px);        /* top and bottom padding of every section: 72 phone and tablet, 105 at 1280, 118 at 1440, 140 from 1710 up */
  --section-gap: clamp(48px, 7.8vw, 80px);     /* heading block to content, and content to its closing call to action */
  --footer-strip: clamp(40px, 3.9vw, 56px);    /* equal space above and below the footer's newsletter strip: 40 phone and tablet, 50 at 1280, 56 from 1440 up */

  /* shape: square by default */
  --radius-none: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* layout */
  /* fluid, wide layout like the reference: the grid runs edge to edge with a gutter that grows
     with the screen, and only stops widening on very large displays */
  --container: 1760px;
  --gutter: clamp(20px, 4.4vw, 96px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --content: min(calc(100vw - 2 * var(--gutter)), var(--container));
  --hdr-h: 92px;
  --slash: 0.486; /* run per unit of height of the logo's slash, measured from the artwork */

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-hover: 0.45s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/26px var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, address { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .hdr :focus-visible, .mnav :focus-visible { outline-color: var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--white); color: var(--navy); padding: 14px 20px; font: 600 15px/20px var(--font-body); border-radius: var(--radius-sm); transition: top 0.2s; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); color: var(--navy); text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: 1.107; font-weight: 700; letter-spacing: -0.02em; }
.h1 { font-size: var(--fs-h1); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.h2 { font-size: var(--fs-h2); line-height: 1.267; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: var(--fs-h3); line-height: 1.364; font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.58; }
p { text-wrap: pretty; }
.eyebrow { font: 700 13px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--royal); }
.eyebrow--inv { color: var(--white); }
.on-dark, .hero { color: var(--white); }
.on-dark .display, .on-dark .h1, .on-dark .h2, .on-dark .h3, .hero .display { color: var(--white); }

.tag { display: inline-flex; align-items: center; font: 600 11px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--radius-md); border: 1px solid var(--rule); color: var(--navy); background: var(--white); white-space: nowrap; }
.tag--inv { border-color: rgba(255, 255, 255, 0.5); color: var(--white); background: transparent; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 15px/20px var(--font-body); white-space: nowrap;
  transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; transform: scaleX(0); transform-origin: left center; transition: transform 0.6s var(--ease); }
.btn__arrow { width: 18px; height: 18px; flex: none; transition: transform var(--t-hover) var(--ease); }
.btn--lg { min-height: 58px; padding: 0 30px; }

.btn--primary { background: var(--royal); color: var(--white); }
.btn--primary::before { background: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline::before { background: var(--navy); }
.btn--outline-inv { border-color: rgba(255, 255, 255, 0.72); color: var(--white); }
.btn--outline-inv::before { background: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light::before { background: var(--royal); }
/* on navy and on photography the primary button wipes to white instead of navy */
.on-dark .btn--primary::before, .hero .btn--primary::before, .hdr .btn--primary::before, .mnav .btn--primary::before { background: var(--white); }

@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .btn--outline:hover, .btn--light:hover { color: var(--white); }
  .btn--outline-inv:hover { color: var(--navy); border-color: var(--white); }
  .on-dark .btn--primary:hover, .hero .btn--primary:hover, .hdr .btn--primary:hover, .mnav .btn--primary:hover { color: var(--navy); }
}
.btn:active { transform: translateY(1px); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/20px var(--font-body); color: var(--navy); }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t-hover) var(--ease), color var(--t-hover); }

.arrow-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--rule); color: var(--navy); border-radius: var(--radius-sm); transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), opacity 0.3s; }
.arrow-btn svg { width: 20px; height: 20px; transition: transform var(--t-hover) var(--ease); }
.arrow-btn[data-carousel-prev] svg, .arrow-btn[data-testi-prev] svg { transform: rotate(180deg); }
.arrow-btn:disabled { opacity: 0.35; cursor: default; }
.arrow-btn--inv { border-color: var(--rule-inv); color: var(--white); }
@media (hover: hover) {
  .arrow-btn:not(:disabled):hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .arrow-btn--inv:not(:disabled):hover { background: var(--white); border-color: var(--white); color: var(--navy); }
  .arrow-btn[data-carousel-next]:not(:disabled):hover svg, .arrow-btn[data-testi-next]:hover svg { transform: translateX(3px); }
  .arrow-btn[data-carousel-prev]:not(:disabled):hover svg, .arrow-btn[data-testi-prev]:hover svg { transform: rotate(180deg) translateX(3px); }
}
.i-play { display: none; }
[aria-pressed="true"] > .i-pause { display: none; }
[aria-pressed="true"] > .i-play { display: block; }

.ghost-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--rule-inv); border-radius: var(--radius-sm); font: 600 14px/20px var(--font-body); color: var(--white); transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.ghost-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .ghost-btn:hover { background: var(--white); color: var(--navy); } }

/* Google rating (footer): the badge image from prmpt.com.au, shown a little under its natural 180 x 53.
   The figure on it is demo data until verified. The image has rounded corners built in, so it sits on a
   white tile with the button radius: the tile fills those corners and the badge matches the buttons. */
.grating { display: flex; flex-shrink: 0; align-items: center; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.grating img { display: block; width: auto; height: 48px; }

/* --------------------------------------------------------------------------
   Panel 1: header
   The logo sits on a white plate whose right edge is cut at the angle of the
   logo's own slash. The bar is clear over the hero and turns NAVY on scroll.
   -------------------------------------------------------------------------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--white); transition: transform 0.55s var(--ease); }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); opacity: 0; transition: opacity 0.4s var(--ease); }
.hdr.is-solid::before, .hdr.is-menu::before { opacity: 1; }
.hdr.is-solid { --hdr-h: 76px; }
.hdr.is-hidden { transform: translateY(-101%); }
.hdr__bar { display: flex; align-items: stretch; height: var(--hdr-h); padding-right: var(--edge); transition: height 0.45s var(--ease); }

.hdr__logo { display: flex; align-items: center; flex: none; background: var(--white); padding: 0 calc(var(--hdr-h) * var(--slash) + 30px) 0 var(--edge); clip-path: polygon(0 0, 100% 0, calc(100% - var(--hdr-h) * var(--slash)) 100%, 0 100%); transition: padding 0.45s var(--ease); }
.hdr__logo img { width: auto; height: 34px; transition: height 0.45s var(--ease), opacity var(--t-hover); }
.hdr.is-solid .hdr__logo img { height: 30px; }

.hdr__nav { margin-left: auto; display: flex; }
.nav { display: flex; align-items: stretch; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { position: relative; display: flex; align-items: center; height: 100%; padding: 0 16px; font: 600 15px/20px var(--font-body); white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 16px; right: 16px; top: calc(50% + 15px); height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform var(--t-hover) var(--ease); }
.nav__item--dd .nav__link { padding-right: 4px; }
.nav__item--dd .nav__link::after { right: 4px; }
.nav__toggle { display: grid; place-items: center; width: 28px; height: 44px; margin-right: 6px; }
.nav__toggle svg { width: 16px; height: 16px; transition: transform var(--t-hover) var(--ease); }

.dd { position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--white); color: var(--navy); border: 1px solid var(--rule); border-top: 2px solid var(--royal); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s 0.3s; }
.dd__list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; font: 600 15px/20px var(--font-body); border-bottom: 1px solid var(--rule); transition: background-color 0.3s, color 0.3s; }
.dd__list li:last-child a { border-bottom: 0; }
.dd__list span { transition: transform var(--t-hover) var(--ease); }
.dd__list svg { width: 16px; height: 16px; flex: none; color: var(--royal); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform var(--t-hover) var(--ease); }
.nav__item--dd.is-open .dd, .nav__item--dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__item--dd.is-open .nav__toggle svg { transform: rotate(180deg); }
@media (hover: hover) {
  .nav__link:hover::after, .nav__item--dd.is-open .nav__link::after { transform: scaleX(1); }
  .nav__item--dd:hover .dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__item--dd:hover .nav__toggle svg { transform: rotate(180deg); }
  .dd__list a:hover { background: var(--grey); }
  .dd__list a:hover span { transform: translateX(4px); }
  .dd__list a:hover svg { opacity: 1; transform: none; }
  .hdr__logo:hover img { opacity: 0.82; }
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.hdr__util { display: flex; align-items: center; gap: 20px; margin-left: 20px; padding-left: 24px; position: relative; }
.hdr__util::before { content: ""; position: absolute; left: 0; top: 50%; height: 24px; width: 1px; margin-top: -12px; background: var(--rule-inv); }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 15px/20px var(--font-body); white-space: nowrap; }
.hdr__phone svg { width: 18px; height: 18px; }
.hdr__phone span { position: relative; }
.hdr__phone span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform var(--t-hover) var(--ease); }
@media (hover: hover) { .hdr__phone:hover span::after { transform: scaleX(1); } }
.hdr__cta { min-height: 46px; padding: 0 20px; }

.hdr__burger { display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--rule-inv); border-radius: var(--radius-sm); }
.hdr__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.hdr__burger span:nth-child(1) { top: 18px; }
.hdr__burger span:nth-child(2) { top: 26px; }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--white); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s 0.35s; }
.mnav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mnav__inner { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--hdr-h) + 24px) var(--gutter) 32px; }
.mnav__list > li { border-bottom: 1px solid var(--rule-inv); opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.mnav.is-open .mnav__list > li { opacity: 1; transform: none; }
.mnav.is-open .mnav__list > li:nth-child(2) { transition-delay: 0.05s; }
.mnav.is-open .mnav__list > li:nth-child(3) { transition-delay: 0.1s; }
.mnav.is-open .mnav__list > li:nth-child(4) { transition-delay: 0.15s; }
.mnav.is-open .mnav__list > li:nth-child(5) { transition-delay: 0.2s; }
.mnav__list > li > a, .mnav__row > a { display: block; padding: 18px 0; font: 600 24px/32px var(--font-display); letter-spacing: -0.01em; }
.mnav__row { display: flex; align-items: center; justify-content: space-between; }
.mnav__row > a { flex: 1; }
.mnav__row button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rule-inv); border-radius: var(--radius-sm); }
.mnav__row button svg { width: 20px; height: 20px; transition: transform var(--t-hover) var(--ease); }
.mnav__row button[aria-expanded="true"] svg { transform: rotate(180deg); }
.mnav__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.mnav__sub > ul { overflow: hidden; }
.mnav__group.is-open .mnav__sub { grid-template-rows: 1fr; }
.mnav__sub a { display: block; padding: 10px 0; font: 400 17px/24px var(--font-body); color: var(--text-inv-soft); }
.mnav__sub li:last-child a { padding-bottom: 22px; }
.mnav__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.mnav__phone { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/28px var(--font-body); min-height: 44px; }
.mnav__phone svg { width: 20px; height: 20px; }
.mnav__foot .btn { width: 100%; }

/* --------------------------------------------------------------------------
   Panel 2: hero
   -------------------------------------------------------------------------- */
.hero { --hero-shade: #0c0d10; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; height: 100svh; min-height: 600px; max-height: 960px; background: var(--hero-shade); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media-inner { position: absolute; inset: 0; }
/* Focal point: the two faces sit in the top third of the footage, so the crop favours the top.
   Narrower screens shift sideways to keep faces in frame (see the responsive rules). */
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 1240px) { .hero__video { object-position: 44% 20%; } }
@media (max-width: 900px) { .hero__video { object-position: 38% 20%; } }
@media (max-width: 640px) { .hero__video { object-position: 71% 20%; } }
/* A flat, neutral charcoal shade: enough for white type to hold up over the bright office windows
   and white shirts in the footage, light enough that it keeps its own colour and detail.
   Flat, not a gradient, as the design system asks. */
.hero__tint { position: absolute; inset: 0; z-index: -1; background: var(--hero-shade); opacity: var(--hero-tint, 0.56); }
/* Two columns on one baseline: copy on the left, the call to action on the right */
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; padding-top: calc(var(--hdr-h) + 32px); padding-bottom: clamp(56px, 9vh, 96px); }
.hero__copy .eyebrow { margin-bottom: 24px; }
.hero__lead { margin-top: 28px; max-width: 640px; color: var(--white); text-wrap: balance; }
/* Playback control: kept for keyboard and screen-reader users, shown only on keyboard focus */
.hero__pause { position: absolute; right: var(--edge); bottom: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; background: var(--white); color: var(--navy); font: 600 13px/16px var(--font-body); border-radius: var(--radius-sm); opacity: 0; pointer-events: none; }
.hero__pause:focus-visible { opacity: 1; pointer-events: auto; outline-offset: 3px; }
.hero__pause svg { width: 16px; height: 16px; }
@media (max-height: 700px) and (min-width: 901px) {
  .hero__inner { padding-bottom: 48px; }
  .hero__lead { margin-top: 20px; }
}

/* --------------------------------------------------------------------------
   Hero to About: layered scroll, after the Appraise Psychology homepage.
   The hero is sticky inside .hero-stack, so About (later in the stack, on a higher layer)
   scrolls up over it at normal speed. Nothing is hijacked: this is ordinary scrolling.
   main.js writes --p on the hero (0 when the cover starts, 1 once About fully covers it);
   the hero content eases back by --shrink and fades, and the footage dims, as it is covered.
   Only applied with JavaScript (the header needs it to know when About arrives), and switched
   off for visitors who ask for reduced motion.
   -------------------------------------------------------------------------- */
.hero-stack { position: relative; }
.js .hero-stack > .hero { position: sticky; top: min(0px, calc(100svh - var(--hero-h, 100svh))); z-index: 0; --p: 0; --shrink: 0.08; }
/* About needs its own opaque ground to cover the hero, and is never shorter than the hero it covers */
.hero-stack > .about { position: relative; z-index: 1; background: var(--white); min-height: var(--hero-h, 0px); box-shadow: 0 -28px 56px -28px rgba(0, 0, 0, 0.45); }
.hero__inner { transform: scale(calc(1 - var(--p, 0) * var(--shrink, 0))); transform-origin: 50% 50%; opacity: calc(1 - var(--p, 0) * 0.45); will-change: transform; }
.hero__dim { position: absolute; inset: 0; z-index: -1; background: var(--hero-shade); opacity: calc(var(--p, 0) * 0.62); pointer-events: none; }
@media (max-width: 900px) { .js .hero-stack > .hero { --shrink: 0.06; } }
@media (max-width: 640px) { .js .hero-stack > .hero { --shrink: 0.05; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-stack > .hero { position: relative; top: auto; --shrink: 0; }
  .hero-stack > .about { box-shadow: none; }
  .hero__inner { opacity: 1; transform: none; }
  .hero__dim { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Sections and shared pieces
   -------------------------------------------------------------------------- */
.sec { padding-block: var(--section); }
.sec--grey { background: var(--grey); }
.sec-head { display: grid; gap: var(--space-2); }
.sec-head .h2 { margin-top: 4px; }
.sec-head--centre { justify-items: center; text-align: center; margin-bottom: var(--section-gap); }
.sec-head--centre .h2 { max-width: 24ch; }
.sec-head__blurb { max-width: 56ch; }
.sec-foot { margin-top: var(--section-gap); }
.sec-foot--centre { display: flex; justify-content: center; }

.media { position: relative; overflow: hidden; background: var(--grey); }
.media__inner { position: absolute; inset: -9% 0; }
.media__inner img { width: 100%; height: 100%; object-fit: cover; }
/* Black and white until hovered: the photo's colour returns on hover (CSS filter on one image file,
   same timing as the team portraits). Used on the About and Testimonials photos. */
.media--mono img { filter: grayscale(1) contrast(1.06); transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
@media (hover: hover) { .media--mono:hover img { filter: grayscale(0) contrast(1); } }
/* touch screens have no hover: the colour returns while most of the photo is on screen */
@media (hover: none) { .media--mono.is-inview img { filter: grayscale(0) contrast(1); } }

/* --------------------------------------------------------------------------
   Panel 3: about
   -------------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5) clamp(40px, 8.4vw, 136px); align-items: stretch; }
/* The image is at least 4:5 and grows to the height of the copy beside it, so the two columns
   always end on the same line. (A plain aspect-ratio here would widen the image instead.) */
.about__media { --ratio: 125%; align-self: stretch; justify-self: stretch; min-width: 0; }
.about__media::before { content: ""; display: block; padding-top: var(--ratio); }
/* heading and copy sit together, centred against the photo (they used to be pushed apart to its top and bottom) */
.about__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); padding-block: 8px; }
.about__head { display: grid; gap: 20px; }
/* two lines: wide enough that the heading never needs a third, narrow enough that it never sits on one */
.about__head .h2 { max-width: 36ch; }
.about__text { display: grid; gap: 20px; max-width: 640px; justify-items: start; }
.about__text .lead { color: var(--navy); }
.about__text > div { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Carousels (practice areas, team, news)
   Native horizontal scrolling with snap: touch, trackpad, keyboard and drag all work.
   -------------------------------------------------------------------------- */
.carousel__viewport { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; -webkit-user-select: none; }
.carousel__viewport.is-settling { scroll-snap-type: none; }
.carousel__viewport.is-dragging a { pointer-events: none; }
.carousel__track { display: flex; gap: var(--space-3); width: max-content; padding-inline: var(--edge); }
.carousel__item { flex: none; scroll-snap-align: start; }
.carousel__ctrl { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.carousel__arrows { display: flex; gap: 8px; }
.carousel__progress { position: relative; flex: 1; height: 1px; background: var(--rule); }
.carousel__progress span { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--navy); transform: scaleX(var(--p, 0.3)); transform-origin: left center; transition: transform 0.35s var(--ease); }
.carousel__count { font: 600 13px/16px var(--font-display); letter-spacing: 0.08em; color: var(--navy); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Panel 4: practice areas
   -------------------------------------------------------------------------- */
.pa__track .carousel__item { width: clamp(280px, 23.6vw, 392px); }
.pa-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--navy); color: var(--navy); }
.pa-card__img { position: absolute; inset: 0; }
.pa-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
/* Every plate is the same height (the tallest one, set by main.js as --plate-h) and uses the same
   three rows: number, title, description. Titles line up along the top, descriptions along the
   bottom and the arrow sits in the same corner, whatever the length of the text. */
.pa-card__plate { position: absolute; left: 0; right: 40px; bottom: 0; display: grid; grid-template-rows: auto 1fr auto; row-gap: 8px; min-height: var(--plate-h, 0px); padding: 20px 56px 22px 22px; background: var(--white); }
.pa-card__plate::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--royal); transform: scaleX(0); transform-origin: left center; transition: transform 0.6s var(--ease); }
.pa-card__num { font: 700 13px/16px var(--font-display); letter-spacing: 0.08em; color: var(--royal); }
.pa-card__title { align-self: start; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pa-card__desc { align-self: end; font-size: 14px; line-height: 22px; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pa-card__arrow { position: absolute; right: 18px; top: 18px; width: 20px; height: 20px; color: var(--navy); transition: transform var(--t-hover) var(--ease), color var(--t-hover); }
/* without JavaScript, reserve two title lines so the plates still match */
html:not(.js) .pa-card__title { min-height: 2.728em; }
@media (hover: hover) {
  .pa-card:hover .pa-card__img img { transform: scale(1.06); }
  .pa-card:hover .pa-card__plate::before { transform: scaleX(1); }
  .pa-card:hover .pa-card__arrow { transform: translateX(4px); color: var(--royal); }
}
.pa-card:focus-visible .pa-card__plate::before { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Panel 5: USPs
   -------------------------------------------------------------------------- */
.usp { --usp-shade: #0d0d0d; position: relative; isolation: isolate; overflow: hidden; background: var(--usp-shade); padding-block: var(--section); }
.usp__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.usp__bg-inner { position: absolute; inset: -13% 0; }
/* The photograph keeps its own dusk colour, eased back a little in CSS (the file is untouched),
   under a flat neutral charcoal: the same approach as the hero, with no navy wash. */
.usp__bg-inner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.06); }
.usp__tint { position: absolute; inset: 0; z-index: -1; background: var(--usp-shade); opacity: 0.56; }
.usp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--section-gap); }
.usp__head > div { display: grid; gap: 20px; }
.usp__head .h2 { max-width: 17ch; font-size: var(--fs-h1); line-height: 1.2; letter-spacing: -0.015em; }

.marquee__viewport { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee__viewport.is-dragging { cursor: grabbing; }
.marquee__track { display: flex; width: max-content; border-block: 1px solid var(--rule-inv); will-change: transform; }
.usp-card { flex: none; width: clamp(272px, 25vw, 372px); min-height: clamp(232px, 21vw, 300px); display: flex; flex-direction: column; padding: 28px 32px 32px; border-left: 1px solid var(--rule-inv); background: rgba(13, 13, 13, 0.3); transition: background-color 0.5s var(--ease); }
.usp-card__num { font: 700 13px/16px var(--font-display); letter-spacing: 0.08em; color: var(--text-inv-soft); }
.usp-card .h3 { margin-top: auto; padding-top: 40px; }
.usp-card p { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--text-inv-soft); }
/* cards carry a light charcoal fill so their copy stays readable over the bridge lights; it deepens on hover */
@media (hover: hover) { .usp-card:hover { background: rgba(13, 13, 13, 0.62); } }

/* --------------------------------------------------------------------------
   Panel 6: why choose us
   -------------------------------------------------------------------------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-5) clamp(40px, 8.4vw, 136px); align-items: stretch; }
.why__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); padding-block: 8px; }
.why__head { display: grid; gap: 20px; }
/* two lines, as for the About heading */
.why__head .h2 { max-width: 28ch; }
.why__text { display: grid; gap: 20px; max-width: 640px; justify-items: start; }
.why__text .lead { color: var(--navy); }
.why__text > div { margin-top: 12px; }
/* As in About: the image is at least square and grows to the height of the copy beside it */
.why__media { position: relative; display: flex; min-width: 0; }
.why__media .media { --ratio: 100%; flex: 1; min-width: 0; }
.why__media .media::before { content: ""; display: block; padding-top: var(--ratio); }
/* black and white, by CSS filter on the colour file (no hover change here, unlike About and Testimonials) */
.why__media .media img { filter: grayscale(1) contrast(1.06); }

/* --------------------------------------------------------------------------
   Panel 7: team
   -------------------------------------------------------------------------- */
.team__track .carousel__item { width: clamp(236px, calc((var(--content) - 72px) / 4), 340px); }
.team-card { position: relative; display: block; color: var(--navy); }
.team-card__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--white); }
/* black and white by default, the original colour returns on hover or keyboard focus (CSS filter, one image file) */
.team-card__img > img:first-child { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.02); transition: transform 1.4s var(--ease), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.team-card__mark { position: absolute; right: 0; top: 0; width: 44px; height: 44px; transform: translate(101%, -101%); transition: transform 0.6s var(--ease); }
.team-card__meta { position: relative; display: grid; gap: 2px; padding: 18px 40px 18px 0; border-bottom: 1px solid var(--rule); }
.team-card__meta::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--royal); transform: scaleX(0); transform-origin: left center; transition: transform 0.6s var(--ease); }
.team-card__role { font-size: 15px; line-height: 22px; color: var(--ink); }
.team-card__role--pending { font-style: italic; }
.team-card__arrow { position: absolute; right: 2px; top: 22px; width: 20px; height: 20px; transition: transform var(--t-hover) var(--ease), color var(--t-hover); }
@media (hover: hover) {
  a.team-card:hover .team-card__img > img:first-child { transform: scale(1.04); filter: grayscale(0) contrast(1) brightness(1); }
  a.team-card:hover .team-card__mark { transform: none; }
  a.team-card:hover .team-card__meta::after { transform: scaleX(1); }
  a.team-card:hover .team-card__arrow { transform: translateX(4px); color: var(--royal); }
}
a.team-card:focus-visible .team-card__img > img:first-child { filter: grayscale(0) contrast(1) brightness(1); }
/* touch screens have no hover: a portrait turns to colour once its card is fully in view, and while pressed */
@media (hover: none) {
  .team-card.is-inview .team-card__img > img:first-child, a.team-card:active .team-card__img > img:first-child { filter: grayscale(0) contrast(1) brightness(1); }
}
a.team-card:focus-visible .team-card__mark { transform: none; }
a.team-card:focus-visible .team-card__meta::after { transform: scaleX(1); }
/* stand-in tile for portraits that have not been supplied: clearly not a photograph */
.team-card__img--pending { display: grid; align-items: end; justify-items: center; }
.team-card__sil { width: 74%; height: auto; aspect-ratio: 200 / 250; fill: rgba(7, 19, 92, 0.09); }
.team-card__img--pending .tag { position: absolute; left: 14px; top: 14px; }

/* --------------------------------------------------------------------------
   Panel 8: testimonials
   -------------------------------------------------------------------------- */
.testi { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(560px, 47vw, 740px); }
/* same ground as the footer: logo-ink (#121934) from the design system */
.testi__panel { background: var(--ink); display: flex; align-items: center; }
.testi .arrow-btn--inv { border-color: rgba(255, 255, 255, 0.4); }
.testi__inner { width: 100%; max-width: calc(var(--container) / 2 + var(--gutter)); padding: var(--section) var(--gutter) var(--section) clamp(40px, 6.4vw, 104px); }
.testi__inner .h2 { margin-top: 20px; max-width: 16ch; }
.testi__slider { margin-top: clamp(40px, 4.6vw, 72px); }
/* the quotation mark is the logo's slash, in Royal */
.testi__slash { display: block; width: 44px; height: 44px; background: var(--royal); clip-path: polygon(66.5% 0, 88% 0, 26.6% 100%, 17.8% 100%); margin-left: -8px; }
.testi__slides { display: grid; margin-top: 20px; }
.testi__slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 28px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), visibility 0s 0.5s; }
.testi__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.15s, 0.15s, 0s; }
.testi__slide blockquote p { font: 500 var(--fs-h3)/1.55 var(--font-display); letter-spacing: -0.005em; color: var(--white); text-wrap: pretty; }
.testi__slide figcaption { display: grid; gap: 2px; margin-top: auto; }
.testi__name { font: 600 15px/20px var(--font-body); }
.testi__role { font-size: 14px; line-height: 22px; color: var(--text-inv-soft); }
.testi__ctrl { display: flex; align-items: center; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule-inv); }
.testi__count { margin-left: auto; font: 600 13px/16px var(--font-display); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Panel 9: FAQ
   -------------------------------------------------------------------------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5) clamp(40px, 8.4vw, 136px); align-items: start; }
.faq__head { display: grid; gap: 20px; position: sticky; top: 120px; }
.faq__head .h2 { max-width: 14ch; }
.faq__head p { max-width: 40ch; }
.faq__cta { margin-top: 12px; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q button { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; padding: 26px 0; text-align: left; font: 600 var(--fs-h3)/1.364 var(--font-display); color: var(--navy); }
.faq__q button > span:first-child { transition: transform var(--t-hover) var(--ease); }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.5s var(--ease), background-color var(--t-hover); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: var(--royal); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; visibility: hidden; transition: visibility 0s 0.55s; }
.faq__item.is-open .faq__a-inner { visibility: visible; transition-delay: 0s; }
.faq__a-inner p { max-width: 64ch; padding-bottom: 30px; }
@media (hover: hover) { .faq__q button:hover > span:first-child { transform: translateX(6px); } }

/* --------------------------------------------------------------------------
   Panel 10: news
   -------------------------------------------------------------------------- */
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--section-gap); }
.news__head > div:first-child { display: grid; gap: 20px; }
.news__track .carousel__item { width: calc((var(--content) - 2 * var(--space-3)) / 3); }
.news-card { display: grid; justify-items: start; color: var(--navy); }
.news-card__img { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--white); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.news-card__cat { margin-top: 24px; }
.news-card__title { margin-top: 10px; max-width: 24ch; }
.news-card__text { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--ink); max-width: 44ch; }
.news-card .link-arrow { margin-top: 20px; }
@media (hover: hover) {
  .news-card:hover .news-card__img img { transform: scale(1.05); }
  .news-card:hover .link-arrow svg { transform: translateX(4px); color: var(--royal); }
}
.carousel__ctrl--news { margin-top: var(--section-gap); gap: var(--space-4); }

/* --------------------------------------------------------------------------
   Panel 11: final CTA
   -------------------------------------------------------------------------- */
.cta { --cta-shade: #0d0d0d; position: relative; isolation: isolate; overflow: hidden; background: var(--cta-shade); padding-block: var(--section); }
.cta__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta__layer { position: absolute; inset: -11% 0; }
/* Monochrome treatment, after the Altufanulu banner: the photograph is turned black and white in CSS
   (the image file is untouched), lifted a little in contrast, and held under a flat neutral charcoal. */
.cta__layer img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(0.86); }
.cta__tint { position: absolute; inset: 0; background: var(--cta-shade); opacity: 0.56; }
/* copy on the left, form on the right, each centred against the other */
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); align-items: center; column-gap: clamp(48px, 7vw, 120px); }
.cta__body { display: grid; gap: var(--space-3); justify-items: start; }
.cta__body .h1 { max-width: 17ch; }
.cta__body .lead { max-width: 44ch; color: var(--white); }
.cta__call { margin-top: var(--space-2); }

/* phone link: clear outline on the photograph, fills white on hover */
.call-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 16px; min-height: 68px; padding: 10px 28px 10px 20px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: var(--radius-sm); color: var(--white); transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease); }
.call-btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--white); transform: scaleX(0); transform-origin: left center; transition: transform 0.6s var(--ease); }
.call-btn__icon { width: 24px; height: 24px; flex: none; transition: transform var(--t-hover) var(--ease); }
.call-btn__text { display: grid; gap: 2px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.4); transition: border-color var(--t-hover) var(--ease); }
.call-btn__label { font: 700 12px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.call-btn__num { font: 600 var(--fs-h3)/1.3 var(--font-display); letter-spacing: -0.005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) {
  .call-btn:hover { color: var(--navy); border-color: var(--white); }
  .call-btn:hover::before { transform: scaleX(1); }
  .call-btn:hover .call-btn__text { border-color: var(--rule); }
  .call-btn:hover .call-btn__icon { transform: rotate(-8deg) scale(1.06); }
}
.call-btn:active { transform: translateY(1px); }

/* enquiry form: a white card on the photograph */
.enq { position: relative; display: grid; gap: 20px; padding: clamp(28px, 3.2vw, 48px); background: var(--white); color: var(--ink); }
.enq :focus-visible { outline-color: var(--royal); }
.enq__mark { position: absolute; right: 0; top: 0; width: 44px; height: 44px; }
.enq__head { display: grid; gap: 6px; padding-right: 40px; }
.cta .enq__title { color: var(--navy); }
.enq__note { font-size: 14px; line-height: 22px; }
.enq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field label { font: 600 15px/20px var(--font-body); color: var(--navy); }
.field label span { color: var(--royal); }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; background: var(--grey); border: 1px solid rgba(7, 19, 92, 0.5); border-radius: var(--radius-sm); color: var(--ink); font: 400 16px/24px var(--font-body); -webkit-appearance: none; appearance: none; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease); }
.field textarea { height: auto; min-height: 116px; padding: 13px 16px; resize: vertical; }
.field select { padding-right: 48px; cursor: pointer; text-overflow: ellipsis; }
.field select:invalid, .field select.is-empty { color: rgba(18, 25, 52, 0.72); }
.select { position: relative; }
.select svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--navy); pointer-events: none; transition: transform var(--t-hover) var(--ease); }
.select:focus-within svg { transform: rotate(180deg); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--royal); box-shadow: 0 0 0 3px rgba(0, 100, 224, 0.22); }
/* errors do not rely on colour: a heavier NAVY edge, a mark and a written message */
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.field.is-invalid input:focus, .field.is-invalid select:focus, .field.is-invalid textarea:focus { box-shadow: inset 0 0 0 1px var(--navy), 0 0 0 3px rgba(0, 100, 224, 0.22); }
.field__error { display: flex; align-items: flex-start; gap: 8px; font: 600 14px/20px var(--font-body); color: var(--navy); }
.field__error:empty { display: none; }
.field__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; background: var(--navy); color: var(--white); border-radius: var(--radius-sm); font: 700 12px/1 var(--font-display); }
.enq__foot { display: grid; gap: 12px; margin-top: 4px; }
.btn--block { width: 100%; }
.cta .enq .btn--primary::before { background: var(--navy); }
.cta .enq .btn--primary:hover { color: var(--white); }
.enq__status { font: 600 14px/22px var(--font-body); color: var(--navy); }
.enq__status:empty { display: none; }

/* --------------------------------------------------------------------------
   Panel 12: footer
   -------------------------------------------------------------------------- */
/* Ground is logo-ink (#121934), the dark navy of the body text and the logo wordmark: one design-system
   token, no new shade. Everything on it is White, with Royal for the primary button and the logo mark. */
.ftr { --ftr-bg: var(--ink); background: var(--ftr-bg); font-size: 15px; line-height: 24px; }
/* Newsletter strip: logo icon | newsletter (copy on the left, the email field out to the right edge),
   centred on one line */
.ftr__top { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo nl"; align-items: center; gap: var(--space-4) clamp(32px, 4.6vw, 80px); padding-block: var(--footer-strip); border-bottom: 1px solid var(--rule-inv); }
/* the logo icon: the firm's own mark, unaltered. Royal on this ground is 3.2:1, enough for a mark. */
.ftr__logo { grid-area: logo; display: block; transition: opacity var(--t-hover) var(--ease); }
.ftr__logo img { display: block; width: 80px; height: 80px; }
@media (hover: hover) { .ftr__logo:hover { opacity: 0.82; } }
.nl { grid-area: nl; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(340px, 30vw, 460px)); align-items: center; gap: var(--space-2) clamp(24px, 3.4vw, 56px); }
.nl__copy { display: grid; gap: 6px; }
.nl__text { color: var(--text-inv-soft); max-width: 42ch; }
.nl__field { position: relative; }
.nl__row { display: flex; gap: 8px; }
.nl__input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius-sm); color: var(--white); font: 400 16px/24px var(--font-body); transition: border-color 0.3s; }
.nl__input::placeholder { color: var(--text-inv-soft); opacity: 1; }
.nl__input:hover, .nl__input:focus { border-color: var(--white); }
.nl__input[aria-invalid="true"] { border-color: var(--white); border-width: 2px; }
.nl__msg { position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--white); }

.ftr__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-4) var(--space-5); padding-block: var(--space-5); }
.ftr__h { font: 700 13px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.ftr__col ul { display: grid; gap: 8px; }
.ftr__col a, .ftr__legal a { position: relative; color: var(--text-inv-soft); transition: color 0.3s; }
.ftr__h a { color: var(--white); }
.ftr__col ul a::after, .ftr__legal a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform var(--t-hover) var(--ease); }
@media (hover: hover) {
  .ftr__col a:hover, .ftr__legal a:hover { color: var(--white); }
  .ftr__col ul a:hover::after, .ftr__legal a:hover::after { transform: scaleX(1); }
}
.ftr__col a[aria-current="page"] { color: var(--white); }
.ftr__contact { gap: 10px !important; }
.ftr__contact li:first-child a { font: 600 var(--fs-h3)/1.364 var(--font-display); color: var(--white); }
.ftr__contact address { color: var(--text-inv-soft); }

/* SEO blurb and rating band, after the Emily Trickey footer: one quiet paragraph on the left at a
   640px measure (a single column), the compact rating on the right, both centred on one line */
.ftr__meta { display: flex; align-items: center; justify-content: space-between; gap: 24px var(--space-5); padding-block: var(--space-4); border-top: 1px solid var(--rule-inv); }
.ftr__seo { max-width: 640px; font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, 0.62); }
.ftr__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px var(--space-4); padding-block: 24px 28px; border-top: 1px solid var(--rule-inv); font-size: 14px; line-height: 22px; color: var(--text-inv-soft); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ftr__nolink { cursor: help; }
.ftr__credit { display: inline-flex; align-items: center; gap: 8px; }
.ftr__credit img { width: 13px; height: 16px; image-rendering: auto; }

/* prototype notices */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; max-width: min(560px, calc(100vw - 32px)); padding: 14px 18px; background: var(--white); color: var(--navy); border: 1px solid var(--rule); border-left: 3px solid var(--royal); border-radius: var(--radius-sm); font: 400 14px/22px var(--font-body); transform: translate(-50%, 20px); opacity: 0; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { font-weight: 600; }

/* --------------------------------------------------------------------------
   Motion: scroll reveals (only when html.rv-on is set by the head script)
   -------------------------------------------------------------------------- */
.rv-on [data-rv], .rv-on [data-hero-in] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); will-change: opacity, transform; }
.rv-on [data-rv].is-in, .rv-on .hero.is-ready [data-hero-in] { opacity: 1; transform: none; }
.rv-on .hero.is-ready [data-hero-in] { transition-delay: calc(0.35s + var(--i, 0) * 120ms); }

/* the wipe sits on the inner layer: a clipped element would never report as visible to the observer */
.rv-on [data-rv="img"] { opacity: 1; transform: none; transition: none; background: transparent; }
.rv-on [data-rv="img"] .media__inner { clip-path: inset(0 0 100% 0); transition: clip-path 1.35s var(--ease-io); }
.rv-on [data-rv="img"].is-in .media__inner { clip-path: inset(0 0 0 0); }
.rv-on [data-rv="img"] img { transform: scale(1.16); transition: transform 1.9s var(--ease); }
.rv-on [data-rv="img"].is-in img { transform: none; }
/* keep the colour fade alongside the reveal zoom (the rule above would otherwise replace it) */
.rv-on .media--mono[data-rv="img"] img { transition: transform 1.9s var(--ease), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.rv-on [data-rv="card"] { transform: translateY(40px); }
/* the form card arrives first, then its rows settle in one after another */
.rv-on [data-st] { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
.rv-on .is-in [data-st] { opacity: 1; transform: none; transition-delay: calc(0.3s + var(--s, 0) * 80ms); }

/* headings: line by line, each line rising out of its own mask */
.rv-on [data-rv="lines"], .rv-on [data-hero-lines] { opacity: 1; transform: none; transition: none; }
.rv-on [data-rv="lines"]:not(.is-split), .rv-on [data-hero-lines]:not(.is-split) { visibility: hidden; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-line > span { display: block; transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--l, 0) * 95ms); will-change: transform; }
.is-in > .split-line > span, .hero.is-ready .split-line > span { transform: none; }
.hero.is-ready .split-line > span { transition-delay: calc(0.2s + var(--l, 0) * 110ms); }

.rv-on .hdr { opacity: 0; transition: transform 0.55s var(--ease), opacity 0.9s var(--ease) 0.1s; }
.rv-on .hdr.is-ready { opacity: 1; }
.rv-on .hero__video { transform: scale(1.08); transition: transform 2.6s var(--ease); }
.rv-on .hero.is-ready .hero__video { transform: none; }
.rv-on .hero__tint { opacity: 0.82; transition: opacity 2s var(--ease); }
.rv-on .hero.is-ready .hero__tint { opacity: var(--hero-tint, 0.56); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1420px) {
  .hdr__logo { padding-right: calc(var(--hdr-h) * var(--slash) + 20px); }
  .nav__link { padding-inline: 11px; }
  .nav__link::after { left: 11px; right: 11px; }
  .nav__item--dd .nav__link::after { right: 4px; }
  .hdr__util { gap: 14px; margin-left: 10px; padding-left: 18px; }
  .hdr__cta { padding-inline: 16px; }
}
@media (max-width: 1240px) {
  .hdr__nav { display: none; }
  .hdr__util { margin-left: auto; padding-left: 0; }
  .hdr__util::before { display: none; }
  .hdr__burger { display: block; }
}
@media (min-width: 1241px) { .mnav { display: none; } }

@media (max-width: 1180px) {
  /* copy moves above the field so the strip keeps its three parts */
  .nl { grid-template-columns: minmax(0, 1fr); }
  .nl__field { max-width: 520px; }
}

@media (max-width: 1100px) {
  .news__track .carousel__item { width: calc((var(--content) - var(--space-3)) / 2); }
  .ftr__cols { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .cta__grid { grid-template-columns: 1fr; row-gap: var(--space-5); }
  .enq { width: 100%; }
}

@media (max-width: 900px) {
  :root { --hdr-h: 76px; }
  .hdr.is-solid { --hdr-h: 68px; }
  .hdr__logo img { height: 28px; }
  .hdr.is-solid .hdr__logo img { height: 26px; }
  .hdr__logo { padding-right: calc(var(--hdr-h) * var(--slash) + 20px); }

  .hero { height: auto; min-height: min(100svh, 820px); max-height: none; }
  .hero__inner { padding-top: calc(var(--hdr-h) + 72px); padding-bottom: 72px; }

  .about__grid, .why__grid, .faq__grid { grid-template-columns: 1fr; }
  .about__body, .why__body { gap: var(--space-4); padding-block: 0; }
  .about__media { --ratio: 90%; }
  .why__media .media { --ratio: 85%; }
  .faq__head { position: static; }
  .faq__head .h2 { max-width: none; }

  .testi { grid-template-columns: 1fr; min-height: 0; }
  .testi__media { aspect-ratio: 16 / 10; }
  .testi__inner { max-width: none; padding-inline: var(--gutter); }

  .usp__head { align-items: flex-start; flex-direction: column; gap: var(--space-3); }
  .nl__field { max-width: none; }
  .nl__msg { position: static; margin-top: 8px; }
  .ftr__meta { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 32px; }
}

@media (max-width: 640px) {
  .hdr__phone span { display: none; }
  .hdr__phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--rule-inv); border-radius: var(--radius-sm); }
  .hdr__cta { display: none; }
  .hdr__util { gap: 8px; }

  .sec-foot .btn, .about__text .btn, .why__text .btn, .about__text > div, .why__text > div, .faq__cta, .faq__cta .btn { width: 100%; }

  .pa__track .carousel__item { width: 78vw; }
  .team__track .carousel__item { width: 70vw; }
  .news__track .carousel__item { width: 84vw; }
  .carousel__track { gap: var(--space-2); }
  .carousel__count { display: none; }
  .arrow-btn { width: 48px; height: 48px; }
  .usp-card { width: 78vw; padding: 24px 24px 28px; }

  .news__head .carousel__arrows { display: none; }
  .carousel__ctrl--news { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .carousel__ctrl--news .carousel__progress { flex: none; }

  .faq__q button { padding: 22px 0; }
  .call-btn { width: 100%; }
  .cta__call { width: 100%; }
  .enq__row { grid-template-columns: 1fr; }
  .enq { padding: 28px 20px; }
  .ftr__cols { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
  .ftr__top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "nl"; }
  .ftr__logo img { width: 64px; height: 64px; }
  .nl__row { flex-direction: column; }
  .nl__input { flex: none; width: 100%; }
  .nl__row .btn { width: 100%; }
  .ftr__bar { flex-direction: column; align-items: flex-start; }
}
