/* =========================
   Legato.css — Full site
   ========================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #e9e9e9;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* NAVIGATION */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
}

.nav__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}

.nav__logo-img:hover {
  transform: scale(1.04);
  opacity: 0.85;
}

.nav__logo-img--footer {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.nav__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.88);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
}

.nav__logo-text em {
  font-style: normal;
  font-weight: 300;
  color: rgba(0,0,0,.55);
}

.nav__links {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav__links a {
  text-decoration: none;
  color: rgba(0,0,0,.72);
  font-size: 14px;
  letter-spacing: .03em;
  transition: color .15s;
}

.nav__links a:hover {
  color: #000;
}

.nav__cta {
  height: 38px;
  padding: 0 18px !important;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  background: rgba(0,0,0,.88);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  transition: background .15s, transform .15s !important;
}

.nav__cta:hover {
  background: rgba(0,0,0,.96) !important;
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: 8px;
  transition: background .15s;
}

.nav__burger:hover {
  background: rgba(0,0,0,.06);
}

.nav__burger span {
  display: block;
  height: 2px;
  background: rgba(0,0,0,.75);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}

.nav__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */

.hero {
  --hero-photo: url("park-1920.webp");
  --hero-frame-top: calc(68px + clamp(14px, 2vw, 24px));
  --hero-frame-x: clamp(12px, 1.7vw, 28px);
  --hero-frame-bottom: clamp(20px, 3vw, 42px);
  --grid-line-color: rgba(114,88,56,.16);
  --mask-size: 150vh;
  --mask-x: 0vw;
  --mask-y: 0vh;
  --image-scale: 1.02;
  --image-opacity: 0;
  --mask-opacity: .96;
  --masked-layer-opacity: 1;
  --full-image-opacity: 0;
  --white-overlay: 1;
  --base-copy-color: #111;
  --base-kicker-color: rgba(0,0,0,.5);
  --base-lead-color: rgba(0,0,0,.66);
  --base-meta-color: rgba(0,0,0,.52);
  --base-primary-bg: rgba(0,0,0,.88);
  --base-primary-color: #fff;
  --base-primary-border: rgba(0,0,0,.88);
  --base-ghost-bg: rgba(255,255,255,.55);
  --base-ghost-color: rgba(0,0,0,.85);
  --base-ghost-border: rgba(0,0,0,.16);
  height: 550vh;
  position: relative;
  background: #fff;
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.hero__layer {
  position: absolute;
  inset: var(--hero-frame-top) var(--hero-frame-x) var(--hero-frame-bottom);
  height: auto;
  width: auto;
  overflow: hidden;
}

.hero__layer--base {
  z-index: 1;
  background: #fdfdfd;
}

.hero__layer--base::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(247,245,239,.94), rgba(247,245,239,.76) 45%, rgba(247,245,239,.22) 70%, rgba(247,245,239,0)),
    radial-gradient(circle at 82% 52%, rgba(210,205,194,.30), rgba(210,205,194,0) 34%);
  opacity: var(--white-overlay);
  pointer-events: none;
}

.hero__layer--overlay {
  z-index: 5;
  pointer-events: none;
  /* The masked layer fades out once the full hero image has taken over. */
  opacity: var(--masked-layer-opacity);
  /* This is the master mask that reveals the image AND the white text */
  -webkit-mask-image: url("UK-map-v25.webp");
  mask-image: url("UK-map-v25.webp");
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--mask-size) auto;
  mask-size: var(--mask-size) auto;
  -webkit-mask-position: calc(60% + var(--mask-x)) calc(50% + var(--mask-y));
  mask-position: calc(60% + var(--mask-x)) calc(50% + var(--mask-y));
  will-change: -webkit-mask-size, mask-size;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Inside the masked layer, the background should be visible */
  opacity: 1;
  transform: scale(var(--image-scale));
  transform-origin: center;
  transition: transform .02s linear;
}

