:root {
  --clr-bg: #366baa;
  --clr-bg-2: #366baa;
  --clr-ivory: #dadbdd;
  --clr-text: #dadbdd;
  --clr-text-dark: #212124;
  --clr-gold: #C8A45C;
  --clr-gold-hi: #F7E7B3;
  --clr-gold-deep: #5C4422;
  --ff-serif: "Playfair Display", ui-serif, Georgia, serif;
  --ff-body: "Playfair Display", ui-serif, Georgia, serif;
  --ff-lang: system-ui;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --radius: 8px;
  --shadow: 0 12px 36px rgba(0, 0, 0, .16);

  --hero-gutter: clamp(2rem, 8vw, 8rem);
  --gutter: clamp(16px, 4vw, 72px);
  /* left/right page gutters */
  --section-y: clamp(40px, 8vw, 68px);
  /* top/bottom section spacing */
  --container-max: 1100px;
  /* keep existing max but centralize */

  --contact-col-gap: clamp(4rem, 6vw, 10rem);
  /* wider space between columns */
  --control-h: 54px;
  /* form control height (inputs) */
  --field-gap: var(--space-2);
  /* vertical gap between fields */
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

/* Page background: solid color with a subtle texture blended on top.
   The texture image is layered over the base color and blended using
   color-burn to approximate Photoshop's "Linear Burn" look. */
body {
  /* Solid base colour. A textured overlay will be placed above it via ::before
     and blended with mix-blend-mode to approximate Photoshop's Linear Burn. */
  background-color: var(--clr-bg);
  color: var(--clr-text);
  /*
  font:16px/1.6 var(--ff-body);
  */
  font: clamp(16px, 1.2vw, 18px) / 1.6 var(--ff-body);
}

/* Textured overlay: placed above the base colour and below site content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('/images/bg_texture.webp');
  background-repeat: repeat;
  background-position: center center;
  background-size: auto;
  /* Desaturate the texture and use very low opacity so only luminance/textural
     information is visible — this prevents hue shifts of the base #366baa. */
  filter: grayscale(100%) contrast(105%);
  opacity: 0.35;
  /* extremely subtle */
  mix-blend-mode: color-burn;
}

/* Ensure page content sits above the textured overlay */
body>* {
  position: relative;
  z-index: 1
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  display: block
}

h1,
h2,
h3 {
  margin: .2em 0 .3em;
  font-family: var(--ff-serif)
}

.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--hero-gutter);
}

.section {
  padding: 0;
  margin-block: var(--section-y);
}

.grid {
  display: grid;
  gap: var(--space-2)
}

.grid-2 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr
}

.panel {
  background: var(--clr-ivory);
  color: var(--clr-text-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  position: relative;
  /* required for the shadow */
  z-index: 1;
  /* keeps content above the shadow */
}

/* Soft “floor” shadow like BMO */
.panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  /* how far the shadow sits below the card */
  transform: translateX(-50%);
  width: 80%;
  height: 30px;
  background: linear-gradient(90deg, #fff 0%, #777 50%, #fff 100%);
  filter: blur(12px);
  opacity: .55;
  /* overall strength */
  border-radius: 50%;
  /* rounds the bar edges */
  z-index: 0;
}

.rule {
  height: 2px;
  background: var(--clr-gold);
  position: relative;
  margin: 0.4em 0 0.6em auto;
  max-width: 40%;
}

.rule.small {
  width: 100%;
  margin: 0%;
}

.rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 1px;
  background: var(--clr-gold-hi);
  opacity: .85
}

.rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--clr-gold-deep);
  opacity: .7
}

/* HERO */
.hero {
  position: relative;
  min-height: 75svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .9s ease, transform 1.4s ease
}

.hero.loaded .hero__media {
  opacity: 1;
  transform: scale(1)
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left
}

.hero__veil {
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg,
      rgba(30, 58, 138, 0) 60%,
      #366baa 120%);
}

/*
.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-6) 0;
  padding-inline-end: var(--gutter);
  padding-inline-start: var(--gutter);
}
*/
/*
.hero__content{
  margin-left:auto; max-width:min(560px,52vw); text-align:right; padding-right:clamp(1.25rem,4vw,3rem);
  padding-top:clamp(2.25rem,6vw,4.5rem);
}
*/
.hero__content {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: none;
  width: 100%;
  text-align: right;
  padding-right: var(--hero-gutter);
  /* keep alignment with sections */
  padding-left: var(--hero-gutter);
  /* match left gutter as sections collapse */
  padding-top: 0;
}

