/* ==========================================================================
   We Landed — global.css  v3.1
   Global tokens, pills, floating news pill, services section,
   project intro and dark-page body copy.
   Fonts are inherited from the site's existing type styles.
   Dark mode: add the class "darkPage" to <html> or <body>.
   ========================================================================== */

:root {
  --wl-bg: #ffffff;
  --wl-fg: #000000;
  --wl-muted: #666666;
  --wl-rule: #d9d9d9;
  --wl-pill-hover-bg: #000000;
  --wl-pill-hover-fg: #ffffff;
  --wl-content-max: 1200px;
  --wl-col-gap: 40px;

  /* Section spacing (already subtracts the ~17px Squarespace code-block padding) */
  --wl-space-top: clamp(48px, calc(5.8vw - 17px), 120px);      /* intro text -> pills    */
  --wl-space-between: clamp(32px, calc(4.7vw - 19px), 96px);   /* pills -> services      */
  --wl-space-bottom: clamp(64px, calc(7vw - 17px), 160px);     /* services -> next block */

  --wl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wl-dur: 240ms;

  /* Load-in animation */
  --wl-intro-delay: 1.5s;     /* wait before the first pill appears */
  --wl-stagger: 70ms;         /* gap between each pill (small = more overlap) */
  --wl-pill-fade: 1s;         /* length of each pill fade           */
  --wl-fade: 400ms;           /* base fade length for the columns   */
  --wl-pill-count: 8;         /* services start after the last pill */
  --wl-col-stagger: 120ms;    /* gap between each services column   */
  --wl-col-rise: 24px;        /* how far each column slides up      */

  /* News pill: one fixed corner radius (half the closed height) so the corners
     never change shape — only the height grows, like a 9-slice */
  --wl-press-radius: 31px;
  --wl-press-open: 420ms;     /* expand / collapse length           */
  --wl-press-gap: 24px;       /* floating pill: distance from the screen edges */
  --wl-nav-width: 260px;      /* Squarespace side nav width — the pill slides with it */
  --wl-ticker-speed: 18s;     /* mobile: one full loop of the scrolling outlet names */
}

.darkPage {
  --wl-bg: #000000;
  --wl-fg: #ffffff;
  --wl-muted: #adadad;        /* dark-page body copy (Figma) */
  --wl-rule: #383838;
  --wl-pill-hover-bg: #ffffff;
  --wl-pill-hover-fg: #000000;
}

/* Pills */
.wl-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: var(--wl-space-top) auto 0 !important;
  padding: 0 !important;
  max-width: 960px;           /* wide enough for 2 rows; 8 tags land 5+3 or 4+4 */
  list-style: none;
}
.wl-tags > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.wl-tags > li::before { content: none !important; }
.wl-tag {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border: 1px solid var(--wl-rule);     /* same line colour as the services dividers */
  border-radius: 999px;
  background: transparent;
  color: var(--wl-muted) !important;   /* same colour as the body copy */
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--wl-dur) var(--wl-ease),
              color var(--wl-dur) var(--wl-ease);
}
#content a.wl-tag,
.darkPage #content a.wl-tag {
  padding: 0 24px !important;
  margin: 0 !important;
}
a.wl-tag:hover,
a.wl-tag:focus-visible {
  border-color: var(--wl-pill-hover-bg);
  background-color: var(--wl-pill-hover-bg);
  color: var(--wl-pill-hover-fg) !important;
  outline: none;
}

