.contact-v5 {
  --contact-paper: #f6f2ea;
  --contact-paper-bright: #fcfaf6;
  --contact-cream: #e9dfce;
  --contact-ink: #191a18;
  --contact-muted: #666862;
  --contact-line: rgba(25, 26, 24, 0.18);
  --contact-red: #a32635;
  --contact-red-deep: #741c28;
  --contact-night: #171a19;
  overflow: clip;
  color: var(--contact-ink);
  background: var(--contact-paper);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

.contact-v5 *,
.contact-v5 *::before,
.contact-v5 *::after {
  box-sizing: border-box;
}

.contact-v5 :is(h1, h2, h3, p, figure, address) {
  margin: 0;
}

.contact-v5 :is(h1, h2, h3) {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.contact-v5 :is(button, input, select, textarea) {
  font: inherit;
}

.contact-v5 [hidden] {
  display: none !important;
}

.contact-v5 :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--contact-red);
  outline-offset: 3px;
}

.contact-v5-eyebrow {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  color: var(--contact-red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.contact-v5-eyebrow > span {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

/* The opening viewport is a quiet editorial poster, anchored by one production image. */
.contact-v5-hero {
  min-height: calc(100svh - 5rem);
  color: var(--contact-ink);
  border-bottom: 1px solid var(--contact-line);
  background: var(--contact-paper-bright);
}

.contact-v5-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.8fr);
  min-height: calc(100svh - 5rem);
}

.contact-v5-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(5rem, 9vw, 9rem) clamp(3rem, 8vw, 8rem) clamp(4rem, 7vw, 7rem) 0;
}

