/* =========================================================
   Emily Trickey, Barrister — homepage
   Tokens from the Emily Trickey design system
   (claude.ai/artifact/7uUCG2d1326MituNMu2ZAm)
   ========================================================= */

@font-face {
  font-family: "Loreka";
  src: url("../fonts/Loreka.woff") format("woff"), url("../fonts/Loreka.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  /* colour */
  --white: #ffffff;
  --grey: #f8f9fa;
  --charcoal: #0f0f10;
  --burgundy: #6b0f25;
  --feintburgundy: #d8c2c8;
  --ink-soft: rgba(15, 15, 16, .72);   /* 8.9:1 on white */
  --rule: rgba(15, 15, 16, .16);
  --rule-light: rgba(255, 255, 255, .22);

  /* type */
  --serif: "Loreka", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.35rem + 2vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .5vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --fs-body: 1.0625rem;  /* 17px */
  --fs-sm: .9375rem;     /* 15px */
  --fs-label: .8125rem;  /* 13px */

  /* space */
  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px;
  --space-10: 40px; --space-16: 64px; --space-24: 96px;
  --section: clamp(var(--space-16), 4rem + 4vw, 9rem);
  --gutter: clamp(20px, 4.5vw, 72px);
  --container: 1320px;

  /* radius */
  --radius-none: 0px;
  --radius-sm: 2px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .9s;

  --header-h: 88px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
figure { margin: 0; }
figure > picture, .hero__media picture, .cta__media picture { display: block; width: 100%; height: 100%; }
address { font-style: normal; }
svg path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }

::selection { background: var(--burgundy); color: var(--white); }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; border-radius: var(--radius-sm); }
.on-dark :focus-visible, .hero :focus-visible, .cta__body :focus-visible, .footer :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--burgundy); color: var(--white); padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.center { text-align: center; }
.section { padding-block: var(--section); }
.section--grey { background: var(--grey); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.4;
  color: var(--burgundy); margin-bottom: var(--space-6);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow--light { color: var(--white); }

.h2 {
  font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.12;
  letter-spacing: -.01em; text-wrap: balance; margin-bottom: var(--space-6);
}
.h3, h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
p, li, dd, dt, blockquote { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--burgundy); font-weight: 500; font-size: var(--fs-sm);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.text-link svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- buttons: minimal, all caps ---------- */
.btn {
  --btn-bg: var(--burgundy); --btn-fg: var(--white); --btn-bd: var(--burgundy);
  --btn-bg-h: var(--charcoal); --btn-fg-h: var(--white); --btn-bd-h: var(--charcoal);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 30px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .16em; line-height: 1.2;
  text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn__label { position: relative; display: block; overflow: hidden; height: 1.2em; line-height: 1.2; }
.btn__roll { display: flex; flex-direction: column; transition: transform .5s var(--ease-out); }
.btn__roll > span { display: block; height: 1.2em; }
.btn__chip { position: relative; width: 14px; height: 14px; flex: none; overflow: hidden; }
.btn__chip svg { position: absolute; inset: 0; width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.btn__chip svg + svg { transform: translateX(-120%); }
@media (hover: hover) {
  .btn:hover { background: var(--btn-bg-h); color: var(--btn-fg-h); border-color: var(--btn-bd-h); }
  .btn:hover .btn__roll { transform: translateY(-50%); }
  .btn:hover .btn__chip svg:first-child { transform: translateX(120%); }
  .btn:hover .btn__chip svg + svg { transform: translateX(0); }
}
.btn:focus-visible .btn__chip svg:first-child { transform: translateX(120%); }
.btn:focus-visible .btn__chip svg + svg { transform: translateX(0); }

.btn--secondary {
  --btn-bg: transparent; --btn-fg: var(--burgundy); --btn-bd: var(--burgundy);
  --btn-bg-h: var(--burgundy); --btn-fg-h: var(--white); --btn-bd-h: var(--burgundy);
}
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.6);
  --btn-bg-h: var(--white); --btn-fg-h: var(--charcoal); --btn-bd-h: var(--white);
}
/* on photography, a charcoal hover would vanish into the image */
.hero .btn--primary { --btn-bg-h: var(--white); --btn-fg-h: var(--burgundy); --btn-bd-h: var(--white); }
.btn--sm { height: 42px; padding: 0 22px; gap: 12px; font-size: .75rem; }
.btn--block { width: 100%; justify-content: space-between; }

.arrow-btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: transparent; color: var(--charcoal);
  border: 1px solid var(--charcoal); border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), opacity .3s;
}
.arrow-btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.arrow-btn:hover:not(:disabled) { background: var(--charcoal); color: var(--white); }
.arrow-btn[data-slider-prev]:hover svg { transform: translateX(-3px); }
.arrow-btn[data-slider-next]:hover svg { transform: translateX(3px); }
.arrow-btn:disabled { opacity: .3; cursor: default; }
.arrows { display: flex; gap: 10px; }