/* News pill */
.wl-press {
  max-width: var(--wl-content-max);
  margin: 0 auto;
  border: 1px solid var(--wl-fg) !important;
  border-radius: var(--wl-press-radius);
  color: var(--wl-fg);
  box-shadow: none !important;
  overflow: hidden;
}
.wl-press__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  min-height: 60px;
  padding: 0 12px 0 32px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  color: inherit;
  font: inherit;
  line-height: 1.2 !important;
  text-align: left;
  cursor: pointer;
}
.wl-press__label {
  flex: 0 0 auto;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wl-press__outlets {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Ticker parts (built by global.js). Desktop shows one static copy. */
.wl-press__track {
  display: inline;            /* inline on desktop so the ellipsis still works */
  white-space: nowrap;
}
.wl-press__seg + .wl-press__seg { display: none; }
.wl-press__count { display: none; }
@keyframes wl-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.wl-press__action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.wl-press__icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--wl-fg) !important;
  border-radius: 50%;
}
.wl-press__icon::before,
.wl-press__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--wl-fg);
  transform: translate(-50%, -50%);
  transition: transform var(--wl-dur) var(--wl-ease);
}
.wl-press__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.wl-press.is-open .wl-press__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.wl-press__action-close { display: none; }
.wl-press.is-open .wl-press__action-open { display: none; }
.wl-press.is-open .wl-press__action-close { display: inline; }
.wl-press__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--wl-press-open) cubic-bezier(0.65, 0, 0.35, 1);
}
.wl-press.is-open .wl-press__panel { grid-template-rows: 1fr; }
.wl-press__panel-inner { overflow: hidden; }
.wl-press__list {
  margin: 0 32px 12px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--wl-rule);
}
.wl-press__item { border-bottom: 1px solid var(--wl-rule); }
.wl-press__link {
  display: grid;
  grid-template-columns: 110px 150px 1fr auto;
  align-items: baseline;
  gap: 0;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
}
.wl-press__date { font-size: 12px !important; color: var(--wl-muted); }
.wl-press__source {
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wl-press__title {
  padding-right: 32px;
  font-size: 16px !important;
  line-height: 1.35 !important;
}
.wl-press__read {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
#content .wl-press__link,
.darkPage #content .wl-press__link {
  padding: 18px 0 !important;
  margin: 0 !important;
}
.wl-press__link:hover .wl-press__title,
.wl-press__link:focus-visible .wl-press__title {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Services section */
.wl-services {
  margin: var(--wl-space-between) auto var(--wl-space-bottom) !important;
  padding: 0;
}
.wl-services__tags {
  margin-top: 0 !important;
  margin-bottom: clamp(48px, 4.6vw, 96px) !important;
}
.wl-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.4vw, var(--wl-col-gap));
  max-width: min(var(--wl-content-max), 72vw);
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none;
}
.wl-services__col {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.wl-services__col::before,
.wl-services__list li::before { content: none !important; }
.wl-services__heading,
#content .wl-services__heading,
.darkPage #content .wl-services__heading {
  margin: 0 !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--wl-rule) !important;
  color: var(--wl-fg) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
.wl-services__list {
  margin: 18px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}
.wl-services__list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  color: var(--wl-muted) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.02em;
}
.wl-services + .wl-press,
.wl-services .wl-press { margin-top: 120px; }

/* Responsive */
@media (max-width: 1024px) {
  .wl-tags { gap: 10px; }
  .wl-tag {
    height: 38px;
    padding: 0 16px;
    font-size: 12px !important;
  }
  #content a.wl-tag,
  .darkPage #content a.wl-tag { padding: 0 16px !important; }
  .wl-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
    max-width: none;
  }
  .wl-press__link { grid-template-columns: 96px 130px 1fr; }
  .wl-press__read { display: none; }
}

@media (max-width: 640px) {
  :root {
    --wl-space-top: 40px;
    --wl-space-between: 48px;   /* more room between tags and services on phones */
    --wl-space-bottom: 56px;
  }
  .wl-services__grid { gap: 36px 24px; }
  .wl-tags { gap: 8px; }
  .wl-tag {
    height: 30px;
    padding: 0 14px;
    font-size: 10px !important;
  }
  .wl-services__heading,
  #content .wl-services__heading,
  .darkPage #content .wl-services__heading {
    padding-bottom: 10px !important;
    font-size: 11px !important;
  }
  .wl-services__list { margin-top: 14px !important; }
  .wl-services__list li {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
  .wl-press {
    width: calc(100% - 40px);
    --wl-press-radius: 28px;
  }
  /* One row: NEWSROOM | scrolling outlet names | count + */
  .wl-press__bar {
    gap: 14px;
    min-height: 56px;
    padding: 0 10px 0 20px !important;
  }
  .wl-press__outlets {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px !important;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .wl-press__track {
    display: inline-block;
    animation: wl-marquee var(--wl-ticker-speed, 18s) linear infinite;
  }
  .wl-press__seg + .wl-press__seg { display: inline; }
  .wl-press__seg::after { content: "\00a0\00a0·\00a0\00a0"; }
  .wl-press__action { gap: 10px; }
  .wl-press__count { display: inline; }
  .wl-press__action-open,
  .wl-press__action-close { display: none !important; }
  .wl-press__list { margin: 0 22px 12px; }
  .wl-press__link,
  #content .wl-press__link,
  .darkPage #content .wl-press__link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0 !important;
  }
  #content a.wl-tag,
  .darkPage #content a.wl-tag { padding: 0 14px !important; }
  .wl-press__title { padding-right: 0; font-size: 15px !important; }
}