.eyebrow {
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9
}

/*
.title{font-size:clamp(28px,6vw,56px); line-height:1.05}
*/

.lead {
  max-width: 24ch;
  opacity: .95;
  font-size: clamp(18px, 2.2vw, 28px);
  margin: 0 0 0 auto;
  /* push the block to the right */
  text-align: right;
}

.cta {
  display: inline-block;
  margin-top: var(--space-3);
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  background: var(--clr-gold);
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(200, 164, 92, .28);
  transition: transform .15s ease, box-shadow .15s ease
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(200, 164, 92, .36)
}

/* white/pill CTA used in hero */
.cta.white {
  display: inline-flex;
  align-items: center;
  /* Ensure vertical alignment */
  justify-content: space-between;
  background: #dadbdd;
  /* Match ivory background */
  color: #212124;
  /* Dark text color */
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  padding: .7rem 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1rem;
}

.cta.white i {
  margin-left: 0.5rem;
  color: #212124;
  /* Dark color for the arrow icon */
  font-size: 1.4rem;
  /* Adjust icon size */
  font-weight: bold;
  /* Make the arrow bold */
  line-height: 1;
  /* Ensure vertical alignment with text */
}

/* Pill CTA (Hero Section) */
.cta-pill {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: cera-round-pro, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cta-pill__link {
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-ivory);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cta-pill__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
}