/* =========================================================
   PANEL 1 — HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  transition: transform .6s var(--ease-out), background-color .5s var(--ease-out), color .5s var(--ease-out), box-shadow .5s;
}
.site-header__inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  max-width: calc(1600px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.site-header__logo { display: block; width: clamp(176px, 14vw, 216px); justify-self: center; }
.site-nav { justify-self: start; }
.site-header__logo img { width: 100%; height: auto; }
.logo-dark { display: none !important; }
.site-nav ul { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.site-nav a, .site-header__phone {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; position: relative; padding-block: 8px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.site-header__phone { letter-spacing: .12em; display: inline-flex; align-items: center; gap: 10px; }
.site-header__phone-icon { width: 16px; height: 16px; flex: none; }
.site-header__phone-icon path { stroke-linejoin: round; stroke-linecap: round; }
.site-header__phone:hover { text-decoration: underline; text-underline-offset: 6px; }

.site-header.is-solid { background: var(--white); color: var(--charcoal); box-shadow: 0 1px 0 var(--rule); }
.site-header.is-solid .logo-light { display: none !important; }
.site-header.is-solid .logo-dark { display: block !important; }
.site-header.is-solid .btn--ghost-light {
  --btn-bg: var(--burgundy); --btn-fg: var(--white); --btn-bd: var(--burgundy);
  --btn-bg-h: var(--charcoal); --btn-fg-h: var(--white); --btn-bd-h: var(--charcoal);
}
.site-header.is-hidden { transform: translateY(-100%); }

.menu-toggle {
  display: none; align-items: center; gap: 12px; justify-self: end;
  background: none; border: 0; padding: 10px 0; cursor: pointer; color: inherit;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.menu-toggle__lines { position: relative; width: 26px; height: 10px; }
.menu-toggle__lines span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-toggle__lines span:first-child { top: 0; }
.menu-toggle__lines span:last-child { top: 8.5px; }
.menu-open .menu-toggle__lines span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__lines span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--white); color: var(--charcoal);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu__nav li { border-bottom: 1px solid var(--rule); overflow: hidden; }
.mobile-menu__nav a {
  display: block; padding: 14px 0; text-decoration: none;
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.15;
  transform: translateY(105%); transition: transform .7s var(--ease-out);
}
.menu-open .mobile-menu__nav a { transform: none; }
.menu-open .mobile-menu__nav li:nth-child(2) a { transition-delay: .06s; }
.menu-open .mobile-menu__nav li:nth-child(3) a { transition-delay: .12s; }
.menu-open .mobile-menu__nav li:nth-child(4) a { transition-delay: .18s; }
.menu-open .mobile-menu__nav li:nth-child(5) a { transition-delay: .24s; }
.mobile-menu__foot { display: grid; gap: 16px; }
.mobile-menu__foot .btn { justify-content: space-between; }
.mobile-menu__phone { font-size: 1.25rem; text-decoration: none; }
.menu-open .site-header { background: var(--white); color: var(--charcoal); box-shadow: none; transform: none; }
.menu-open .site-header .logo-light { display: none !important; }
.menu-open .site-header .logo-dark { display: block !important; }
body.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .site-nav, .site-header__actions { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__logo { justify-self: start; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 767px) { :root { --header-h: 72px; } }

/* Opening logo: a fixed copy of the header wordmark that travels from the
   centre of the hero into the header as the visitor scrolls. */
