/* Colour derived from the London DTM hero: #9075a2
   Complementary sage sits ~180° around the wheel, used as a quiet accent. */
:root {
  --brand: #9075a2;
  --brand-dark: #6d557c;
  --brand-deep: #2a2230;
  --brand-soft: #e8e0ee;
  --mist: #f4f0f7;
  --paper: #fcfbfd;
  --ink: #2a2230;
  --muted: #5c5464;
  --line: rgba(144, 117, 162, 0.28);
  --complement: #6f8a56;
  --hero-fg: #f8f5fa;
  --header-h: 4.25rem;
  --wrap: 70rem;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Titillium Web", system-ui, sans-serif;
  --shadow-header: 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--complement);
  outline-offset: 3px;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--brand-deep);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.logo {
  height: 1.7rem;
  width: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  color: #fff;
  background: linear-gradient(180deg, rgba(42, 34, 48, 0.35), transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.is-page .site-header {
  background: rgba(42, 34, 48, 0.92);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header__brand {
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.site-header__brand .logo {
  color: currentColor;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

/* Hero */
.hero,
.page-hero,
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--hero-fg);
}

.hero-media,
.hero__shade,
.page-hero__shade,
.cta__shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: contrast(1.12);
}

.hero__shade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 34, 48, 0.22) 0%, rgba(42, 34, 48, 0.06) 38%, rgba(42, 34, 48, 0.24) 100%);
}

.page-hero__shade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 34, 48, 0.1) 0%, rgba(42, 34, 48, 0.2) 100%);
}

.cta__shade {
  z-index: 1;
  pointer-events: none;
  background: rgba(42, 34, 48, 0.52);
}

.hero__content,
.hero__scroll,
.page-hero__inner,
.cta__inner {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 5.5rem;
  text-align: center;
}

.hero__content {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  max-width: 46rem;
}

.hero__logo .logo {
  height: clamp(3.4rem, 9vw, 5.4rem);
  width: auto;
  color: #fff;
  filter: drop-shadow(0 6px 20px rgba(20, 14, 26, 0.45));
}

.hero__tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(20, 14, 26, 0.4);
}

.hero__tagline a {
  color: #fff;
  text-decoration: none;
  background-image: linear-gradient(var(--complement), var(--complement));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.hero__tagline a:hover {
  color: #fff;
  background-size: 100% 2px;
}

.hero__dot {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  transform: translateX(-50%);
  color: #fff;
}

.hero__scroll span {
  width: 1.25rem;
  height: 1.25rem;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  opacity: 0.9;
}

/* Intro + pillars */
.intro {
  padding: 5.5rem 0 4rem;
  scroll-margin-top: var(--header-h);
}

.intro__inner {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  font-size: 1.2rem;
  color: var(--muted);
}

.intro__inner p {
  margin: 0;
}

.pillar {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.pillar--alt {
  background: var(--mist);
}

.pillar__grid {
  display: grid;
  gap: 1.75rem 4rem;
}

.pillar__index {
  margin: 0 0 0.65rem;
  color: var(--complement);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.pillar__header h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.pillar__body {
  max-width: 40rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.pillar__body p + p {
  margin-top: 1.1rem;
}

@media (min-width: 800px) {
  .pillar__grid {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

/* CTA */
.cta {
  min-height: 22rem;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.25rem;
  text-align: center;
}

.cta__shade {
  background: rgba(42, 34, 48, 0.62);
}

.cta__inner {
  max-width: 36rem;
}

.cta h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta p {
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.84);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--mist);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

/* Inner pages */
.page-hero {
  min-height: 24rem;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
}

.page-hero__inner h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-shadow: 0 2px 16px rgba(20, 14, 26, 0.35);
}

.page-body {
  padding: 4.25rem 0 5.5rem;
}

.page-body__inner {
  max-width: 36rem;
}

.page-body a {
  color: var(--brand-dark);
}

.email-link {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  background-image: linear-gradient(var(--complement), var(--complement));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.email-link:hover {
  color: var(--brand-dark);
  background-size: 100% 2px;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 1.75rem;
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.site-footer__mark,
.site-footer__copy {
  margin: 0;
}

.site-footer__mark {
  color: #fff;
  font-weight: 600;
}

.hero-attribution {
  z-index: 1;
  position: absolute;
  right: 1em;
  bottom: 0.25em;
  font-size: 0.75em;
}

.map-hero {
    width: 100vw;
    height: 100vh;
}

@media (max-width: 640px) {
  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero__tagline {
    flex-direction: column;
    gap: 0.45rem;
  }

  .hero__dot {
    display: none;
  }

  .intro,
  .pillar {
    padding-block: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .hero__tagline a,
  .email-link,
  .site-header {
    transition: none;
  }
}