.hero__full-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: var(--full-image-opacity);
  transform: scale(var(--image-scale));
  transform-origin: center;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero__image {
  height: 100%;
  width: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero__full-image {
  height: 100%;
  width: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: calc(.26 + (var(--image-opacity) * .06));
  pointer-events: none;
  background:
    repeating-linear-gradient(to right, transparent 0 calc(12.5% - .5px), var(--grid-line-color) calc(12.5% - .5px) calc(12.5% + .5px), transparent calc(12.5% + .5px) 12.5%),
    repeating-linear-gradient(to bottom, transparent 0 calc(16.666% - .5px), var(--grid-line-color) calc(16.666% - .5px) calc(16.666% + .5px), transparent calc(16.666% + .5px) 16.666%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.hero__inner {
  width: min(1180px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: clamp(100px, 12vw, 140px) clamp(24px, 5vw, 64px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero__copy {
  position: relative;
  z-index: 10;
  max-width: 690px;
  pointer-events: auto;
}

/* Base text transitions into the final light-on-photo state. */
.hero__layer--base .hero__copy { color: var(--base-copy-color); }
.hero__layer--base .hero__kicker { color: var(--base-kicker-color); }
.hero__layer--base .hero__lead { color: var(--base-lead-color); }
.hero__layer--base .hero__meta { color: var(--base-meta-color); }
.hero__layer--base .btn--primary {
  background: var(--base-primary-bg);
  color: var(--base-primary-color);
  border-color: var(--base-primary-border);
}
.hero__layer--base .btn--ghost {
  background: var(--base-ghost-bg);
  color: var(--base-ghost-color);
  border-color: var(--base-ghost-border);
}

/* Dark text stays legible throughout the park reveal. */
.hero__layer--overlay .hero__copy { color: #111; }
.hero__layer--overlay .hero__kicker { color: rgba(0,0,0,.65); }
.hero__layer--overlay .hero__lead { color: rgba(0,0,0,.78); }
.hero__layer--overlay .hero__meta { color: rgba(0,0,0,.68); }
.hero__layer--overlay .btn--primary { background: #1f1f1d; color: #fff; border-color: #1f1f1d; }
.hero__layer--overlay .btn--ghost { background: rgba(255,255,255,.78); color: #222; border-color: rgba(0,0,0,.24); }


.hero__kicker {
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 18px;
}

.hero__title {
  margin: 0;
  font-weight: 300;
  letter-spacing: .35em;
  text-transform: uppercase;
  line-height: 1.15;
  font-size: clamp(34px, 4.0vw, 58px);
  color: inherit;
}

.hero__title span {
  display: inline-block;
  margin-top: 10px;
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__scroll-hint {
  position: absolute;
  bottom: calc(var(--hero-frame-bottom) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .4;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity .4s ease;
}

.hero__scroll-hint span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  border: 1px solid rgba(0,0,0,.18);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: rgba(0,0,0,.88);
  color: #fff;
  border-color: rgba(0,0,0,.88);
}

.btn--primary:hover {
  background: rgba(0,0,0,.95);
}

.btn--ghost {
  background: rgba(255,255,255,.55);
  color: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.25);
}

.btn--full {
  width: 100%;
  height: 50px;
  font-size: 15px;
}

/* SECTIONS */

.section {
  padding: clamp(64px, 10vw, 120px) clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 5;
}

.section--alt {
  background: rgba(255,255,255,.38);
}

.section__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.section__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.section__inner--narrow {
  max-width: 640px;
}

.section__kicker {
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(0,0,0,.45);
  margin: 0 0 14px;
}

.section__title {
  margin: 0 0 20px;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
}

.section__lead {
  color: rgba(0,0,0,.65);
  font-size: 16px;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 0 16px;
}

/* TEXT REVEAL */

.text-reveal {
  margin: 0 0 18px;
  max-width: 58ch;
}

.text-reveal:last-of-type {
  margin-bottom: 0;
}

.text-reveal > span {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  display: block;
}

.word {
  color: rgba(0,0,0,.18);
  transition: color .35s ease;
  display: inline;
}

.word--lit {
  color: rgba(0,0,0,.82);
}

/* SERVICES */

.services-layout {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.45fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
  margin-top: 54px;
}

.services-context {
  position: sticky;
  top: 104px;
  padding-top: 4px;
}

.services__eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(0,0,0,.42);
}

.services__statement {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(22px, 2.45vw, 34px);
  line-height: 1.28;
  font-weight: 300;
  letter-spacing: .01em;
  color: rgba(0,0,0,.84);
}

.services-note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,.12);
}

.services-note__label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(0,0,0,.46);
}

.services-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(0,0,0,.64);
}

.services-note ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.services-note li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0,0,0,.68);
}

.services-note li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: .55em;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  flex: 0 0 auto;
}

.services-list {
  border-top: 1px solid rgba(0,0,0,.14);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: 27px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.service-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: rgba(0,0,0,.45);
  transition: width .35s ease;
}

.service-row:hover::after {
  width: 100%;
}

.service-row__num {
  padding-top: 5px;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(0,0,0,.38);
}

.service-row__content {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(0, 1.05fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
}

.service-row__title {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: .03em;
  color: rgba(0,0,0,.88);
}

.service-row__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(0,0,0,.62);
}

/* ABOUT */

.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__number {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: .04em;
}

.stat--float {
  animation: statFloat 4s ease-in-out infinite;
}

@keyframes statFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.stat__label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.5);
}

.about__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__orb {
  width: clamp(200px, 28vw, 380px);
  height: clamp(200px, 28vw, 380px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%,
      rgba(255,255,255,0.9) 0%,
      rgba(255,255,255,0.2) 22%,
      rgba(0,0,0,0.04) 55%,
      rgba(0,0,0,0.18) 100%
    );
  box-shadow:
    0 2em 3em -1.5em rgba(40,48,56,0.28),
    0 0.5em 1.4em -0.8em rgba(255,255,255,0.5) inset,
    0 -1em 2em rgba(0,0,0,0.12) inset;
  animation: orbFloat 6s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* PROCESS */

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform .2s ease;
}

.step:hover {
  transform: translateX(4px);
}

.step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(0,0,0,.55);
  background: rgba(255,255,255,.5);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.step__num--active {
  border-color: rgba(0,0,0,.45);
  box-shadow: 0 0 0 6px rgba(0,0,0,.06);
  transform: scale(1.12);
}

.step__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.step__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0,0,0,.62);
}

/* TESTIMONIALS */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.testimonial {
  margin: 0;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform-style: preserve-3d;
  transition: transform .25s ease;
  will-change: transform;
}

.testimonial__quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0,0,0,.72);
  font-style: italic;
}