.hero-logo { display: none; }
.js .hero-logo {
  display: block; position: fixed; top: 0; left: 0; z-index: 101;
  transform-origin: 0 0; pointer-events: none; will-change: transform;
}
.hero-logo img { display: block; width: 100%; height: auto; }
.js [data-nav-item] { opacity: 0; }
.site-header:focus-within [data-nav-item] { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }

/* =========================================================
   PANEL 2 — HERO (Marlowe composition)
   ========================================================= */
.hero { position: relative; color: var(--white); background: var(--charcoal); }
.js .hero { height: calc(100vh + 90vh); height: calc(100svh + 90vh); }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 30%; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; opacity: var(--hero-ov, 1);
  background:
    linear-gradient(180deg, rgba(15,15,16,.38) 0%, rgba(15,15,16,0) 18%),
    linear-gradient(0deg, rgba(15,15,16,.8) 0%, rgba(15,15,16,.42) 32%, rgba(15,15,16,0) 58%);
}
.hero__content {
  width: 100%; max-width: 980px; margin-inline: auto; padding: 0 var(--gutter) clamp(72px, 12vh, 140px);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero__eyebrow { margin-bottom: 22px; }
.hero__title {
  font-family: var(--serif); font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line__inner { display: block; }
.hero__text { max-width: 540px; font-size: var(--fs-lead); line-height: 1.55; color: rgba(255,255,255,.9); margin-bottom: 0; }
@media (max-width: 480px) {
  .hero__title { font-size: 9.6vw; }
  .hero__title .line__inner { white-space: nowrap; }
}
@media (max-width: 767px) {
  .hero__media img { object-position: 42% 20%; }
  .hero__media::after {
    background: linear-gradient(0deg, rgba(15,15,16,.9) 0%, rgba(15,15,16,.62) 45%, rgba(15,15,16,.1) 72%, rgba(15,15,16,.35) 100%);
  }
  .hero__text { font-size: 1rem; }
}

/* =========================================================
   PANEL 3 — ABOUT (after Avro Studio's post-hero intro)
   ========================================================= */
.intro { padding-block: clamp(80px, 5rem + 4vw, 150px); background: var(--white); }
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 55fr);
  column-gap: clamp(48px, 7.4vw, 108px); align-items: stretch;
}
.intro__media { position: relative; }
.intro__figure { position: relative; width: 100%; height: 100%; min-height: 420px; overflow: hidden; background: var(--grey); }
.intro__figure picture, .intro__figure img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__figure img { object-fit: cover; object-position: 50% 70%; }
.intro__body { --intro-measure: 40rem; display: flex; flex-direction: column; }
.intro__statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.375rem, .6rem + 1.42vw, 2.125rem); line-height: 1.3; letter-spacing: -.01em;
  max-width: var(--intro-measure); margin: 0; text-wrap: pretty; color: var(--charcoal);
}
.intro__statement .sw { display: inline-block; white-space: nowrap; }
.intro__statement .sc { opacity: .2; }
.intro__text { margin: 28px 0 0; max-width: var(--intro-measure); color: var(--ink-soft); }
.intro__text + .intro__text { margin-top: 18px; }
.intro__cta { margin-top: clamp(40px, 4vw, 56px); }
.stats {
  margin: clamp(40px, 4vw, 56px) 0 0;
  display: flex; flex-wrap: wrap; gap: 24px clamp(40px, 5vw, 80px);
}
.stat { display: flex; flex-direction: column-reverse; }
.stat__num {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.375rem, 1.65rem + 2vw, 3.375rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--charcoal);
}
.stat__num span { display: inline-block; min-width: .6em; white-space: nowrap; }
.stat__label { margin-top: 6px; font-size: 1rem; line-height: 1.4; color: var(--ink-soft); }

@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { display: none; }
}
@media (max-width: 560px) {
  .stats { flex-direction: column; gap: 28px; }
}

/* =========================================================
   PANEL 4 — PRACTICE AREAS CAROUSEL
   ========================================================= */
