:root {
  --text: #ffffff;
  --muted: #5a6666;
  --accent: #0091ad;
  --button: #013ecd;
  /* Habanify-style display headlines (match home / contact pages). */
  --font-headline: "Red Rose", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", system-ui, sans-serif;
  background: #0a0c0e;
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.25rem;
  padding: 0.5rem clamp(1rem, 4vw, 2.75rem);
  background: rgba(8, 10, 12, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 145, 173, 0.12);
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: clamp(1.35rem, 2.8vw, 1.75rem);
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.65rem, 2vw, 1.35rem);
}

.site-nav a {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    text-shadow 0.22s ease,
    color 0.22s ease;
}

.site-nav a:hover {
  transform: scale(1.08);
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.55),
    0 0 28px rgba(0, 145, 173, 0.45);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-footer {
  margin-top: auto;
  padding: clamp(3.25rem, 9vw, 6rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
  background: rgba(8, 10, 12, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 145, 173, 0.12);
  color: var(--text);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 3rem);
}

.site-footer__logo {
  display: inline-flex;
  align-self: flex-start;
  flex-shrink: 0;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 2.75rem);
  width: 100%;
}

@media (min-width: 720px) {
  .site-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.site-footer__logo img {
  height: clamp(1.75rem, 3.5vw, 2.35rem);
  width: auto;
  display: block;
}

.site-footer__heading {
  margin: 0 0 1.1rem;
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.site-footer__text,
.site-footer__links {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(0.88rem, 1.2vw, 0.95rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__links a,
.site-footer__text a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__text a:hover {
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 145, 173, 0.35);
}

.site-footer__links a:focus-visible,
.site-footer__text a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer__contact-inner {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

/* First address line — defines right edge (e.g. last glyph of “North,”). */
.site-footer__addr-line1 {
  white-space: nowrap;
}

/* Ruler matches that line’s width; icons sit in the same horizontal band. */
.site-footer__social-wrap {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 0.7rem;
  vertical-align: top;
}

.site-footer__social-width-ruler {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  white-space: nowrap;
  line-height: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(0.88rem, 1.2vw, 0.95rem);
  font-weight: 400;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35em 0.45em;
  width: 100%;
  box-sizing: border-box;
}

.site-footer__social-link {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.site-footer__social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer__social-link img {
  width: clamp(1.1rem, 3.1vw, 1.5rem);
  height: clamp(1.1rem, 3.1vw, 1.5rem);
  display: block;
  object-fit: contain;
}

.site-footer__copyright {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 0.85rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

.page-main {
  flex: 1;
  padding: 2rem clamp(1.25rem, 5vw, 3.5rem);
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
}

.page-main h1 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.page-main p {
  color: var(--muted);
  line-height: 1.65;
}

.page-main a {
  color: var(--accent);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: var(--button);
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* London hero photos — cover viewport on all screen sizes */
.home-viewport,
.home-ui {
  min-height: 100vh;
  min-height: 100dvh;
}

.home-morph {
  background: #0a0c0e;
}

.home-morph .home-base {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-morph .home-base picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-morph .home-base img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  image-rendering: auto;
  image-rendering: high-quality;
}

.wf-company__media picture,
.wf-company__media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* About photographic hero */
.wf-about-hero {
  min-height: max(32rem, 72vh);
  min-height: max(32rem, 72dvh);
}

.wf-about-hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.wf-about-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  image-rendering: auto;
  image-rendering: high-quality;
}

@media (max-width: 1024px) {
  .home-morph .home-base img {
    object-position: center 32%;
  }

  .home-main {
    justify-content: flex-end;
    padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: max(2.25rem, calc(env(safe-area-inset-bottom, 0px) + 1.75rem));
  }

  .page-home .home-main h1 {
    font-size: clamp(1.25rem, 5.8vw, 1.85rem);
    line-height: 1.28;
  }

  .page-ecosystem .home-main h1 {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
    max-width: 14ch;
  }

  .wf-about-hero {
    min-height: max(28rem, 78dvh);
    justify-content: flex-end;
    padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 2rem));
  }

  .wf-about-hero__bg img {
    object-position: center 36%;
  }
}

@media (max-width: 600px) {
  .home-morph .home-base img {
    object-position: center 28%;
  }

  .home-morph {
    transform-origin: 50% 32%;
  }

  .home-ui {
    transform-origin: 50% 32%;
  }

  .wf-about-hero__bg img {
    object-position: center 30%;
  }

  .wf-about-hero h1 {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
  }
}

/* Pinned header (inner pages) */
.site-header--pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* About, Terms, Privacy — shared layout */
.page-inner {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0c0e;
}

.wf-inner {
  flex: 1;
  background: #0091ad;
  padding: calc(3.75rem + clamp(1rem, 4vw, 2rem)) 0 clamp(3.5rem, 10vw, 7rem);
}

.wf-inner .wf-shell {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  box-sizing: border-box;
}

.wf-inner-eyebrow {
  margin: 0 0 0.75rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.wf-inner h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.wf-inner-lead {
  margin: 0 0 1.5rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  max-width: 62ch;
}

.wf-inner-lead a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.wf-inner-lead a:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.wf-inner-prose {
  max-width: 65ch;
}

.wf-inner-prose > p,
.wf-inner-prose > ul,
.wf-inner-prose > ol {
  margin: 0 0 1rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.94);
}

.wf-inner-prose > ul,
.wf-inner-prose > ol {
  padding-left: 1.25rem;
}

.wf-inner-prose > ul:last-child,
.wf-inner-prose > ol:last-child,
.wf-inner-prose > p:last-child {
  margin-bottom: 0;
}

.wf-inner-prose h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}

.wf-inner-prose h2:first-child {
  margin-top: 0;
}

.wf-inner-prose h3 {
  margin: 1.35rem 0 0.5rem;
  font-family: var(--font-headline);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.wf-inner-prose ul li {
  margin-bottom: 0.35rem;
}

.wf-inner-prose ul li:last-child {
  margin-bottom: 0;
}

.wf-inner-prose a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.wf-inner-prose .wf-inner-note {
  margin-top: 1.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(7px);
  pointer-events: none;
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s ease-out;
  transition-delay: var(--sr-delay, 0s);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }
}
