:root {
  --wrap: 1480px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --chrome-ink: #0f1419;
  --chrome-paper: #fff;
  --chrome-muted: #d0d6de;
  --chrome-line: rgba(255, 255, 255, .16);
  --chrome-sky: #8fb0d6;
  --chrome-teal: #1cbdad;
}

.wrap {
  width: min(100%, calc(var(--wrap) + var(--gutter) * 2));
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

body.menu-open { overflow: hidden; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  color: var(--chrome-ink);
  background: var(--chrome-paper);
}

.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 96px;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  transition: height .25s, background .25s, color .25s, box-shadow .25s, backdrop-filter .25s;
}

.site-header.is-scrolled {
  height: 76px;
  color: var(--chrome-ink);
  background: transparent;
}

.site-header.is-scrolling {
  color: #fff;
  background: rgba(0, 0, 0, .88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: inherit;
  text-decoration: none;
  transition: gap .2s ease;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  overflow: hidden;
  border-radius: 4px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .25s;
}

.brand-name {
  display: inline-block;
  max-width: 8rem;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.02em;
  opacity: 1;
  transition: max-width .2s ease, opacity .15s ease, transform .2s ease;
}

.brand-accent { color: var(--chrome-teal); }
.site-header.is-scrolled .brand-icon img { filter: invert(1); }
.site-header.is-scrolling .brand-icon img { filter: none; }
.site-header.is-idle .wordmark { gap: 0; }

.site-header.is-idle .brand-name {
  max-width: 0;
  opacity: 0;
  transform: translateX(-.5rem);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.menu-button,
.contact-symbol,
.menu-close {
  border: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-symbol {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  color: var(--chrome-ink);
  background: var(--chrome-paper);
  border-radius: 6px;
}

.contact-symbol svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 51px;
  margin: 0;
  padding: 0 1.1rem;
  color: var(--chrome-ink);
  background: var(--chrome-paper);
  border-radius: 4px;
  cursor: pointer;
}

.menu-button i,
.menu-button i::before {
  display: block;
  width: 19px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.menu-button i::before { transform: translateY(6px); }

.site-header.is-scrolled .contact-symbol,
.site-header.is-scrolled .menu-button {
  color: var(--chrome-paper);
  background: var(--chrome-ink);
}

.site-header.is-scrolling .contact-symbol,
.site-header.is-scrolling .menu-button {
  color: var(--chrome-ink);
  background: var(--chrome-paper);
}

/* Match boxed site CTAs to the header control radius. */
.button,
.service-view,
.btn-primary,
.btn-secondary,
.newsletter-nav-cta {
  border-radius: 4px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter) 2rem;
  color: #fff;
  background: #000;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-1rem);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.menu-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.menu-overlay .brand-icon img { filter: none; }

.overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.menu-close {
  margin: 0;
  padding: .8rem 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-close span {
  display: inline-block;
  margin-left: .5rem;
  font-size: 1.3rem;
}

.overlay-nav {
  align-self: center;
  display: grid;
  width: min(100%, 880px);
  margin: 2rem auto;
}

.overlay-nav a {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(.65rem, 1.4vh, 1.1rem) 0;
  border-bottom: 1px solid var(--chrome-line);
  color: inherit;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-decoration: none;
}

.overlay-nav a:hover { color: var(--chrome-sky); }

.overlay-nav span {
  width: 2rem;
  color: var(--chrome-sky);
  font-size: .7rem;
  letter-spacing: .1em;
}

.overlay-note {
  margin: 0;
  color: var(--chrome-muted);
  font-size: .8rem;
}

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--chrome-line);
  color: var(--chrome-muted);
  background: #000;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: .45fr 1fr 1fr;
  gap: 2rem;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  justify-self: start;
  color: var(--chrome-paper);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-mark img {
  width: 40px;
  height: 40px;
  border-radius: 3px;
}

.site-footer p {
  max-width: 320px;
  margin: .35rem 0;
  color: var(--chrome-muted);
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
}

.site-footer nav a,
.footer-meta a {
  color: inherit;
  text-decoration: none;
}

.site-footer nav a:hover,
.footer-meta a:hover { color: var(--chrome-paper); }

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--chrome-line);
  font-size: .75rem;
}

@media (max-width: 850px) {
  .site-header,
  .overlay-top { height: 78px; }

  .site-header.is-scrolled { height: 70px; }
  .brand-icon { width: 47px; height: 47px; }
  .brand-name { font-size: 1.3rem; }
  .menu-button,
  .contact-symbol { height: 47px; }
  .contact-symbol { width: 47px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .contact-symbol { display: none; }
  .menu-button { padding-inline: .85rem; }
  .overlay-nav a { font-size: clamp(1.75rem, 9vw, 2.75rem); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .wordmark,
  .brand-icon img,
  .brand-name,
  .menu-overlay { transition-duration: .01ms !important; }
}

/* Shared FF-style insight signup */
.home-community,
.home-newsletter,
.newsletter-mid-signup {
  color: #fff;
  background: #121416;
}

/* Keep the final light section before Start here unmistakably white. */
.about-preview { background: #fff; }

.home-community,
.home-newsletter {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.home-community .community-grid,
.home-newsletter .home-newsletter-grid,
.newsletter-mid-signup .mid-signup-inner {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.home-community .community-promise,
.home-newsletter .home-newsletter-copy,
.newsletter-mid-signup .mid-signup-copy {
  display: block;
  max-width: 31rem;
}

.home-newsletter .home-newsletter-copy::before,
.newsletter-mid-signup .mid-signup-copy::before {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 2.75rem;
  border-radius: 4px;
  background: #fff url('/assets/img/favicon-light.png') center / cover no-repeat;
  content: "";
}

.home-community .community-promise img {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 2.75rem;
  border-radius: 4px;
}

.home-community .community-promise .section-label,
.home-newsletter .home-newsletter-copy .eyebrow,
.newsletter-mid-signup .mid-signup-copy .eyebrow {
  display: none;
}

.home-community .community-promise h2,
.home-newsletter .home-newsletter-copy h2,
.newsletter-mid-signup .mid-signup-copy h2 {
  max-width: 30ch;
  margin: 0;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.home-newsletter .home-newsletter-copy p,
.newsletter-mid-signup .mid-signup-copy p {
  margin: 1rem 0 0;
  color: #aeb5bf;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: .95rem;
  line-height: 1.55;
}

.home-community h3,
.home-newsletter .home-newsletter-form > label,
.newsletter-mid-signup .subscribe-form::before {
  display: block;
  margin: 0 0 1.8rem;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.newsletter-mid-signup .subscribe-form::before {
  content: "Be part of our community";
}

.home-community .community-form,
.home-newsletter .home-newsletter-form,
.newsletter-mid-signup .subscribe-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.home-community .community-form-double,
.home-newsletter .home-newsletter-fields,
.newsletter-mid-signup .subscribe-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.home-community .community-form input,
.home-newsletter .home-newsletter-fields input,
.newsletter-mid-signup .subscribe-fields input {
  width: 100%;
  min-width: 0;
  padding: 1rem 0 1.05rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font: 400 1rem/1.4 "Inter", system-ui, -apple-system, sans-serif;
  outline: 0;
}

.home-community .community-form input::placeholder,
.home-newsletter .home-newsletter-fields input::placeholder,
.newsletter-mid-signup .subscribe-fields input::placeholder {
  color: #8d949d;
  opacity: 1;
}

.home-community .community-form input:focus,
.home-newsletter .home-newsletter-fields input:focus,
.newsletter-mid-signup .subscribe-fields input:focus {
  border-bottom-color: #8fb0d6;
  box-shadow: none;
}

.home-community .community-form button,
.home-newsletter .home-newsletter-fields button,
.newsletter-mid-signup .subscribe-fields button {
  justify-self: start;
  width: auto;
  margin: 1.8rem 0 0;
  padding: 0 0 .35rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font: 700 .9rem/1.2 "Inter", system-ui, -apple-system, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
}

.home-community .community-form button:hover,
.home-newsletter .home-newsletter-fields button:hover,
.newsletter-mid-signup .subscribe-fields button:hover { color: #8fb0d6; background: transparent; }

.home-newsletter .home-newsletter-promise,
.newsletter-mid-signup .subscribe-promise { display: none; }

.home-community .form-status,
.home-newsletter .subscribe-status,
.newsletter-mid-signup .subscribe-status {
  min-height: 1.4rem;
  margin: .8rem 0 0;
  color: #8fb0d6;
  font-size: .8rem;
}

.issue-end-newsletter .home-latest {
  border-top-color: rgba(255, 255, 255, .16);
}

.issue-end-newsletter .home-latest-heading,
.issue-end-newsletter .home-latest-row {
  border-color: rgba(255, 255, 255, .16);
}

.issue-end-newsletter .home-latest-copy h3,
.issue-end-newsletter .home-latest-heading,
.issue-end-newsletter .home-latest-heading a { color: #fff; }
.issue-end-newsletter .home-latest-copy p { color: #aeb5bf; }

/* Compact article signup, using the same dark and underlined form language. */
.issue-sidebar-card {
  border-color: #111;
  color: #fff;
  background: #111;
}

.issue-sidebar-card h2 { color: #fff; }
.issue-sidebar-card > p { color: #aeb5bf; }

.issue-sidebar-form input {
  width: 100%;
  padding: .9rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.issue-sidebar-form input::placeholder { color: #8d949d; opacity: 1; }
.issue-sidebar-form input:focus { border-bottom-color: #8fb0d6; outline: 0; }

.issue-sidebar-form button {
  width: auto;
  margin-top: 1.35rem;
  padding: 0 0 .3rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: #fff;
  background: transparent;
  text-transform: uppercase;
}

.issue-sidebar-form button:hover { color: #8fb0d6; background: transparent; }
.issue-sidebar-form .subscribe-promise { display: none; }
.issue-sidebar-form .subscribe-status { color: #8fb0d6; }

@media (max-width: 850px) {
  .home-community .community-grid,
  .home-newsletter .home-newsletter-grid,
  .newsletter-mid-signup .mid-signup-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .home-community .community-promise,
  .home-newsletter .home-newsletter-copy,
  .newsletter-mid-signup .mid-signup-copy { max-width: 34rem; }
}

@media (max-width: 520px) {
  .home-community,
  .home-newsletter { padding: 4rem 0; }

  .home-community .community-promise img,
  .home-newsletter .home-newsletter-copy::before,
  .newsletter-mid-signup .mid-signup-copy::before {
    width: 46px;
    height: 46px;
    margin-bottom: 2rem;
  }

  .home-community .community-promise h2,
  .home-newsletter .home-newsletter-copy h2,
  .newsletter-mid-signup .mid-signup-copy h2 {
    max-width: 34ch;
    font-size: 1.05rem;
    line-height: 1.45;
  }
}

/* One continuous black newsletter and footer composition. */
.home-community,
.home-newsletter,
.newsletter-mid-signup {
  background: #000;
}

.home-community { border-top: 0; }

.community-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 2.75rem;
  color: #fff;
  font: 600 1.45rem/1 "Inter", system-ui, -apple-system, sans-serif;
  letter-spacing: -.02em;
  text-decoration: none;
}

.home-community .community-brand img {
  width: 51px;
  height: 51px;
  margin: 0;
  border-radius: 4px;
}

.site-footer {
  padding: 0 0 2rem;
  border-top: 0;
  color: #929aa5;
}

.site-footer .footer-grid { display: block; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: clamp(3rem, 6vw, 5rem);
}

.site-footer .footer-top p {
  max-width: none;
  margin: 0;
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.footer-top nav {
  justify-content: flex-end;
  align-self: start;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.footer-meta {
  grid-column: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border-top: 0;
}

@media (max-width: 850px) {
  .footer-top { grid-template-columns: 1fr; }
  .site-footer .footer-top p {
    font-size: .82rem;
    letter-spacing: -.015em;
    white-space: nowrap;
  }
  .site-footer nav {
    flex-wrap: nowrap;
    gap: .5rem;
    font-size: .82rem;
    white-space: nowrap;
  }
  .footer-top nav,
  .footer-meta { justify-content: flex-start; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .community-brand {
    margin-bottom: 2rem;
    font-size: 1.3rem;
  }

  .home-community .community-brand img {
    width: 47px;
    height: 47px;
  }
}