.practice__intro { color: var(--ink-soft); max-width: 56ch; margin-inline: auto; }
.pa-grid-wrap { margin-top: clamp(48px, 5vw, 72px); }
.pa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.pa-card { min-width: 0; }
.pa-card__link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; background: var(--white); color: var(--charcoal);
  -webkit-user-drag: none;
}
.pa-card__media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.pa-card__img, .pa-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.pa-card__img img { transition: transform 1.1s var(--ease-out); }
.pa-card__img--colour { opacity: 0; transition: opacity .7s var(--ease-out); }
.pa-card__body { position: relative; padding: 24px 28px 26px; display: grid; gap: 10px; flex: 1; border-top: 3px solid transparent; transition: border-color .5s var(--ease-out); }
.pa-card__body p { color: var(--ink-soft); font-size: var(--fs-sm); padding-right: 52px; margin: 0; }
.pa-card__arrow {
  position: absolute; right: 24px; bottom: 26px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--burgundy); color: var(--burgundy); border-radius: var(--radius-sm);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
.pa-card__arrow svg { width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
@media (hover: hover) {
  .pa-card__link:hover .pa-card__img img { transform: scale(1.06); }
  .pa-card__link:hover .pa-card__img--colour { opacity: 1; }
  .pa-card__link:hover .pa-card__body { border-top-color: var(--burgundy); }
  .pa-card__link:hover .pa-card__arrow { background: var(--burgundy); color: var(--white); }
  .pa-card__link:hover .pa-card__arrow svg { transform: translateX(3px); }
}
.pa-card__link:focus-visible { outline-offset: 4px; }
.pa-card__link:focus-visible .pa-card__img--colour { opacity: 1; }

.practice__cta { margin-top: clamp(48px, 5vw, 72px); }

@media (max-width: 699px) {
  .pa-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PANEL 5 — WORKING WITH EMILY (dark connected grid)
   Burgundy fails on charcoal (1.6:1), so accents here use feintburgundy (11:1).
   ========================================================= */
.usp { background: var(--charcoal); color: var(--white); }
.usp__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(40px, 6vw, 96px);
  align-items: end; margin-bottom: clamp(48px, 5vw, 72px);
}
.usp__title {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance; margin: 0; max-width: 16ch;
}
.usp__title .accent { color: var(--feintburgundy); }
.usp__text { margin: 0; color: rgba(255,255,255,.72); font-size: var(--fs-lead); line-height: 1.55; max-width: 40ch; }

/* one grid, shared hairlines: the grid draws top/left, each cell right/bottom */
.usp__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16);
}
.usp-cell {
  position: relative; padding: clamp(32px, 3.4vw, 52px) clamp(28px, 3vw, 44px) clamp(36px, 3.6vw, 56px);
  border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16);
  background: var(--charcoal);
  transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s ease, transform 1s var(--ease-out);
}
.usp-cell__icon {
  display: block; width: 28px; height: 28px; margin-bottom: clamp(28px, 3vw, 44px); color: var(--feintburgundy);
}
.usp-cell__icon * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.usp-cell__title {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: clamp(1.375rem, 1.15rem + .55vw, 1.625rem); line-height: 1.2; margin: 0 0 12px;
}
.usp-cell__text { margin: 0; color: rgba(255,255,255,.7); font-size: var(--fs-sm); line-height: 1.65; max-width: 36ch; }
.js .usp-cell[data-reveal] { transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s ease, transform 1s var(--ease-out); }
@media (hover: hover) {
  .usp-cell:hover { background: #1b1216; box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); }
}

@media (max-width: 1024px) {
  .usp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .usp__head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .usp__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PANEL 6 — WHY CHOOSE (pinned card deck, white)
   Default is a plain sequence of cards. main.js adds .is-stacked when the
   viewport can hold the intro plus one card, and drives the cover animation.
   ========================================================= */
.deck { position: relative; background: var(--white); padding-block: clamp(56px, 3rem + 3vw, 104px); }
.deck__intro { text-align: center; max-width: calc(760px + var(--gutter) * 2); }
.deck__intro .eyebrow { justify-content: center; }
.deck__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance; margin: 0 auto 20px; max-width: 16ch;
}
.deck__text { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.55; max-width: 56ch; margin: 0 auto; }

.deck__stage-wrap { padding-inline: var(--gutter); margin-top: clamp(40px, 5vw, 64px); }
.deck__stage { list-style: none; margin: 0 auto; padding: 0; width: min(760px, 100%); display: grid; gap: 16px; }
.deck-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(32px, 4vw, 56px) clamp(24px, 5vw, 72px);
  background: var(--burgundy); color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);   /* keeps stacked edges distinct */
  transition: background-color .5s var(--ease-out);
}
@media (hover: hover) { .deck-card:hover { background: #7a1830; } }   /* a step lighter */
.deck-card--2 { background: var(--charcoal); }
@media (hover: hover) { .deck-card--2:hover { background: #1e1e20; } }
.deck-card__count { margin: 0; font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; color: rgba(255,255,255,.72); }
.deck-card__count span { color: var(--white); }
.deck-card__rule { display: block; width: 32px; height: 1px; background: var(--feintburgundy); margin: 20px 0 22px; }
.deck-card__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem); line-height: 1.12; letter-spacing: -.01em;
  max-width: 22ch; margin: 0 0 16px;
}
.deck-card__text { margin: 0; max-width: 44ch; color: rgba(255,255,255,.86); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.6; }
.deck__after { display: flex; justify-content: center; margin-top: clamp(32px, 3.5vw, 48px); padding-inline: var(--gutter); }

/* stacked (pinned) mode: the track is made tall, the pin sticks inside it */
.deck.is-stacked { padding-top: 0; }
/* The pinned frame is only as tall as its content (intro + one card), so when the
   deck releases the button follows straight on. Incoming cards wait below the
   bottom of the screen, not below the frame, so they still rise from off-screen. */
.deck.is-stacked .deck__pin {
  position: sticky; top: 0;
  padding-top: calc(var(--header-h) + clamp(8px, 2vh, 24px));
}
.deck.is-stacked .deck__stage-wrap { margin-top: clamp(24px, 4.5vh, 56px); }
.deck.is-stacked .deck__stage { display: block; position: relative; height: var(--card-h, 360px); }
.deck.is-stacked .deck-card { position: absolute; inset: 0; will-change: transform; }
.deck.is-stacked .deck-card:not(:first-child) { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 -16px 32px -18px rgba(15, 15, 16, .45); }
.deck.is-stacked .deck__after { margin-top: clamp(32px, 3.5vw, 48px); }

@media (max-width: 480px) {
  .deck-card__rule { margin: 16px 0 18px; }
}
/* short laptop screens (13-inch, 720-800px tall): one step down so the pinned deck fits */
@media (max-height: 820px) and (min-width: 600px) {
  .deck__title { font-size: clamp(2rem, 1.3rem + 1.6vw, 2.75rem); margin-bottom: 14px; }
  .deck__text { font-size: 1.0625rem; }
  .deck .eyebrow { margin-bottom: 16px; }
  .deck-card { padding: 28px clamp(24px, 4vw, 48px); }
  .deck-card__title { font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem); margin-bottom: 12px; }
  .deck-card__rule { margin: 14px 0 16px; }
}

/* =========================================================
   PANEL 7 — HOW EMILY WORKS (warm editorial)
   A soft blush wash (feintburgundy at ~22% on white) keeps it light but warmer
   than the white and grey bands around it. Charcoal on it reads at ~18:1,
   burgundy at ~11:1.
   ========================================================= */
.approach { background: #f8f1f2; padding-block: var(--section); }
.approach__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px); align-items: center;
}
.approach__media { position: relative; }
.approach__figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey); }
.approach__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

