﻿:root {
  --lime-accent: #d6ed17;
  --green-deep: #2c6e51;
}

.nav-cta:hover {
  background: var(--lime-accent);
  color: var(--ink);
}

.nav-cta:hover .icon {
  color: var(--green-deep);
}

.btn--primary .btn-dot {
  background: var(--lime-accent);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--lime-accent);
  color: var(--ink);
}

.btn--primary:hover .btn-dot {
  background: var(--green);
  color: var(--ink);
}

.menu nav a:hover {
  background: var(--lime-accent);
  color: var(--ink);
}

.card-spark {
  border-color: var(--green);
  background: var(--green);
  color: var(--ink);
}

.approach-card:nth-child(1) .card-spark,
.approach-card:nth-child(4) .card-spark {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--green-deep);
}

.approach-card:hover .card-spark {
  border-color: var(--lime-accent);
  background: var(--lime-accent);
  color: var(--ink);
}

.contact {
  background: var(--green);
  color: var(--ink);
  --line: rgba(35, 31, 32, 0.26);
  --line-light: rgba(35, 31, 32, 0.28);
}

.contact::before {
  background: var(--lime-accent);
  opacity: 1;
}

.contact-glow {
  background: var(--cream);
  opacity: 0.1;
  animation: none;
}

.cursor-glow {
  background: var(--lime-accent);
  opacity: 0.14;
}

.cursor-ring {
  border-color: var(--lime-accent);
}

.cursor-leaf {
  background: var(--lime-accent);
}

.cursor.is-link .cursor-ring {
  border-color: var(--lime-accent);
}

.cursor.is-link .cursor-leaf {
  background: var(--lime-accent);
}

.contact .eyebrow--light {
  color: var(--ink);
}

.contact-main h2 {
  color: var(--ink);
}

.contact-sub {
  display: inline-block;
  padding: 5px 9px;
  background: var(--lime-accent);
  color: var(--ink);
}

.contact-intro > p:not(.contact-sub) {
  color: var(--ink);
}

.contact-actions .btn--lime {
  background: var(--lime-accent);
  color: var(--ink);
}

.contact-actions .btn--lime .btn-dot {
  background: transparent;
  color: var(--ink);
}

.contact-actions .btn--lime:hover {
  background: var(--cream);
  color: var(--ink);
}

.contact-actions .btn--lime:hover .btn-dot {
  color: var(--green-deep);
}

.contact-actions .btn--ghost-light {
  border-color: rgba(35, 31, 32, 0.4);
  background: rgba(35, 31, 32, 0.04);
  color: var(--ink);
}

.contact-actions .btn--ghost-light .btn-dot {
  background: rgba(35, 31, 32, 0.08);
  color: var(--ink);
}

.contact-actions .btn--ghost-light:hover {
  border-color: var(--ink);
  background: var(--cream);
  color: var(--ink);
}

.contact-col h3 {
  color: var(--ink);
}

.contact-col h3::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--lime-accent);
  vertical-align: 1px;
}

.contact-col address,
.contact-col p {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  --line: rgba(35, 31, 32, 0.22);
  --line-light: rgba(35, 31, 32, 0.24);
}

.footer-brand-link b {
  color: var(--ink);
}

.footer-brand-link small {
  color: var(--green-deep);
}

.footer-brand > p {
  color: rgba(35, 31, 32, 0.7);
}

.footer-nav a {
  color: var(--ink);
}

.footer-nav a:hover {
  color: var(--ink);
  background: var(--green);
}

.footer-wordmark,
.footer-wordmark span {
  color: var(--green-deep);
}

.footer-wordmark span + span {
  color: var(--ink);
}

.footer-wordmark i {
  color: var(--green-deep);
}

.footer-bottom {
  align-items: center;
  color: rgba(35, 31, 32, 0.7);
}

.footer-bottom > p {
  margin: 0;
}

/* Beats style.css `.footer-bottom p:nth-child(2)` (cream, tiny) so the credit matches the copyright line. */
.footer-bottom p.footer-credit {
  grid-column: 1 / -1;
  max-width: none;
  font-size: inherit;
  color: inherit;
  text-align: center;
}

@media (max-width: 760px) {
  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .to-top {
    justify-self: center;
  }
}

@media (min-width: 761px) {
  .footer-bottom p.footer-credit {
    grid-row: 2;
    margin-top: 6px;
  }

  .footer-bottom .to-top {
    grid-row: 1;
  }
}

.footer-credit a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(35, 31, 32, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--green-deep);
  text-decoration-color: currentColor;
}