/* Left Icon */
.cta-pill__icon-left {
  /*background: var(--clr-gold);*/
  color: var(--clr-gold);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-pill__icon-left i {
  font-size: 1.5rem;
}

/* Text */
.cta-pill__text {
  flex: 1;
  padding: 0.85rem 1.25rem;
  padding-left: 0%;
  color: var(--clr-text-dark);
}

/* Right Arrow */
.cta-pill__icon-right {
  background: var(--clr-text-dark);
  color: var(--clr-ivory);
  padding: 1.1rem 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-pill__icon-right i {
  font-size: 1.2rem;
}

/* ===== CTA perimeter runner ===== */
.cta-pill {
  position: relative;
  overflow: visible;
  /* trail can feather outside a bit */
  isolation: isolate;
  /* keeps blending within the button stacking context */
}

/* configurable tokens */
.cta-pill {
  --cta-border-radius: var(--border-radius-md, 14px);
  --cta-border-width: 2px;
  --cta-border-color: color-mix(in lch, var(--white, #fff), transparent 70%);
  --cta-trail-color: var(--clr-gold, #d4af37);
  --cta-trail-size: 22px;
  /* visual size of the glow blob */
  --cta-trail-strength: 65%;
  /* how strong the glow is */
  --cta-speed: 7s;
  /* one lap time */
}

/* thin static border (subtle) */
.cta-pill .cta-border {
  position: absolute;
  inset: 0;
  border-radius: var(--cta-border-radius);
  border: var(--cta-border-width) solid var(--clr-text-darkr);
  pointer-events: none;
  z-index: 0;
}

/* animated trail (the moving glow) */
.cta-pill .cta-trail {
  position: absolute;
  width: var(--cta-trail-size);
  aspect-ratio: 2 / 1;
  /* a soft, directional glow “comet” */
  background:
    radial-gradient(120% 100% at right,
      color-mix(in lch, var(--cta-trail-color), transparent calc(100% - var(--cta-trail-strength))),
      transparent 60%);
  filter: blur(0.5px);
  pointer-events: none;

  /* Follow the rounded outline of the button */
  offset-path: border-box;
  offset-anchor: 100% 50%;
  animation: cta-perimeter-run var(--cta-speed) linear infinite;

  /* keep it inside the same stacking layer */
  z-index: 1;
}

/* a second runner, phase-shifted, for a smoother continuous feel */
.cta-pill .cta-trail--2 {
  animation-delay: calc(var(--cta-speed) * -0.5);
  opacity: .8;
}

/* the motion */
@keyframes cta-perimeter-run {
  to {
    offset-distance: 100%;
  }
}

/* Hero typography tweaks to match the reference */
/*
.title{ font-family:var(--ff-serif); text-transform:uppercase; letter-spacing:.06em; font-weight:700 }
*/
.title {
  font-family: var(--ff-serif);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  /* slightly tighter letter spacing */
  font-weight: 700;
  font-size: clamp(52px, 10vw, 120px);
  /* increase font size range */
  line-height: 0.95;
  /* tighten a bit */
  margin-bottom: 0.2em;
  /* reduce space after title */
}

.hero .title {
  color: var(--clr-ivory);
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(200, 164, 92, 0.65),
    0 0 16px rgba(200, 164, 92, 0.55),
    0 0 32px rgba(200, 164, 92, 0.45),
    0 0 64px rgba(255, 198, 120, 0.35);
}

.hero .eyebrow {
  font-size: 0.95rem;
  opacity: 0.95
}

/* Section headings (ABOUT / SERVICES) */
.panel h3 {
  font-family: var(--ff-serif);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(22px, 4vw, 34px);
  margin: 0 0 .35rem
}

.panel .rule.small {
  margin: .35rem 0 1rem
}

.hero h3.muted {
  margin: 0 0 .25rem;

  font-size: clamp(34px, 5.6vw, 60px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: .95;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(200, 164, 92, 0.65),
    0 0 16px rgba(200, 164, 92, 0.55),
    0 0 32px rgba(200, 164, 92, 0.45),
    0 0 64px rgba(255, 198, 120, 0.35);
}

/* Section headings that sit on the blue background */
.section>.container>h3 {
  color: var(--clr-gold-ivory);
  font-family: var(--ff-serif);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(24px, 4.5vw, 36px);
  margin: 0 0 .35rem;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.7),
    /* deep inner edge */
    0 0 8px rgba(255, 255, 255, 0.35),
    /* soft ambient glow */
    0 0 18px rgba(255, 255, 255, 0.3),
    /* medium glow */
    0 0 42px rgba(255, 255, 255, 0.25),
    /* outer halo */
    0 0 70px rgba(255, 255, 255, 0.18);
  /* cinematic bloom */

  display: inline-block;
  /* shrink to fit text */
  position: relative;
  /* anchor for underline */
}

.section>.container>.rule.small {
  margin-bottom: 1rem;
  max-width: 100%;
}

.icon-services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  column-gap: 3rem;
  row-gap: 1rem;
}

/* each row: fixed icon column + fluid label column */
.service {
  display: grid;
  grid-template-columns: 3rem 1fr;
  /* <= icon column width */
  align-items: center;
}

.service .ico {
  width: 2.5rem;
  /* must match grid column */
  display: flex;
  justify-content: center;
  /* centers different icon shapes */
  align-items: center;
}

.service i {
  font-size: 1.4rem;
  /* consistent icon size */
  color: var(--clr-gold);
  line-height: 1;
  /* prevents vertical wobble */
}

.service .label {
  line-height: 1.35;
}

/* Contact grid: first row is the shared heading */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--contact-col-gap);
  row-gap: var(--space-3);
  align-items: start;
  /* top-align both columns */
}

.contact-grid>.form-heading {
  grid-column: 1 / -1;
  /* span both columns */
  text-align: left;
  margin: 0 0 var(--space-2);
  font-family: var(--ff-serif);
  font-size: clamp(22px, 4vw, 28px);
  text-transform: none;
  /* keep nice sentence case */
}

/* With the heading above both columns, the next row begins with
   the Name label and the first address line – perfectly aligned. */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  /* stacked fields */
  gap: var(--space-2);
}

.contact-form input {
  block-size: var(--control-h);
}

.contact-form textarea {
  min-block-size: calc(var(--control-h) * 3);
}

/* Normalize + unify the submit button across browsers */
.contact-form button.cta,
button.cta {
  -webkit-appearance: none;
  appearance: none;
  border: 0;                 /* kill UA border */
  background-clip: padding-box;
  line-height: 1;            /* consistent vertical centering */
  font-weight: 700;
  text-transform: uppercase;
  /* keep your existing background, radius, shadow, padding, etc. */
}

/* Accessible, consistent focus (replaces the UA outline) */
button.cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(33,33,36,.25),     /* focus ring */
    0 8px 24px rgba(0,0,0,.18);       /* your drop shadow */
}