/* Load-in animation: pills stagger in after a delay, then each services column rises in */
@keyframes wl-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wl-rise {
  from { opacity: 0; transform: translateY(var(--wl-col-rise)); }
  to   { opacity: 1; transform: none; }
}
.wl-tags > li {
  animation: wl-fade-up var(--wl-pill-fade) cubic-bezier(0.33, 0, 0.2, 1) both;  /* gentler curve so the fade reads as slow */
  animation-delay: calc(var(--wl-intro-delay) + var(--wl-i, 0) * var(--wl-stagger));
}
.wl-tags > li:nth-child(1) { --wl-i: 0; }
.wl-tags > li:nth-child(2) { --wl-i: 1; }
.wl-tags > li:nth-child(3) { --wl-i: 2; }
.wl-tags > li:nth-child(4) { --wl-i: 3; }
.wl-tags > li:nth-child(5) { --wl-i: 4; }
.wl-tags > li:nth-child(6) { --wl-i: 5; }
.wl-tags > li:nth-child(7) { --wl-i: 6; }
.wl-tags > li:nth-child(8) { --wl-i: 7; }
.wl-tags > li:nth-child(9) { --wl-i: 8; }
.wl-tags > li:nth-child(10) { --wl-i: 9; }
.wl-tags > li:nth-child(11) { --wl-i: 10; }
.wl-tags > li:nth-child(12) { --wl-i: 11; }
.wl-services__col {
  animation: wl-rise calc(var(--wl-fade) * 1.75) var(--wl-ease) both;
  animation-delay: calc(var(--wl-intro-delay) + var(--wl-pill-count) * var(--wl-stagger) + var(--wl-pill-fade) * 0.6 + var(--wl-c, 0) * var(--wl-col-stagger));
}
.wl-services__col:nth-child(1) { --wl-c: 0; }
.wl-services__col:nth-child(2) { --wl-c: 1; }
.wl-services__col:nth-child(3) { --wl-c: 2; }
.wl-services__col:nth-child(4) { --wl-c: 3; }
.wl-services__col:nth-child(5) { --wl-c: 4; }
.wl-services__col:nth-child(6) { --wl-c: 5; }

/* Project intro (.headline-intro) on dark pages.
   The site's .darkPage rules reset h1/h2/p to proxima-nova 800 with zero
   margin + padding. This puts back the light-page type and spacing. */
.darkPage #content .headline-intro h1,
.darkPage #content .headline-intro h2 {
  color: #fff !important;
}
.darkPage #content .headline-intro p {
  color: var(--wl-muted) !important;
}
.darkPage #content .headline-intro h1.project-title {
  font-family: Custom, sans-serif !important;
  font-weight: 400 !important;
  margin-top: 0 !important;
  margin-bottom: -15px !important;
  padding: 0 18% !important;
}
.darkPage #content .headline-intro h2.project-headline {
  font-family: Custom, sans-serif !important;
  font-weight: 300 !important;
  margin-top: 1em !important;
  margin-bottom: 0.5em !important;
  padding: 0 !important;
}
.darkPage #content .headline-intro p {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
  padding: 0 !important;
}
@media only screen and (min-width: 640px) {
  .darkPage #content .headline-intro h1.project-title {
    margin-left: 12% !important;
    margin-right: 12% !important;
  }
  .darkPage #content .headline-intro p { padding: 0 125px !important; }
}
@media only screen and (min-width: 1201px) {
  .darkPage #content .headline-intro h1.project-title {
    margin-left: 15% !important;
    margin-right: 15% !important;
  }
}
@media only screen and (min-width: 1461px) {
  .darkPage #content .headline-intro h1.project-title {
    margin-left: 16% !important;
    margin-right: 16% !important;
    margin-bottom: -10px !important;
  }
}

/* Project headline (h2.project-headline — the big line under the company name).
   56px on laptops and up (site default was 46–54px), scaled down below that.
   Applies to light and dark pages. */
#content .headline-intro h2.project-headline,
.darkPage #content .headline-intro h2.project-headline {
  font-size: 56px !important;
  margin-left: 8% !important;     /* a little more room so the bigger line doesn't orphan a word */
  margin-right: 8% !important;
}
@media only screen and (max-width: 1200px) {
  #content .headline-intro h2.project-headline,
  .darkPage #content .headline-intro h2.project-headline {
    font-size: 46px !important;
    margin-left: 6% !important;
    margin-right: 6% !important;
  }
}
@media only screen and (max-width: 640px) {
  #content .headline-intro h2.project-headline,
  .darkPage #content .headline-intro h2.project-headline {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media only screen and (max-width: 1000px) {
  #content .headline-intro h2.project-headline,
  .darkPage #content .headline-intro h2.project-headline { font-size: 38px !important; }
}
@media only screen and (max-width: 640px) {
  #content .headline-intro h2.project-headline,
  .darkPage #content .headline-intro h2.project-headline { font-size: 32px !important; }
}