.to-top {
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.to-top:hover {
  border-color: var(--lime-accent);
  background: var(--lime-accent);
  color: var(--ink);
}

.hero-art picture {
  width: clamp(340px, 38vw, 540px);
}

@media (max-width: 820px) {
  .hero-art picture {
    width: min(92vw, 430px);
  }
}

@media (max-width: 540px) {
  .hero-art picture {
    width: min(90vw, 380px);
  }
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.site-loader::before {
  content: "";
  position: absolute;
  inset: -10% 0 0;
  width: 100%;
  height: 110%;
  place-self: stretch;
  background:
    linear-gradient(90deg, rgba(12, 62, 116, 0.8) 0%, rgba(12, 62, 116, 0.64) 40%, rgba(12, 62, 116, 0) 72%),
    linear-gradient(180deg, rgba(242, 241, 220, 0) 55%, rgba(242, 241, 220, 0.94) 94%, #f2f1dc 100%),
    url("../img/theme-sky.webp") center 36% / cover no-repeat,
    #f2f1dc;
  transition: opacity 0.4s ease;
}

.site-loader.is-leaving::before {
  opacity: 0;
}

.site-loader[hidden] {
  display: none !important;
}

.loader-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
}

.loader-art {
  position: relative;
  width: clamp(270px, 38vw, 470px);
  aspect-ratio: 599 / 477;
  overflow: hidden;
}

.loader-art img {
  position: absolute;
  top: -4.8218%;
  left: -10.3506%;
  display: block;
  width: 116.8614%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 22px 26px rgba(6, 29, 55, 0.35));
  animation: loaderEEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity, transform;
}

@keyframes loaderEEnter {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.is-e-handoff .hero-art picture {
  animation-play-state: paused !important;
}

@media (max-width: 620px) {
  .loader-art {
    width: min(76vw, 360px);
  }
}

@media (max-height: 600px) {
  .loader-art {
    width: min(48vh, 76vw, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader {
    display: none !important;
  }

  html.is-loading,
  html.is-loading body {
    overflow: auto !important;
  }
}

html:not(.js) .site-loader {
  display: none !important;
}


@media (max-width: 1100px) {
  .brand img {
    width: 44px;
  }

  .brand-name {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .primary-nav {
    font-size: 0.85rem;
  }

  .primary-nav a {
    padding: 9px 9px;
  }

  .nav-cta {
    padding: 11px 16px;
    font-size: 0.85rem;
  }
}

/* Hero title: keep every line on one row and unclipped */
.hero-copy {
  max-width: 780px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.hero-title .line {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero-title {
    font-size: clamp(2.1rem, 9vw, 4.4rem);
  }
}

/* One section per screen */
.section,
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  scroll-margin-top: 0;
}

.contact {
  padding-block: clamp(96px, 10vw, 130px) clamp(56px, 6vw, 80px);
}

/* Contact typography */
.contact-main h2 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 850;
  font-stretch: 82%;
  line-height: 0.93;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.contact-sub {
  font-size: 0.95rem;
}

.contact-intro > p:not(.contact-sub) {
  max-width: 50ch;
  font-size: 1.2rem;
  line-height: 1.65;
}

.contact-actions .btn {
  font-size: 0.95rem;
}

.contact-col h3 {
  font-size: 0.82rem;
}

.contact-col address,
.contact-col p {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Footer: drop the empty band left by the removed wordmark */
.footer-top {
  padding-bottom: 0;
  border-bottom: 0;
}

.footer-bottom {
  margin-top: clamp(28px, 3.5vw, 44px);
}

/* Approach cards on mobile: green / white strips */
@media (max-width: 760px) {
  .approach-card:nth-child(3) {
    background: var(--green);
    border-color: var(--ink);
    color: var(--ink);
  }

  .approach-card:nth-child(3)::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -64px;
    width: 150px;
    height: 150px;
    border: 18px solid rgba(242, 241, 220, 0.28);
    border-radius: 50%;
  }

  .approach-card:nth-child(4) {
    background: var(--cream);
    border-color: var(--line);
  }

  .approach-card:nth-child(4)::after {
    content: none;
  }
}

/* Larger supporting copy */
.approach-card p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.process-head > p {
  max-width: 52ch;
  font-size: 1.25rem;
  line-height: 1.65;
}

.footer-nav {
  font-size: 1rem;
}

.footer-nav a {
  padding: 10px 16px;
}

/* Industries we support: highlighted panel */
.streams-industries {
  margin-top: 32px;
  padding: 26px 28px 24px;
  border: 0;
  border-radius: 26px 26px 46px 26px;
  background: var(--green);
}

.industries-label {
  display: inline-block;
  padding: 6px 12px;
  background: var(--lime-accent);
  font-size: 0.8rem;
  color: var(--ink);
}

.streams-industries > p:nth-child(2) {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}

.disclaimer {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(35, 31, 32, 0.78);
}

/* Larger hero logo */
.hero-brand img {
  width: clamp(230px, 27vw, 360px);
}

/* Mobile: keep the header logo from collapsing */
.brand picture {
  flex: 0 0 auto;
}

@media (max-width: 620px) {
  .brand img {
    width: 40px;
  }

  .brand-name {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  /* Mobile loader: clean vertical sky fade, no sideways blue wash */
  .site-loader::before {
    background:
      linear-gradient(180deg, rgba(242, 241, 220, 0) 55%, rgba(242, 241, 220, 0.94) 94%, #f2f1dc 100%),
      url("../img/theme-sky.webp") center 36% / cover no-repeat,
      #f2f1dc;
  }
}

/* The cropped loader art clipped its own drop shadow into a hard edge */
.loader-art img {
  filter: none;
}

/* Footer: full brand logo */
.footer-brand-link img {
  width: clamp(220px, 24vw, 320px);
}

/* Full-colour hero logo sits on a cream plate so it reads on the blue sky */
.hero-brand picture {
  display: inline-block;
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: 28px;
  background: var(--cream);
}

.hero-brand img {
  display: block;
  width: clamp(190px, 22vw, 300px);
  filter: none;
}

/* Hero art: just the animated "e", larger */
.float-leaf,
.hero-halo,
.hero-orbit {
  display: none;
}

.hero-art picture {
  width: min(100%, 720px);
}

@media (max-width: 820px) {
  .hero-art picture {
    width: min(100%, 540px);
  }
}

@media (max-width: 540px) {
  .hero-art picture {
    width: min(104%, 440px);
  }
}

/* Hero logo: white version of the logo straight on the sky, no plate */
.hero-brand picture {
  padding: 0;
  border-radius: 0;
  background: none;
}

.hero-brand img {
  width: clamp(220px, 25vw, 340px);
  filter:
    brightness(0) invert(1)
    drop-shadow(0 10px 22px rgba(6, 29, 55, 0.35));
}

/* Hero logo: same full-colour logo as the footer, lifted off the sky with a soft light glow */
.hero-brand img {
  filter:
    drop-shadow(0 0 10px rgba(242, 241, 220, 0.95))
    drop-shadow(0 0 26px rgba(242, 241, 220, 0.7));
}

.hero-brand img {
  filter:
    drop-shadow(0 0 1px #f2f1dc)
    drop-shadow(0 0 3px #f2f1dc)
    drop-shadow(0 0 3px #f2f1dc)
    drop-shadow(0 0 14px rgba(242, 241, 220, 0.8));
}

/* Bigger animated "e" on desktop: let it use the right-hand gutter */
@media (min-width: 821px) {
  .hero-art picture {
    justify-self: end;
    margin-right: -10%;
    width: min(128%, 860px, 108vh);
  }
}

@media (max-width: 820px) {
  .hero-art picture {
    width: min(112%, 600px);
  }
}

/* Plain fade-out (phones / no hand-off): the loader art must leave with the background,
   otherwise it hangs over the hero content while the page appears behind it */
.loader-inner {
  transition: opacity 0.35s ease;
}

html:not(.is-e-handoff) .site-loader.is-leaving .loader-inner {
  opacity: 0;
}

/* Phones: logo and title first, animated "e" below it, all on the first screen */
@media (max-width: 820px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 92px 0 28px;
  }

  .hero-grid {
    gap: 4px;
  }

  .hero-art {
    min-height: 0;
    margin-top: 0;
  }

  .hero-art picture {
    justify-self: center;
    margin-right: 0;
    width: min(64vw, 280px);
  }

  .hero-brand img {
    width: clamp(170px, 46vw, 220px);
  }

  .hero-title {
    margin-top: 12px;
    font-size: clamp(2rem, 9vw, 3.4rem);
  }
}

/* Phones: keep the sky blue behind the title; cream fade starts below it */
@media (max-width: 820px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(12, 62, 116, 0.8) 0%, rgba(12, 62, 116, 0.64) 40%, rgba(12, 62, 116, 0.2) 100%),
      linear-gradient(180deg, rgba(242, 241, 220, 0) 72%, rgba(242, 241, 220, 0.94) 96%, var(--paper) 100%),
      url("../img/theme-sky.webp") center 20% / cover no-repeat,
      var(--paper);
  }
}

/* Hero logo: the footer logo as-is, no glow or shadow */
.hero-brand img {
  filter: none;
}

/* Hero sky: light cloud fade sits at the top-left instead of the bottom */
.hero {
  background: var(--paper);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background: url("../img/theme-sky.webp") center 64% / cover no-repeat;
  transform: rotate(180deg);
}

.hero::after {
  background: linear-gradient(0deg, rgba(12, 62, 116, 0.85) 0%, rgba(12, 62, 116, 0.7) 50%, rgba(12, 62, 116, 0.5) 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 0% 0%, transparent 0%, transparent 45%, #000 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 0% 0%, transparent 0%, transparent 45%, #000 100%);
}

.hero > .container,
.hero-grid {
  position: relative;
  z-index: 1;
}

/* Loader sky: same top-left light fade as the hero */
.site-loader::before {
  background: url("../img/theme-sky.webp") center 64% / cover no-repeat, #f2f1dc;
  transform: rotate(180deg);
}

.site-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(12, 62, 116, 0.85) 0%, rgba(12, 62, 116, 0.7) 50%, rgba(12, 62, 116, 0.5) 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 0% 0%, transparent 0%, transparent 45%, #000 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 0% 0%, transparent 0%, transparent 45%, #000 100%);
  transition: opacity 0.4s ease;
}

.site-loader.is-leaving::after {
  opacity: 0;
}