.approach__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 4.25rem); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 22px;
}
.approach__title .accent { color: var(--burgundy); }
.approach__intro { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.55; max-width: 40ch; margin: 0 0 clamp(36px, 4vw, 56px); }

.principles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 3.5vw, 56px);
}
.principle {
  position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 12px; align-content: start;
  padding: clamp(22px, 2.2vw, 30px) 0; border-top: 1px solid rgba(107, 15, 37, .2);
}
.principle::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--burgundy);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.principle__num { grid-row: span 2; font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; color: var(--burgundy); }
.principle__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + .45vw, 1.625rem); line-height: 1.25; margin: 0 0 8px; transition: color .4s var(--ease-out); }
.principle__text { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.65; }
@media (hover: hover) {
  .principle:hover::before { transform: scaleX(1); }
  .principle:hover .principle__title { color: var(--burgundy); }
}

@media (max-width: 960px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__media { max-width: 560px; }
  .approach__figure { aspect-ratio: 16 / 11; }
}
@media (max-width: 600px) {
  .principles { grid-template-columns: 1fr; }
}

/* =========================================================
   PANEL 8 — FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 140px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__head > p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 24px; max-width: 40ch; }
.accordion { border-top: 1px solid var(--charcoal); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-item h3 { font-size: inherit; font-family: inherit; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.3;
  transition: color .4s var(--ease-out);
}
.acc-btn:hover { color: var(--burgundy); }
.acc-icon { position: relative; flex: none; width: 24px; height: 24px; transition: color .4s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] { color: var(--burgundy); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease-out), visibility 0s .55s; }
.acc-panel.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.acc-panel__inner { overflow: hidden; }
.acc-panel__inner p { color: var(--ink-soft); padding: 0 64px 30px 0; max-width: 68ch; margin: 0; }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .acc-panel__inner p { padding-right: 0; }
}

/* =========================================================
   PANEL 9 — CTA + FORM
   ========================================================= */