.testimonial__footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial__footer strong {
  font-size: 14px;
  font-weight: 600;
}

.testimonial__footer span {
  font-size: 12px;
  color: rgba(0,0,0,.5);
  letter-spacing: .04em;
}

/* CONTACT */

.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(0,0,0,.7);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.7);
  color: #111;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0,0,0,.45);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

/* FOOTER */

.footer {
  background: rgba(0,0,0,.88);
  color: rgba(255,255,255,.75);
  padding: clamp(48px, 8vw, 80px) clamp(24px, 5vw, 64px) 0;
  position: relative;
  z-index: 5;
}

.footer__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer .nav__logo-mark {
  background: rgba(255,255,255,.15);
}

.footer .nav__logo-text {
  color: rgba(255,255,255,.9);
}

.footer .nav__logo-text em {
  color: rgba(255,255,255,.45);
}

.footer__brand p {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
}

.footer__nav h3,
.footer__contact h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  text-decoration: none;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  transition: color .15s;
}

.footer__nav a:hover {
  color: rgba(255,255,255,.9);
}

.footer__contact p {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.footer__bottom {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

.footer__bottom a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}

.footer__bottom a:hover {
  color: rgba(255,255,255,.8);
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .about__orb,
  .stat--float,
  .hero__scroll-hint {
    animation: none;
  }

  .reveal {
    transition: none;
  }

  .word {
    transition: none !important;
    color: rgba(0,0,0,.82) !important;
  }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .nav__burger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 68px 0 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 99;
  }

  .nav__links.is-open {
    pointer-events: auto;
    opacity: 1;
    transform: none;
  }

  .nav__links a {
    font-size: 18px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 96px 24px 70px;
  }

  .hero__inner {
    display: block;
    text-align: center;
    position: relative;
  }

  .hero__copy {
    max-width: 720px;
    margin: 0 auto;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions,
  .hero__meta {
    justify-content: center;
  }

  .hero__image-wrap {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    display: block;
  }

  .hero__image {
    height: 100%;
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: scale(var(--hero-scale)) !important;
  }

  .hero__map-mask {
    left: 50%;
    right: auto;
    top: 54%;
    width: min(96vw, 620px);
    aspect-ratio: 3 / 2;
    opacity: .42;
    transform: translate(-50%, -50%) scale(var(--hero-mask-scale));
  }

  .hero__image-wrap::before {
    content: none;
  }

  .hero__image-wrap::after {
    content: none;
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .services-context {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr);
    gap: 28px;
    align-items: start;
  }

  .services__eyebrow {
    grid-column: 1 / -1;
  }

  .services__statement {
    max-width: 22ch;
  }

  .services-note {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid rgba(0,0,0,.12);
    padding-left: 24px;
  }

  .service-row__content {
    grid-template-columns: minmax(190px, .9fr) minmax(0, 1fr);
  }

  .section__inner--split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__stats {
    justify-content: center;
  }

  .about__visual {
    order: -1;
  }

  .text-reveal {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 92px;
  }

  .hero__title {
    letter-spacing: .18em;
    font-size: clamp(31px, 10vw, 42px);
  }

  .hero__image {
    height: 100%;
    width: 100%;
    max-width: none;
  }

  .hero__map-mask {
    width: 112vw;
    aspect-ratio: 3 / 2;
  }

  .hero__meta {
    font-size: 11px;
  }

  .services-layout {
    margin-top: 38px;
  }

  .services-context {
    display: block;
  }

  .services__statement {
    max-width: none;
  }

  .services-note {
    margin-top: 26px;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid rgba(0,0,0,.12);
    border-left: 0;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .service-row__num {
    padding-top: 0;
  }

  .service-row__content {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Version 1: park background and readable dark text. */
.hero__background::before,
.hero__full-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247,245,239,.91) 0%, rgba(247,245,239,.80) 44%, rgba(247,245,239,.23) 68%, rgba(247,245,239,0) 86%);
}
.hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #d6d5d0;
  opacity: calc(1 - var(--image-opacity));
}
.hero__layer--overlay .hero__grid { display: none; }
@media (max-width: 900px) {
  .hero { height: 550vh; display: block; padding: 0; }
  .hero__stage { width: 100%; }
  .hero__inner { padding: 70px 24px 20px; display: flex; align-items: center; justify-content: center; }
  .hero__image, .hero__full-image { object-position: 78% center; }
  .hero__background::before, .hero__full-background::before {
    background: linear-gradient(180deg, rgba(247,245,239,.90), rgba(247,245,239,.84) 70%, rgba(247,245,239,.55));
  }
}