button.cta {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),  /* subtle top highlight */
    0 8px 24px rgba(0,0,0,.18);
}

.form-result {
  margin-top: .25rem;       /* tight gap under the textarea */
  min-height: 1.2em;        /* reserve space to avoid layout shift */
  color:#444;
  transition: opacity 1s ease-in-out;
}

.form-result.error {
	color: #b30000;
}

/* Replace the old margin-top hack on the first <p> */
.contact-details {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-auto-rows: min-content;
  row-gap: var(--space-2);
}

/* Each line = icon + text in two columns */
.contact-details li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-2);
  align-items: start;
}

.contact-details i {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: .9;
  margin-top: .2rem;
  /* nudges the icon to align with text cap height */
}

.contact-details div {
  font-size: 1rem;
  line-height: 1.6;
}

/* no underline, inherit color */
.contact-details a.no-dec { text-decoration: none; color: inherit; }

/* Match right-side info typography to form inputs */
.contact-details,
.contact-details div,
.contact-details li {
  font: clamp(16px, 1.2vw, 18px) / 1.6 var(--ff-body);
}

/* Contact card styles to match the big rounded pill in the design */
.contact-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(#ffffff, #f4f6f7);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .18);
}

.contact-card__logo {
  min-width: 86px;
  height: 86px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff9ef 0%, #f6f2e1 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.contact-card__logo span {
  font-family: var(--ff-serif);
  font-size: 48px;
  color: var(--clr-gold-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6)
}

.contact-card__info {
  flex: 1;
  text-align: center;
  color: var(--clr-text-dark)
}

.contact-card__info h4 {
  margin: 0;
  font-family: var(--ff-serif);
  font-size: 1.5rem
}

.contact-card__info p {
  margin: .25rem 0 0;
  color: #6b6b6b
}

/* Footer strapline */
.footer .strap {
  text-align: center;
  margin-top: var(--space-4);
  /* Add spacing above the strap */
  margin-bottom: var(--space-2);
  /* Add spacing below the strap */
  color: var(--clr-gold-hi);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(200, 164, 92, 0.65),
    0 0 16px rgba(200, 164, 92, 0.55),
    0 0 32px rgba(200, 164, 92, 0.45),
    0 0 64px rgba(255, 198, 120, 0.35);
}

.footer h3 {
  text-align: center;
  /* Center the heading */
  font-size: clamp(18px, 5vw, 30px);
  /* Make it bigger */
  color: var(--clr-gold-ivory);
  /* Match the color */
  font-family: var(--ff-serif);
  letter-spacing: .10em;
  margin: 0 0 var(--space-2);
  text-shadow:
    0 1px 2px rgba(0,0,0,.45),
    0 0 10px rgba(255,255,255,.12),
    0 0 24px rgba(255,255,255,.08);
}

/* New footer-end section styles */
.footer-end {
  text-align: center;
  margin-top: var(--space-2);
  /* Add spacing above the footer-end section */
  margin-bottom: var(--space-4);
  /* Add spacing below the footer-end section */
}

.footer-end .small {
  font-size: 0.85rem;
  /* Smaller font size for the first line */
  margin-bottom: var(--space-2);
  /* Equal spacing between lines */
}

.footer-end .bold {
  font-size: 0.8rem;
  /* Slightly smaller font size for the bold text */
  font-weight: bold;
  /* Make the text bold */
  margin-top: var(--space-2);
  /* Equal spacing between lines */
}

/* Contact form styles */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-form h3 {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: var(--space-2);
}

.contact-form .form-heading {
  text-align: left;
  /* Align heading to the left */
  font-family: var(--ff-serif);
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: var(--space-2);
  text-transform: none;
}

.contact-form label {
  /*font-weight: bold;*/
  margin-bottom: var(--space-1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--clr-text-dark);
  border-radius: var(--radius);
  font-size: 1rem;
}

.contact-form button.cta {
  align-self: flex-start;
  font-size: 1.1rem;
  /* Increase font size */
  text-transform: uppercase;
  /* Make text all caps */
}

/* Contact details styles */
.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-2);
  text-align: left;
}

.contact-details p:first-of-type {
  margin-top: calc(var(--space-2) + 0.5rem);
  /* Align address with "Name" field */
}