.cta { position: relative; isolation: isolate; color: var(--white); padding-block: var(--section); background: var(--charcoal); overflow: hidden; }
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,16,.9) 0%, rgba(15,15,16,.78) 50%, rgba(15,15,16,.62) 100%); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.cta__body .h2 { color: var(--white); }
.cta__text { color: rgba(255,255,255,.86); font-size: var(--fs-lead); max-width: 46ch; margin-bottom: 32px; }
.cta__details { border-top: 1px solid var(--rule-light); margin-bottom: 0; }
.cta__details li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.cta__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); padding-top: 3px; }
.cta__details a { text-decoration: none; overflow-wrap: anywhere; }
.cta__details a:hover { text-decoration: underline; text-underline-offset: 5px; }

.enquiry { background: var(--white); color: var(--charcoal); padding: clamp(28px, 3.5vw, 52px); display: grid; gap: 20px; }
.enquiry__title { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); }
.enquiry__note { font-size: var(--fs-sm); color: var(--ink-soft); margin: -8px 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.field label span { color: var(--burgundy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--white); border: 1px solid rgba(15,15,16,.45); border-radius: var(--radius-sm);
  font-size: 1rem; line-height: 1.4; color: var(--charcoal);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--charcoal); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--charcoal); border-bottom: 1.5px solid var(--charcoal); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 44px; cursor: pointer; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--burgundy); background: #fbf6f7; }
.field__error { margin: 0; min-height: 0; font-size: .875rem; color: var(--burgundy); font-weight: 500; }
.field__error:empty { display: none; }
.enquiry__status { margin: 0; font-size: var(--fs-sm); }
.enquiry__status:empty { display: none; }
.enquiry__status.is-warning { padding: 14px 16px; background: var(--grey); border-left: 3px solid var(--burgundy); }
.enquiry__status.is-success { padding: 14px 16px; background: var(--grey); border-left: 3px solid var(--charcoal); }

@media (max-width: 1000px) {
  .cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .cta__details li { grid-template-columns: 1fr; gap: 2px; }
}

/* =========================================================
   PANEL 10 — FOOTER
   ========================================================= */
.footer { --footer-space: clamp(48px, 5.5vw, 80px); background: var(--charcoal); color: var(--white); padding-top: var(--footer-space); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
/* equal space above and below the column content */
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr)); gap: clamp(32px, 4vw, 64px); padding-bottom: var(--footer-space); }
.footer__logo { display: block; width: 220px; }
.footer__tagline { margin: 24px 0 0; max-width: 34ch; font-size: var(--fs-sm); line-height: 1.65; color: rgba(255,255,255,.66); }
.footer__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.66); margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col li, .footer__col address { font-size: var(--fs-sm); }
.footer__col address, .footer__col li:not(:has(a)) { color: rgba(255,255,255,.8); }