/* Version 2: one warm palette and one continuous page frame. */
:root {
  --page-gutter: clamp(12px, 1.7vw, 28px);
  --content-inset: clamp(24px, 5vw, 64px);
  --paper: #f7f5ef;
  --paper-alt: #eeebe3;
  --page-surround: #fcfaf6;
  --ink: #292923;
  --muted: #626157;
  --rule: #d5d1c5;
}
body { background: var(--page-surround); color: var(--ink); }
.hero {
  --hero-frame-x: var(--page-gutter);
  --hero-frame-bottom: 0px;
  background: var(--page-surround);
}
.hero__stage { background: var(--page-surround); }
.hero__layer--base { background: var(--paper); }
.hero__inner { padding-inline: var(--content-inset); }
.nav { background: rgba(252,250,246,.94); }
.nav--scrolled { background: rgba(252,250,246,.97); }
.nav__inner {
  width: min(1180px, calc(100% - 2 * var(--page-gutter)));
  padding-inline: var(--content-inset);
}
.section, .footer {
  margin-inline: var(--page-gutter);
  padding-inline: 0;
}
.section {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding-block: clamp(64px, 8vw, 108px);
}
.section--alt { background: var(--paper-alt); }
#services { background: var(--paper); border-top: 0; }
.section__inner {
  width: min(1180px, 100%);
  padding-inline: var(--content-inset);
}
.section__inner--narrow { max-width: calc(640px + 2 * var(--content-inset)); }
.section__kicker, .services__eyebrow, .services-note__label,
.service-row__num, .stat__label, .testimonial__footer span { color: var(--muted); }
.section__lead, .services-note p, .services-note li,
.service-row__body, .step__body, .testimonial__quote { color: #55564e; }
.services__statement, .service-row__title { color: var(--ink); }
.services-note, .services-list, .service-row { border-color: var(--rule); }
.service-row::after { background: #8b8d7c; }
.step__num { background: #faf8f2; border-color: #cbc7bb; color: #626455; }
.step__num--active { border-color: #8b8d7c; box-shadow: 0 0 0 6px rgba(139,141,124,.12); }
.testimonial { background: #fcfaf5; border-color: var(--rule); }
.form-group label { color: #55564e; }
.form-group input, .form-group select, .form-group textarea {
  background: #fcfaf5;
  border-color: #c8c4b8;
  color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #737965;
  box-shadow: 0 0 0 3px rgba(115,121,101,.13);
}
.btn--primary, .nav__cta { background: #292923; border-color: #292923; color: #fcfaf6; }
.btn--primary:hover, .nav__cta:hover { background: #3d4036; }
.btn--ghost { background: #fcfaf5; color: var(--ink); border-color: #c8c4b8; }
.footer {
  background: #e4e0d5;
  color: var(--ink);
  border-top: 1px solid #cbc6b9;
  margin-bottom: var(--page-gutter);
}
.footer__inner, .footer__bottom {
  width: min(1180px, 100%);
  padding-inline: var(--content-inset);
}
.footer__inner { border-bottom-color: #cbc6b9; }
.nav__logo-img--footer { filter: none; opacity: 1; }
.footer__brand p, .footer__contact p, .footer__nav a,
.footer__bottom p, .footer__bottom a { color: #57594f; }
.footer__nav h3, .footer__contact h3, .footer__nav a:hover,
.footer__bottom a:hover { color: #292923; }
@media (max-width: 900px) {
  .nav__links { background: rgba(247,245,239,.98); }
}


/* Version 4: classic services, with a single open description. */
#services { background:var(--paper, #f7f5ef); }
.services-heading { margin-bottom:42px; }
#services .services-heading h2 { margin:0; font:400 clamp(28px,3vw,38px)/1.2 system-ui,sans-serif; letter-spacing:0; text-transform:none; }
.services-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(36px,6vw,84px); align-items:start; }
.services-column__heading { min-height:95px; border-bottom:1px solid var(--rule); }
#services h3 { margin:0 0 10px; font:450 clamp(20px,2vw,25px)/1.3 system-ui,sans-serif; letter-spacing:0; text-transform:none; }
.services-column__heading p { margin:0 0 24px; color:var(--muted); font-size:14px; line-height:1.5; }
.folder-service { border-bottom:1px solid var(--rule); }
.folder-service summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 0; font-size:17px; font-weight:400; line-height:1.4; list-style:none; cursor:pointer; }
.folder-service summary::-webkit-details-marker { display:none; }
.folder-service summary:hover { color:#766951; }
.folder-service summary:focus-visible { outline:2px solid #766951; outline-offset:4px; }
.folder-service__icon { position:relative; width:16px; height:16px; flex-shrink:0; }
.folder-service__icon::before,.folder-service__icon::after { content:""; position:absolute; background:currentColor; top:7px; left:1px; width:14px; height:1px; }
.folder-service__icon::after { transform:rotate(90deg); transition:transform .2s; }
.folder-service[open] .folder-service__icon::after { transform:rotate(0); }
.folder-service__body { background:#eeeae1; padding:21px 23px; margin:0 0 18px; }
.folder-service__body p { margin:0; color:#555249; font-size:15px; line-height:1.75; }
.folder-service__body .service-topics { font-size:12px; margin-bottom:12px; }
@media(max-width:720px) {
 .services-columns { grid-template-columns:1fr; gap:42px; }
 .services-heading { margin-bottom:30px; }
 .services-column__heading { min-height:0; }
 .folder-service summary { font-size:16px; padding:18px 0; }
 .folder-service__body { padding:18px; }
}
@media(prefers-reduced-motion:reduce) { .folder-service__icon::after { transition:none; } }

/* Version 5: About Legato and professional registration. */
.about-legato { background:var(--paper,#f7f5ef); }
.about-legato__eyebrow { margin:0 0 22px; font-size:12px; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); }
#about h2 { margin:0 0 48px; font:400 clamp(28px,3.1vw,40px)/1.25 system-ui,sans-serif; letter-spacing:-.025em; }
.about-legato__columns { display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,6vw,80px); }
#about h3 { margin:0 0 20px; font:500 23px/1.35 system-ui,sans-serif; letter-spacing:0; text-transform:none; }
.about-legato__columns p { margin:0 0 24px; font-size:17px; line-height:1.8; color:#555249; }
.professional-details { margin-top:28px; padding:32px; background:#eeeae1; display:grid; grid-template-columns:1.55fr 1fr; gap:30px; }
.professional-detail { min-width:0; }
.professional-detail--ilpa { border-left:1px solid #d0c9bd; padding-left:30px; }
.professional-detail__label { font-size:12px!important; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 9px!important; }
#about .professional-detail h3 { font-size:19px; margin-bottom:14px; }
.professional-detail p { font-size:14px; line-height:1.7; margin:0 0 16px; color:#555249; }
.professional-detail a { color:inherit; text-underline-offset:4px; }
.professional-link { font-size:14px; display:inline-block; margin-top:3px; }
.professional-detail a:focus-visible { outline:2px solid #655f50; outline-offset:5px; }
.iaa-badge:empty,.ilpa-logo-slot:empty { display:none; }
.iaa-badge { margin-bottom:22px; }
.iaa-badge iframe { display:block; width:125px; height:183px; border:0; }
.ilpa-logo-slot img { width:160px; height:auto; margin-bottom:25px; }
@media(max-width:850px) { .professional-details { grid-template-columns:1fr; } .professional-detail--ilpa { padding:28px 0 0; border-left:0; border-top:1px solid #d0c9bd; } }
@media(max-width:720px) { .about-legato__columns { grid-template-columns:1fr; gap:15px; } #about h2 { margin-bottom:34px; } .about-legato__columns p { font-size:16px; } .professional-details { padding:23px; margin-top:20px; } }

/* Official member logo stays smaller than the firm logo; no filters or recolouring. */
.ilpa-logo-slot img { width:32px; height:auto; }


/* Version 6: two separate credential frames; About copy unchanged. */
.professional-details { padding:0; background:transparent; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.professional-detail,.professional-detail--ilpa { display:grid; grid-template-columns:minmax(0,1fr) 125px; align-items:center; gap:22px; border:1px solid #bfb7ab; padding:28px; min-height:268px; background:#eeeae1; }
#about .professional-detail h3 { font-size:19px; margin:0 0 12px; }
.professional-detail p { font-size:15px; line-height:1.6; }
.iaa-badge,.ilpa-logo-slot { width:125px; margin:0; }
.ilpa-logo-slot img { width:125px; height:125px; margin:0; }
.iaa-preview { width:125px; height:auto; }
.iaa-preview-label { display:block; text-align:center; color:#777269; font-size:11px; line-height:1.4; margin-top:8px; }
@media(max-width:1000px) { .professional-details { grid-template-columns:1fr; } }
@media(max-width:450px) { .professional-detail,.professional-detail--ilpa { padding:23px 18px; gap:18px; grid-template-columns:minmax(0,1fr) 110px; } .ilpa-logo-slot,.ilpa-logo-slot img { width:110px; height:110px; } .professional-detail--iaa { grid-template-columns:minmax(0,1fr) 125px; } #about .professional-detail h3 { font-size:17px; } .professional-detail p { font-size:14px; } }
@media(max-width:360px) { .professional-detail,.professional-detail--ilpa,.professional-detail--iaa { grid-template-columns:1fr; } }

/* Version 7: founder portrait and biography between About and Services. */
.founder-section { background:var(--paper,#f7f5ef); }
.founder-layout { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(32px,4.8vw,68px); align-items:center; }
.founder-portrait { align-self:stretch; min-height:560px; overflow:hidden; }
.founder-portrait img { display:block; width:100%; height:100%; object-fit:cover; object-position:77% center; }
.founder-copy { min-width:0; padding:6px 0; }
.founder-kicker { margin:0 0 20px; font-size:12px; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); }
#founder h2 { margin:0 0 12px; font:400 clamp(28px,3.1vw,40px)/1.25 system-ui,sans-serif; letter-spacing:-.025em; }
.founder-role { margin:0; padding-bottom:24px; border-bottom:1px solid var(--rule,#d5d1c5); font-size:16px; line-height:1.5; color:var(--muted); }
.founder-bio { padding-top:24px; }
.founder-bio p { margin:0 0 20px; font-size:16px; line-height:1.8; color:#555249; }
.founder-bio p:last-child { margin-bottom:0; }
@media(max-width:800px) {
 .founder-layout { grid-template-columns:1fr; gap:32px; }
 .founder-portrait { min-height:0; height:460px; max-width:520px; width:100%; }
 .founder-portrait img { object-position:77% center; }
}
@media(max-width:450px) { .founder-portrait { height:380px; } .founder-bio p { font-size:16px; } }

/* Version 8: smaller desk portrait and expandable biography. */
.founder-layout { grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); gap:clamp(32px,5vw,70px); align-items:start; }
.founder-portrait { align-self:start; min-height:0; height:auto; width:100%; max-width:380px; margin-top:4px; }
.founder-portrait img { width:100%; height:auto; object-fit:contain; object-position:center; }
#founder h2 { font-size:clamp(28px,2.5vw,34px); }
.founder-role { font-size:15px; padding-bottom:22px; }
.founder-bio { padding-top:22px; }
.founder-bio p { font-size:16px; line-height:1.75; }
.founder-more summary { display:flex; align-items:center; gap:15px; width:fit-content; min-height:44px; padding:8px 0; cursor:pointer; list-style:none; font-size:16px; line-height:1.5; }
.founder-more summary::-webkit-details-marker { display:none; }
.founder-more summary>span:not(.founder-more__chevron) { text-decoration:underline; text-underline-offset:5px; }
.founder-more summary:focus-visible { outline:2px solid #655f50; outline-offset:5px; }
.founder-more__chevron { width:10px; height:10px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg) translateY(-3px); }
.founder-more__open { display:none; }
.founder-more[open] .founder-more__closed { display:none; }
.founder-more[open] .founder-more__open { display:inline; }
.founder-more[open] .founder-more__chevron { transform:rotate(225deg) translate(-2px,-1px); }
.founder-more__body { padding-top:20px; }
@media(max-width:800px) { .founder-layout { grid-template-columns:1fr; gap:30px; } .founder-portrait { height:auto; max-width:320px; margin:0 auto; } }

/* Version 9: wide desktop image with softly fading edges. */
.founder-layout { position:relative; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:35px; align-items:start; }
.founder-portrait { position:relative; overflow:visible; max-width:none; min-height:450px; width:100%; height:450px; margin:0; }
.founder-portrait img { position:absolute; width:675px; max-width:none; height:450px; left:-100px; top:0; object-fit:contain; object-position:center; mask-image:linear-gradient(to right,transparent 0%,#000 10%,#000 74%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 7%,#000 88%,transparent 100%); mask-composite:intersect; -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 10%,#000 74%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 7%,#000 88%,transparent 100%); -webkit-mask-composite:source-in; }
.founder-copy { position:relative; z-index:1; }
@media(min-width:801px) and (max-width:1100px) { .founder-portrait { height:380px; min-height:380px; } .founder-portrait img { width:570px; height:380px; left:-110px; } }
@media(max-width:800px) { .founder-layout { grid-template-columns:1fr; gap:24px; } .founder-portrait { width:100%; max-width:520px; height:auto; min-height:0; aspect-ratio:1.2; margin:0 auto; overflow:hidden; } .founder-portrait img { width:125%; height:auto; left:-5%; top:0; } }

/* Version 10: consistent section typography and clearer page rhythm. */
.section .section__title,#about h2,#services .services-heading h2 { font:400 clamp(28px,3vw,38px)/1.25 system-ui,sans-serif; letter-spacing:-.025em; text-transform:none; }
.section__kicker,.about-legato__eyebrow,.founder-kicker { font-size:12px; letter-spacing:.15em; color:var(--muted); }
.step__title { font:500 20px/1.35 system-ui,sans-serif; letter-spacing:0; text-transform:none; }
.footer__nav h3,.footer__contact h3 { text-transform:none; letter-spacing:0; }
#services { background:#eeeae2; border-top:1px solid #d8d2c6; border-bottom:1px solid #d8d2c6; }
#services .folder-service__body { background:#f7f5ef; }
#process { background:#f7f5ef; }
#testimonials { background:#f3f0e9; }
#contact { background:#eeeae2; }
#contact .section__inner--narrow { max-width:calc(720px + 2 * var(--content-inset)); }
.form-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.form-status { margin:16px 0 0; font-size:14px; line-height:1.6; color:var(--ink); }
.form-status:empty { display:none; }
.contact-email { text-align:center; font-size:14px; color:var(--muted); margin:18px 0 0; }
.contact-email a { color:inherit; text-underline-offset:4px; }
.contact-form button:disabled { opacity:.6; cursor:wait; }

/* Version 11: understated FAQ and a complete, locally loaded footer identity. */
#faq { background:#f7f5ef; border-bottom:1px solid #d8d2c6; }
.faq-layout { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(0,1.65fr); gap:clamp(32px,6vw,96px); align-items:start; }
.faq-intro .section__title { max-width:330px; margin-bottom:0; }
.faq-intro .section__kicker { margin-top:0; }
.faq-list { border-top:1px solid #cec8bc; }
.faq-item { border-bottom:1px solid #cec8bc; }
.faq-item summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:24px; cursor:pointer; padding:23px 0; font:400 17px/1.5 system-ui,sans-serif; color:#292923; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary:focus-visible { outline:2px solid #716953; outline-offset:5px; }
.faq-icon { width:16px; height:16px; position:relative; flex:0 0 16px; }
.faq-icon::before,.faq-icon::after { content:""; position:absolute; background:#827866; }
.faq-icon::before { width:14px; height:1px; top:7px; left:1px; }
.faq-icon::after { height:14px; width:1px; top:1px; left:7px; }
.faq-item[open] .faq-icon::after { display:none; }
.faq-answer { padding:0 36px 24px 0; }
.faq-answer p { margin:0; font-size:15px; line-height:1.8; color:#5e5c55; max-width:65ch; }
.footer .nav__logo-img--footer { width:154px; height:auto; max-height:none; object-fit:contain; }
.footer__brand .nav__logo { display:inline-flex; margin-bottom:16px; }
.footer__contact a { color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.footer__contact a:hover { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:800px) { .faq-layout { grid-template-columns:1fr; gap:28px; } .faq-intro .section__title { max-width:none; } }
@media(max-width:480px) { .faq-item summary { font-size:16px; padding:20px 0; gap:16px; } .faq-answer { padding-right:15px; } }

.footer__brand p a { color:inherit; text-decoration:underline; text-decoration-color:#aaa28f; text-underline-offset:3px; }

/* Version 12: soft tonal depth, retaining quiet backgrounds behind text. */
#about { background:linear-gradient(160deg,#faf8f3 0%,#f5f2ec 65%,#f3f0e9 100%); }
#founder { background:linear-gradient(180deg,#f3f0e9 0%,#f7f5ef 32%,#f7f5ef 78%,#f1ede5 100%); }
#services { background:linear-gradient(145deg,#f1ede5 0%,#eae5db 58%,#f1eee7 100%); border-top-color:#ddd6ca; border-bottom-color:#ddd6ca; }
#services .folder-service__body { background:rgba(255,253,248,.48); }
#faq { background:linear-gradient(180deg,#f1eee7 0%,#f8f6f1 30%,#f8f6f1 75%,#f2eee6 100%); border-bottom-color:#ded7cb; }
#contact { background:radial-gradient(ellipse at 18% 15%,rgba(255,253,248,.65),transparent 65%),linear-gradient(155deg,#f2eee6,#e8e2d7); }
.footer { background:linear-gradient(180deg,#e8e2d7,#e1dbcf); }
.contact-form input:not([type=hidden]),.contact-form select,.contact-form textarea { background-color:rgba(255,254,251,.7); border-color:#cbc4b7; }
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus { border-color:#8b806c; box-shadow:0 0 0 3px rgba(139,128,108,.1); }

/* Version 13: a quieter footer logo. */
.footer .nav__logo-img--footer { width:120px; height:auto; }

/* Version 14: original grey logo, scaled for the footer. */
.footer .nav__logo-img--footer { width:100px; height:auto; }

/* Version 15: consistent spacing, quieter interactions and mobile readability. */
.section { padding-block:clamp(56px,7vw,96px); }
.section__title,#about h2,#founder h2,#services h2 { text-wrap:balance; }
.section__kicker,.about-legato__eyebrow,.founder-kicker { margin-bottom:16px; line-height:1.5; }
#about h2 { margin-bottom:36px; }
.about-legato__columns p { font-size:16px; line-height:1.8; }
.professional-details { margin-top:30px; gap:24px; }
.professional-detail,.professional-detail--ilpa { border-color:#cec7ba; background:rgba(244,241,233,.75); }
.services-heading { margin-bottom:36px; }
.services-column__heading { min-height:90px; }
.folder-service summary,.faq-item summary { transition:color .18s ease; }
.folder-service summary:hover,.faq-item summary:hover { color:#756650; }
.folder-service__body { border-left:2px solid #b8ad99; padding:18px 22px; }
.faq-answer p { line-height:1.75; }
.nav__logo-img:hover { transform:none; opacity:1; }
.nav--scrolled { box-shadow:0 1px 0 rgba(92,81,62,.1); }
a:focus-visible,button:focus-visible { outline:2px solid #776a54; outline-offset:5px; }
.btn,.nav__cta { transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease; }
.btn:hover { transform:none; box-shadow:0 3px 10px rgba(51,43,29,.09); }
#contact .section__lead { max-width:52ch; margin-bottom:30px; line-height:1.75; }
.form-group label { font-size:14px; line-height:1.5; }
.form-group input,.form-group select,.form-group textarea { font:400 16px/1.5 system-ui,sans-serif; border-radius:6px; transition:border-color .18s ease,box-shadow .18s ease; }
.form-group input,.form-group select { min-height:50px; }
.form-group textarea { min-height:150px; resize:vertical; }
.footer__nav h3,.footer__contact h3 { font-weight:500; font-size:14px; margin-bottom:18px; }
.footer__brand p,.footer__contact p { line-height:1.75; }
.footer__nav a { display:inline-block; padding-block:3px; }
.footer__bottom { padding-block:22px; }
@media(max-width:720px) {
 .section { padding-block:56px; }
 .section .section__title,#about h2,#services .services-heading h2,#founder h2 { font-size:28px; line-height:1.25; }
 #about h2 { margin-bottom:28px; }
 .services-column__heading { min-height:0; }
 .services-columns { gap:36px; }
 .folder-service summary,.faq-item summary { min-height:60px; }
 .footer__inner { gap:28px 24px; padding-bottom:32px; }
 .footer__nav a { padding-block:6px; }
 .nav__burger { min-width:44px; min-height:44px; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 *,*::before,*::after { transition-duration:0s!important; animation-duration:0s!important; }
 .reveal { opacity:1; transform:none; }
}

button.btn { font-family:inherit; font-size:15px; font-weight:500; }

/* Version 18: shorter hero, stable grid and balanced mobile credentials. */
.hero { height:270vh; height:270svh; }
.hero__grid {
 opacity:.65;
 background-image:linear-gradient(to right,rgba(114,88,56,.16) 1px,transparent 1px),linear-gradient(to bottom,rgba(114,88,56,.16) 1px,transparent 1px);
 background-size:12.5% 100%,100% 16.6667%;
}
.iaa-badge { width:112px; }
.iaa-badge__frame { position:relative; width:100%; aspect-ratio:125 / 190; }
.iaa-badge .iaa-badge__frame iframe { position:absolute; inset:0; width:100%; height:100%; display:block; border:0; background:transparent; }
.iaa-badge__fallback { display:block; text-align:center; font-size:12px; line-height:1.4; padding:8px 0; color:var(--ink); text-underline-offset:3px; }
.iaa-badge__fallback strong { display:block; font-size:22px; font-weight:500; letter-spacing:.05em; }
.professional-detail,.professional-detail--ilpa { min-height:220px; grid-template-columns:minmax(0,1fr) 112px; }
.ilpa-logo-slot,.ilpa-logo-slot img { width:112px; height:auto; }
@media(max-width:800px) {
 .hero { height:240vh; height:240svh; }
 .professional-details { gap:14px; }
 .professional-detail,.professional-detail--ilpa,.professional-detail--iaa { grid-template-columns:minmax(0,1fr) 84px; padding:20px; gap:16px; min-height:170px; }
 #about .professional-detail h3 { font-size:17px; margin-bottom:8px; }
 .professional-detail p { font-size:14px; line-height:1.5; }
 .iaa-badge,.ilpa-logo-slot,.ilpa-logo-slot img { width:84px; height:auto; }
 .iaa-badge__fallback { font-size:11px; }
 .iaa-badge__fallback strong { font-size:18px; }
 .founder-portrait { max-width:520px; width:100%; height:clamp(320px,95vw,460px); aspect-ratio:auto; overflow:hidden; }
 .founder-portrait img { width:100%; height:100%; left:0; top:0; object-fit:cover; object-position:38% center; }
}
@media(prefers-reduced-motion:reduce) {
 .hero { height:100vh; height:100svh; }
}

/* Version 19: fade the grid as the hero photograph appears. */
.hero__grid { opacity:calc(.65 * (1 - var(--image-opacity, 0))); }
.nav, .nav--scrolled { box-shadow:none; border-bottom:0; }

/* Version 20: mobile hero reveals automatically, without a scroll runway. */
@media (max-width:900px) {
  .hero { height:max(680px,100svh); }
  .hero__stage { position:relative; height:100%; }
  .hero__grid { display:none; }
  .hero__image, .hero__full-image { object-position:90% center; }
  .hero__background::before, .hero__full-background::before {
    background:linear-gradient(180deg,rgba(247,245,239,.55),rgba(247,245,239,.76) 48%,rgba(247,245,239,.66) 68%,rgba(247,245,239,.12));
  }
}

/* Version 21: compact mobile footer and a fixed England zoom focus. */
@media(max-width:900px) {
 .hero__layer--overlay {
  -webkit-mask-size:var(--mobile-map-width) auto;
  mask-size:var(--mobile-map-width) auto;
  -webkit-mask-position:var(--mobile-map-left) var(--mobile-map-top);
  mask-position:var(--mobile-map-left) var(--mobile-map-top);
 }
}
@media(max-width:800px) {
 .footer { padding-top:28px; }
 .footer__inner { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:22px 16px; padding-inline:22px; padding-bottom:22px; align-items:start; }
 .footer__brand,.footer__contact { grid-column:1 / -1; }
 .footer__brand .nav__logo { margin-bottom:0; }
 .footer__brand p { margin-top:10px; line-height:1.5; }
 .footer__nav h3,.footer__contact h3 { margin-bottom:8px; }
 .footer__nav ul { gap:2px; }
 .footer__nav a { padding-block:5px; line-height:1.4; }
 .footer__contact p { margin-bottom:6px; line-height:1.5; }
 .footer__bottom { padding:14px 22px; gap:6px; }
}

/* Version 24: reserve enough vertical space for both hero actions. */
.hero { --hero-required-height: 0px; --hero-min-height: 100vh; }
@supports (height: 100svh) { .hero { --hero-min-height: 100svh; } }
.hero__stage {
  height: max(var(--hero-min-height), var(--hero-required-height));
}
.hero__inner {
  padding-top: clamp(24px, 6vh, 64px);
  padding-bottom: 32px;
}
.hero__copy { min-width: 0; }
.hero__actions .btn {
  height: auto;
  min-height: 44px;
  max-width: 100%;
  padding-block: 10px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
/* A section taller than the viewport must scroll normally to expose its buttons. */
.hero.hero--content-tall { height: auto; }
.hero--content-tall .hero__stage { position: relative; }
.hero--content-tall .hero__scroll-hint { display: none; }
@media (max-width: 900px) {
  .hero {
    --hero-min-height: max(680px, 100vh);
    height: max(var(--hero-min-height), var(--hero-required-height));
  }
  @supports (height: 100svh) { .hero { --hero-min-height: max(680px, 100svh); } }
}

/* Version 25: one unmasked, readable interactive copy above the photo. */
.hero__layer--base { z-index: auto; }
.hero__actions .btn { transition: none; }
.hero__layer--base .btn--primary { background:#1f1f1d; color:#fff; border-color:#1f1f1d; }
.hero__layer--base .btn--ghost { background:#fcfaf5; color:#222; border-color:#a7a296; }
.footer__bottom a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; }
.footer__bottom { gap:12px; }