/* Hide the news pill until global.js has lifted it into place. Without this,
   it shows in the page for a split second on load before the script runs. */
[data-wl-press]:not(.wl-press--float) {
  display: none !important;
}

/* …except when you're logged in to Squarespace (html.squarespace-config) or editing,
   where it stays in the page so you can see and edit it */
.squarespace-config [data-wl-press]:not(.wl-press--float),
.wl-editing [data-wl-press]:not(.wl-press--float),
.sqs-edit-mode-active [data-wl-press]:not(.wl-press--float) {
  display: block !important;
}

/* Floating news pill.
   global.js moves .wl-press to the end of <body> (so it can stay fixed
   while Squarespace transforms #siteWrapper) and adds .wl-press--float.
   It shows once the page has scrolled (.is-visible) and slides left with the
   side nav (body.mobile-nav-open). */
.wl-press.wl-press--float {
  position: fixed;
  left: 50%;
  bottom: var(--wl-press-gap);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  width: min(var(--wl-content-max), calc(100% - var(--wl-press-gap) * 2));
  max-width: none;
  margin: 0 !important;
  border: 0 !important;
  background: var(--wl-bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 24px);
  translate: 0 0;
  transition:
    opacity 400ms var(--wl-ease),
    transform 400ms var(--wl-ease),
    visibility 0s linear 400ms,
    translate 0.2s ease-in-out;
}
/* Inverse of the page: black pill on light pages, white pill on .darkPage */
.wl-press.wl-press--float {
  --wl-bg: #000000;
  --wl-fg: #ffffff;
  --wl-muted: #adadad;
  --wl-rule: #383838;
}
.darkPage .wl-press.wl-press--float {
  --wl-bg: #ffffff;
  --wl-fg: #000000;
  --wl-muted: #666666;
  --wl-rule: #d9d9d9;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}
/* The site forces links white on .darkPage — keep the pill's article links dark */
.wl-press--float a,
.darkPage .wl-press--float a {
  color: var(--wl-fg) !important;
}
.wl-press.wl-press--float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    opacity 400ms var(--wl-ease),
    transform 400ms var(--wl-ease),
    visibility 0s linear 0s,
    translate 0.2s ease-in-out;
}
body.mobile-nav-open .wl-press.wl-press--float {
  translate: calc(var(--wl-nav-width) * -1) 0;
}
.wl-press--float .wl-press__list {
  max-height: calc(100vh - 180px);
  margin: 12px 32px 0 !important;
  overflow-y: auto;
  border-top: 0;
  overscroll-behavior: contain;
}
.wl-press--float .wl-press__item:first-child .wl-press__link {
  padding-top: 8px !important;
}
@media (max-width: 640px) {
  :root { --wl-press-gap: 16px; }
  .wl-press.wl-press--float {
    width: calc(100% - var(--wl-press-gap) * 2);
  }
  .wl-press--float .wl-press__list {
    margin: 8px 22px 0 !important;
  }
  body.mobile-nav-open .wl-press.wl-press--float {
    translate: calc(var(--wl-nav-width) * -1) 0;
    transition-duration: 400ms, 400ms, 0s, 0.14s;
  }
}

/* Dark-page body copy.
   The site sets every h1–h3, a, p and strong to #fff on .darkPage. Headlines
   stay white; smaller body copy steps down to the Figma grey (#ADADAD). */
.darkPage #content p,
.darkPage #content p strong,
.darkPage #content li,
.darkPage #content blockquote,
.darkPage #content figcaption,
.darkPage #content .image-caption,
.darkPage #content small {
  color: var(--wl-muted) !important;
}
.darkPage #content p a,
.darkPage #content li a {
  color: inherit !important;
}

@media (prefers-reduced-motion: reduce) {
  .wl-tag,
  .wl-press,
  .wl-press__panel,
  .wl-press__icon::before,
  .wl-press__icon::after { transition: none; }
  .wl-tags > li,
  .wl-services__col,
  .wl-press__track { animation: none !important; }
  .wl-press__outlets { overflow-x: auto; }   /* swipe instead of auto-scroll */
  .wl-press.wl-press--float,
  .wl-press.wl-press--float.is-visible {
    transform: translate(-50%, 0);
    transition: opacity 150ms linear, visibility 0s linear 150ms;
  }
}