/* SEO blurb + rating band (Gullickson .f-meta proportions) */
.footer__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 64px;
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,.16);
}
.footer__blurb { margin: 0; max-width: 640px; font-size: .8125rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer__rating { display: flex; flex-shrink: 0; align-items: center; gap: 10px; font-size: .8125rem; color: rgba(255,255,255,.8); }
.footer__rating[hidden] { display: none; }
a.footer__rating:hover { color: var(--white); }
.footer__stars { display: inline-flex; gap: 2px; color: var(--white); }
.footer__stars svg path { fill: currentColor; stroke: none; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 28px 0; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .8125rem; color: rgba(255,255,255,.7);
}
.footer__bottom p { margin: 0; }
.footer__fine { display: grid; gap: 4px; }
.footer__liability { color: rgba(255,255,255,.55); font-size: .75rem; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__credit a { display: inline-flex; align-items: center; gap: 8px; }
.footer__credit img { width: 13px; height: 16px; flex: none; }

@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 840px) {
  .footer__meta { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 0; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- toast (pending pages) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 140%);
  background: var(--charcoal); color: var(--white); padding: 14px 20px; font-size: var(--fs-sm);
  max-width: calc(100vw - 32px); border-left: 3px solid var(--burgundy);
  visibility: hidden; transform: translate(-50%, calc(100% + 48px));
  transition: transform .5s var(--ease-out), visibility 0s .5s;
}
.toast.is-visible { visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* =========================================================
   MOTION
   ========================================================= */
/* Hero opening (scroll-driven parts are set in main.js) */
.js .hero__media img { opacity: 0; transition: opacity 1.2s ease; }
.is-loaded .hero__media img { opacity: 1; }
.js .hero-logo img { opacity: 0; transform: translateY(14px); transition: opacity 1.4s ease .25s, transform 1.6s var(--ease-out) .25s; }
.is-loaded .hero-logo img { opacity: 1; transform: none; }
.js [data-hero-copy] { opacity: 0; }
.js .hero__title .line__inner { transform: translateY(125%); }

/* Scroll reveals */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js .split .word__inner { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease-out); }
.js .split.is-in .word__inner { transform: none; }
.js .reveal-image { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-in-out); }
.js .reveal-image img { transform: scale(1.15); transition: transform 1.8s var(--ease-out); }
.js .reveal-image.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-image.is-in img { transform: scale(1); }
/* About photo: a soft settle rather than a wipe. Fades in while easing up,
   and the photo itself eases from 1.04 to 1 inside its frame (no overflow). */
.js .reveal-soft { opacity: 0; transform: translateY(24px); transition: opacity 1.2s cubic-bezier(.25, .46, .45, .94), transform 1.3s cubic-bezier(.22, 1, .36, 1); }
.js .reveal-soft img { transform: scale(1.04); transition: transform 1.3s cubic-bezier(.22, 1, .36, 1); }
.js .reveal-soft.is-in { opacity: 1; transform: none; }
.js .reveal-soft.is-in img { transform: none; }
.js .stat__num span { opacity: 0; filter: blur(10px); transform: translateY(18px); transition: opacity .9s ease, filter 1s ease, transform 1s var(--ease-out); }
.js .stats.is-in .stat__num span { opacity: 1; filter: none; transform: none; }
.js .stats.is-in .stat:nth-child(2) .stat__num span { transition-delay: .12s; }
.js .stats.is-in .stat:nth-child(3) .stat__num span { transition-delay: .24s; }
.js [data-pa-grid] .pa-card { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform 1s var(--ease-out); }
.js [data-pa-grid].is-in .pa-card { opacity: 1; transform: none; }
.js [data-pa-grid].is-in .pa-card:nth-child(2) { transition-delay: .1s; }
.js [data-pa-grid].is-in .pa-card:nth-child(3) { transition-delay: .2s; }
.js [data-pa-grid].is-in .pa-card:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .hero__media img, .js .hero__title .line__inner, .js [data-hero-copy], .js [data-nav-item],
  .js [data-reveal], .js [data-pa-grid] .pa-card, .js .split .word__inner, .js .reveal-image, .js .reveal-image img, .js .reveal-soft, .js .reveal-soft img, .js .stat__num span {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .js .hero { height: auto; }
  .js .hero-logo { display: none; }
  .intro__statement .sc { opacity: 1 !important; }
  .js .stat__num span { filter: none !important; }
}