.contact-v5-hero-copy > * {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: contact-v5-rise 700ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.contact-v5-hero-copy > :nth-child(2) { animation-delay: 80ms; }
.contact-v5-hero-copy > :nth-child(3) { animation-delay: 160ms; }
.contact-v5-hero-copy > :nth-child(4) { animation-delay: 240ms; }

@keyframes contact-v5-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-v5-hero h1 {
  max-width: 10ch;
  margin-top: 2rem;
  font-size: clamp(4rem, 7.1vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.contact-v5-hero-intro {
  max-width: 38rem;
  margin-top: 2.25rem !important;
  color: var(--contact-muted);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.7;
}

.contact-v5-hero-link {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.75rem;
  padding: 0.9rem 0;
  color: var(--contact-red);
  border-bottom: 1px solid currentColor;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-v5-hero-link i {
  font-size: 1.05rem;
  font-style: normal;
  transition: transform 220ms ease;
}

.contact-v5-hero-link:hover i,
.contact-v5-hero-link:focus-visible i {
  transform: translateY(0.28rem);
}

.contact-v5-hero-media {
  position: relative;
  min-width: 0;
  margin: clamp(2rem, 4vw, 4rem) 0;
  overflow: hidden;
  background: #504842;
  clip-path: inset(0 0 100% 0);
  animation: contact-v5-image-reveal 900ms 180ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

@keyframes contact-v5-image-reveal {
  to { clip-path: inset(0); }
}

.contact-v5-hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(18, 15, 13, 0.62), transparent 48%),
    linear-gradient(90deg, rgba(18, 15, 13, 0.18), transparent 40%);
  content: "";
}

.contact-v5-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.04);
  transform: scale(1.05);
  animation: contact-v5-image-settle 1.4s 250ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

@keyframes contact-v5-image-settle {
  to { transform: scale(1); }
}

.contact-v5-hero-media > span {
  position: absolute;
  right: 1.6rem;
  bottom: 1.5rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Four direct routes, expressed as a single editorial index rather than cards. */
.contact-v5-routes {
  padding: clamp(5rem, 8vw, 8rem) 0;
  color: var(--contact-ink);
  border-bottom: 1px solid var(--contact-line);
  background: var(--contact-paper-bright);
}

.contact-v5-routes-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.contact-v5-routes-head h2 {
  font-size: clamp(2.8rem, 5.3vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.contact-v5-routes-head p {
  max-width: 40rem;
  color: var(--contact-muted);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.7;
}

.contact-v5-route-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3.25rem, 5vw, 5.25rem);
  border-top: 1px solid var(--contact-line);
  border-bottom: 1px solid var(--contact-line);
}

.contact-v5-route {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 12.5rem;
  padding: 1.75rem 1.5rem;
  color: var(--contact-ink);
  text-decoration: none;
  transition: color 240ms ease, background 240ms ease;
}

.contact-v5-route + .contact-v5-route {
  border-left: 1px solid var(--contact-line);
}

.contact-v5-route > span {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.contact-v5-route strong {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.contact-v5-route small {
  max-width: 16rem;
  margin-top: 2.5rem;
  color: var(--contact-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  transition: color 240ms ease;
}

.contact-v5-route > i {
  flex: 0 0 auto;
  color: var(--contact-red);
  font-size: 1.2rem;
  font-style: normal;
  transition: transform 240ms ease;
}

.contact-v5-route:hover,
.contact-v5-route:focus-visible {
  color: white;
  outline-offset: -2px;
  background: var(--contact-red);
}

.contact-v5-route:hover small,
.contact-v5-route:focus-visible small,
.contact-v5-route:hover > i,
.contact-v5-route:focus-visible > i {
  color: rgba(255, 255, 255, 0.78);
}

.contact-v5-route:hover > i,
.contact-v5-route:focus-visible > i {
  transform: translate(0.2rem, -0.2rem);
}

/* Direct contact and the working form share one calm, generous plane. */
.contact-v5-enquiry {
  padding: clamp(4.5rem, 7vw, 7rem) 0 clamp(6.5rem, 10vw, 10rem);
  scroll-margin-top: 5.5rem;
  background: var(--contact-cream);
}

.contact-v5-enquiry-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.68fr) minmax(34rem, 1.32fr);
  gap: clamp(3.5rem, 8vw, 8.5rem);
  align-items: start;
}

.contact-v5-enquiry-aside {
  position: sticky;
  top: 7.5rem;
}

.contact-v5-enquiry-aside h1 {
  max-width: 8ch;
  margin-top: 2rem;
  font-size: clamp(3.2rem, 5.4vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.contact-v5-enquiry-aside > p:not(.contact-v5-eyebrow) {
  max-width: 30rem;
  margin-top: 2rem;
  color: var(--contact-muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.contact-v5-direct {
  margin-top: 3rem;
  border-top: 1px solid rgba(25, 26, 24, 0.28);
}

.contact-v5-direct > a {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  color: var(--contact-ink);
  border-bottom: 1px solid rgba(25, 26, 24, 0.28);
  text-decoration: none;
}

.contact-v5-direct span {
  color: var(--contact-red);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-v5-direct strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-v5-direct i {
  font-size: 1rem;
  font-style: normal;
  transition: transform 220ms ease;
}

.contact-v5-direct > a:hover i,
.contact-v5-direct > a:focus-visible i {
  transform: translate(0.2rem, -0.2rem);
}

.contact-v5-panel {
  overflow: hidden;
  border-top: 3px solid var(--contact-red);
  background: var(--contact-paper-bright);
  box-shadow: 0 2rem 5rem rgba(70, 49, 37, 0.12);
}

.contact-v5-form,
.contact-v5-success {
  padding: clamp(2rem, 4vw, 4.25rem);
}

.contact-v5-form-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: baseline;
  margin-bottom: 2rem;
}

.contact-v5-form-head > p {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.contact-v5-form-head > span {
  color: var(--contact-muted);
  font-size: 0.64rem;
}

.contact-v5 b {
  color: var(--contact-red);
  font-weight: inherit;
}

.contact-v5-context {
  margin: -0.5rem 0 1.5rem !important;
  padding: 0.75rem 0.9rem;
  color: var(--contact-red);
  border-left: 2px solid var(--contact-red);
  background: rgba(163, 38, 53, 0.055);
  font-size: 0.72rem;
  font-weight: 600;
}

.contact-v5-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-v5-field {
  display: block;
  min-width: 0;
}

.contact-v5-field > span {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.5rem 0.1rem;
  color: var(--contact-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.contact-v5-field:focus-within > span {
  color: var(--contact-red);
}

.contact-v5-field small {
  font-size: 0.56rem;
  font-weight: 600;
}

.contact-v5-field :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--contact-ink);
  border: 1px solid rgba(25, 26, 24, 0.22);
  border-radius: 0.75rem;
  background: #fff;
  appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-v5-field :is(input, select) {
  height: 3.65rem;
  padding: 0 1rem;
  font-size: 0.88rem;
}

.contact-v5-field select {
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--contact-muted) 50%),
    linear-gradient(135deg, var(--contact-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.contact-v5-field textarea {
  min-height: 10rem;
  padding: 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
}

.contact-v5-field :is(input, textarea)::placeholder,
.contact-v5-field select:invalid {
  color: rgba(25, 26, 24, 0.4);
}

.contact-v5-field :is(input, select, textarea):focus {
  border-color: var(--contact-red);
  outline: 0;
  background: #fffdfa;
  box-shadow: 0 0 0 3px rgba(163, 38, 53, 0.08);
}

.contact-v5-field :is(input, select, textarea):user-invalid {
  border-color: var(--contact-red);
}

.contact-v5-message {
  grid-column: 1 / -1;
}

.contact-v5-submit {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
}

.contact-v5-submit > p {
  max-width: 22rem;
  color: var(--contact-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.contact-v5-submit button,
.contact-v5-success button {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  min-width: 13.5rem;
  min-height: 3.75rem;
  padding: 0.85rem 1.25rem;
  color: white;
  border: 1px solid var(--contact-red);
  border-radius: 0;
  background: var(--contact-red);
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.contact-v5-submit button i {
  font-size: 1.05rem;
  font-style: normal;
  transition: transform 220ms ease;
}

.contact-v5-submit button:hover,
.contact-v5-success button:hover {
  color: var(--contact-red);
  background: transparent;
}

.contact-v5-submit button:hover i,
.contact-v5-submit button:focus-visible i {
  transform: translateX(0.3rem);
}

.contact-v5-submit button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.contact-v5-success {
  display: flex;
  min-height: 42rem;
  flex-direction: column;
  justify-content: center;
  outline: 0;
}

.contact-v5-success-mark {
  width: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--contact-red);
}

.contact-v5-success-mark svg {
  display: block;
  overflow: visible;
  width: 100%;
}

.contact-v5-success-mark circle,
.contact-v5-success-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.contact-v5-success-mark circle { opacity: 0.28; }

.contact-v5-success-mark path {
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: contact-v5-check 560ms 180ms ease forwards;
}

@keyframes contact-v5-check {
  to { stroke-dashoffset: 0; }
}

.contact-v5-success > p:first-of-type {
  color: var(--contact-red);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-v5-success h2 {
  max-width: 10ch;
  margin-top: 0.8rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.contact-v5-success-copy {
  max-width: 31rem;
  margin-top: 1.25rem !important;
  color: var(--contact-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.contact-v5-success-copy strong {
  color: var(--contact-ink);
  font-weight: 650;
}

.contact-v5-success button {
  align-self: flex-start;
  margin-top: 2rem;
}

/* The page closes with real offices, not a generic marketing CTA. */
.contact-v5-offices {
  padding: clamp(6.5rem, 11vw, 11rem) 0;
  color: #f8f4ec;
  background: var(--contact-red);
}

.contact-v5-offices .contact-v5-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.contact-v5-offices :is(a, button):focus-visible {
  outline-color: #fff;
}

.contact-v5-offices-head h2 {
  max-width: 11ch;
  margin-top: 2rem;
  color: #f8f4ec;
  font-size: clamp(3.6rem, 7vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.contact-v5-office-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-v5-office {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.8fr);
  gap: 2rem 3rem;
  min-height: 25rem;
  padding: clamp(2rem, 4vw, 4rem);
}

.contact-v5-map-frame {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: clamp(13rem, 18vw, 17rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #e9dfce;
}

.contact-v5-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.72) contrast(0.96) sepia(0.12);
}

.contact-v5-office + .contact-v5-office {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-v5-office header {
  align-self: start;
}

.contact-v5-office h3 {
  color: #f8f4ec;
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.contact-v5-office header p {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-v5-office address {
  max-width: 21rem;
  color: rgba(248, 244, 236, 0.78);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.7;
}

.contact-v5-office-contact {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-self: end;
}

.contact-v5-office-contact a {
  color: rgba(248, 244, 236, 0.9);
  font-size: 0.84rem;
  text-decoration-color: transparent;
  text-underline-offset: 0.25rem;
}

.contact-v5-office-contact a:hover,
.contact-v5-office-contact a:focus-visible {
  color: white;
  text-decoration-color: currentColor;
}

.contact-v5-map {
  display: inline-flex;
  justify-content: space-between;
  gap: 2rem;
  align-self: end;
  padding: 1rem 0;
  color: #f8f4ec;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-v5-map i {
  font-size: 1rem;
  font-style: normal;
  transition: transform 220ms ease;
}

.contact-v5-map:hover i,
.contact-v5-map:focus-visible i {
  transform: translate(0.2rem, -0.2rem);
}

@media (max-width: 1020px) {
  .contact-v5-hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
  }

  .contact-v5-route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-v5-route:nth-child(3) {
    border-left: 0;
  }

  .contact-v5-route:nth-child(n + 3) {
    border-top: 1px solid var(--contact-line);
  }

  .contact-v5-enquiry-layout {
    grid-template-columns: minmax(17rem, 0.6fr) minmax(27rem, 1.4fr);
    gap: 3.5rem;
  }

  .contact-v5-office {
    grid-template-columns: 1fr;
    min-height: 27rem;
  }
}

@media (max-width: 820px) {
  .contact-v5-hero,
  .contact-v5-hero-layout {
    min-height: 0;
  }

  .contact-v5-hero-layout {
    grid-template-columns: 1fr;
  }

  .contact-v5-hero-copy {
    min-height: 38rem;
    padding: 5.5rem 0 4rem;
  }

  .contact-v5-hero-media {
    min-height: 32rem;
    margin: 0;
  }

  .contact-v5-routes-head,
  .contact-v5-enquiry-layout {
    grid-template-columns: 1fr;
  }

  .contact-v5-routes-head {
    gap: 2rem;
  }

  .contact-v5-enquiry-aside {
    position: static;
  }

  .contact-v5-enquiry-aside h1 {
    max-width: 11ch;
  }

  .contact-v5-direct {
    max-width: 34rem;
  }

  .contact-v5-office-list {
    grid-template-columns: 1fr;
  }

  .contact-v5-office {
    min-height: 0;
  }

  .contact-v5-office + .contact-v5-office {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }
}

@media (max-width: 580px) {
  .contact-v5-hero-copy {
    min-height: 34rem;
    padding: 4.5rem 0 3rem;
  }

  .contact-v5-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.25rem, 14.5vw, 5rem);
  }

  .contact-v5-hero-media,
  .contact-v5-hero-media img {
    min-height: 25rem;
  }

  .contact-v5-route-list {
    grid-template-columns: 1fr;
  }

  .contact-v5-route {
    min-height: 10.5rem;
  }

  .contact-v5-route + .contact-v5-route,
  .contact-v5-route:nth-child(3) {
    border-top: 1px solid var(--contact-line);
    border-left: 0;
  }

  .contact-v5-enquiry {
    padding: 5.5rem 0;
  }

  .contact-v5-enquiry-layout {
    gap: 3rem;
  }

  .contact-v5-direct > a {
    grid-template-columns: 4rem minmax(0, 1fr) auto;
  }

  .contact-v5-form,
  .contact-v5-success {
    padding: 1.5rem;
  }

  .contact-v5-fields {
    grid-template-columns: 1fr;
  }

  .contact-v5-submit {
    display: block;
  }

  .contact-v5-submit button {
    width: 100%;
    margin-top: 1.25rem;
  }

  .contact-v5-office {
    padding: 2.25rem 0;
  }
}

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