.contact-details p {
  font-size: 1rem;
  line-height: 1.6;
}

.service .label {
  text-align: left;
}

.contact-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card__logo {
  width: 96px;
  height: 96px;
  border-radius: 28px
}

.footer {
  color: var(--clr-text);
  /*padding: var(--space-6);*/
}

.small {
  font-size: .9rem
}

.muted {
  opacity: .75
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  margin-bottom: var(--space-2);
}

/* base: hidden on desktop */
.mobile-only {
  display: none !important;
}

/* Base (no motion if user prefers reduced motion) */
.panel {
  will-change: transform, opacity;
}

/* Reveal animation */
@media (prefers-reduced-motion: no-preference){
  .reveal {
    opacity: 0;
    transform: translateY(14px) scale(.995);
  }
  .reveal.is-inview {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: transform 600ms cubic-bezier(.2,.65,.2,1),
                opacity 450ms ease-out;
  }
}

@supports (animation-timeline: view()){
  .panel {
    animation-name: rise;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(.2,.65,.2,1);
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
  }
  @keyframes rise {
    from { opacity:.001; transform: translateY(14px) scale(.995); }
    to   { opacity:1;    transform: translateY(0)    scale(1); }
  }
}

/* Stack contact form and details on mobile */
@media (max-width: 768px) {
  :root {
    --section-y: clamp(12px, 6vw, 24px);
  }

  .mobile-only {
    display: block !important;
  }

  /* place under heading, centered, small gap */
  .contact-grid {
    row-gap: var(--space-1);
  }

  /* was bigger */
  .contact-grid>.form-heading {
    margin-bottom: 0;
  }

  .contact-grid>.tel-inline {
    grid-column: 1 / -1;
    text-align: center;
    margin: .25rem 0 var(--space-1);
    font-weight: 700;
    font-size: clamp(18px, 5.2vw, 22px); /* ↑ size on small screens */
    line-height: 1.2;
    text-decoration: none;
    /* no underline */
    color: var(--clr-text-dark);
    /* match panel text */
  }

  .hero {
    min-height: 62svh;
  }

  .hero__content {
    /*
    margin-left: 0;
    max-width: 92vw;
    padding-right: 0;
    padding-top: 0;
    padding-inline: var(--space-2);
    */
    padding-right: var(--hero-gutter);
    /* keep alignment with sections */
    padding-left: var(--hero-gutter);
    /* match left gutter as sections collapse */
    padding-top: 0;

  }

  .hero__media img {
    /*object-position: center;*/
    object-position: 35% center;
    /*min-height: 72svh; */
  }

  .panel::after {
    width: 88%;
    height: 22px;
    bottom: -12px;
    filter: blur(10px);
    opacity: .35;
  }

  /* Extra-compact CTA pill */
  .cta-pill__link {
    align-items: stretch;
    font-size: 0.7rem;
    padding: 0 0.6rem;
    padding-right: 0;
    overflow: hidden;
    gap: .25rem;
  }

  .cta-pill__icon-left {
    padding: 0.35rem 0;
  }

  .cta-pill__icon-left i {
    font-size: 1rem;
  }

  .cta-pill__text {
    padding: 0.45rem 0.4rem;
    margin-top: 0.1rem;
  }

  .cta-pill__icon-right {
    padding: 0.6rem 0.5rem;
    margin-left: auto;
  }

  .cta-pill__icon-right i {
    font-size: 1rem;
  }

  .section {
    text-align: center;
    padding-block: var(--section-y);
  }

  #services {
    padding-top: var(--section-y) / 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    /* single column */
    column-gap: 0;
  }

  .contact-grid>.form-heading {
    grid-column: 1;
    /* header stays above everything */
    text-align: center;
    /* keep it law-firm tidy */
  }

  .contact-details {
    margin-top: var(--space-3);
    /* breathing room below form */
    text-align: left;
    justify-content: center;
    display: grid;
    row-gap: var(--space-2);
  }

  .icon-services {
    grid-template-columns: 1fr;
  }

  .contact-form button.cta {
    align-self: auto;
  }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .cta-pill .cta-trail,
  .cta-pill .cta-trail--2 {
    animation: none;
    opacity: 0;
    /* or keep a faint static glow if you prefer */
  }
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}