/* 2·22 shared editorial enhancements — quiz resilience, geological fields, marquee */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* The survey must remain visible even when reveal scripts or resize messages fail. */
.home-editorial #ghl-quiz-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  min-height: 1080px;
  height: auto;
  overflow: visible;
  position: relative;
  isolation: isolate;
}

.home-editorial #ghl-quiz-container iframe {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 1080px;
  min-height: 1080px;
  border: 0 !important;
  background: #fff;
}

.quiz-fallback {
  margin: 14px 0 0;
  font: 650 11px/1.5 var(--body, Arial, sans-serif);
  letter-spacing: .04em;
  color: rgba(10,10,10,.58);
}

.quiz-fallback a {
  color: #4A305A;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* A visible geological signal, derived from Sierra contour lines. */
.home-editorial .quiz-match,
.home-editorial #values,
.home-editorial #who {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.home-editorial .quiz-match::before,
.home-editorial #values::before,
.home-editorial #who::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='640' viewBox='0 0 900 640' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%234A305A' stroke-width='1'%3E%3Cpath d='M-70 526C92 362 177 482 314 324S581 56 956 232'/%3E%3Cpath d='M-48 558C108 398 202 515 340 355S606 94 948 270'/%3E%3Cpath d='M-20 590C139 434 229 550 371 389S637 137 932 314'/%3E%3Cpath d='M35 624C191 479 276 586 412 430S674 193 901 365'/%3E%3Cpath d='M349 -28C466 79 508 18 608 129S756 326 951 278'/%3E%3Cpath d='M302 -20C435 120 483 63 583 163S735 364 950 319'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: min(900px, 92vw) auto;
  background-position: 112% 14%;
  mask-image: linear-gradient(180deg, transparent 2%, #000 20%, #000 78%, transparent 98%);
}

.home-editorial #values::before {
  opacity: .19;
  filter: invert(1);
  background-position: -12% 28%;
}

.home-editorial #who::before { background-position: 110% 72%; opacity: .2; }

/* The statement behaves like an architectural sign, not a ticker widget. */
.brand-marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(253,255,252,.18);
  background: #13161A;
  color: #FDFFFC;
  padding: clamp(22px, 3vw, 44px) 0;
}

.brand-marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: tt2-marquee 22s linear infinite;
}

.brand-marquee__track span {
  font-family: var(--ui, "Arial Narrow", sans-serif);
  font-size: clamp(56px, 9.5vw, 150px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.brand-marquee__track em {
  font-family: var(--disp, Georgia, serif);
  font-weight: 400;
  text-transform: none;
  color: #96C1AE;
}

@keyframes tt2-marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 800px) {
  .home-editorial #quiz { padding-bottom: 72px; }
  .home-editorial #ghl-quiz-container {
    width: 100%;
    min-height: 1180px !important;
    margin-top: 8px;
    overflow: visible !important;
  }
  .home-editorial #ghl-quiz-container iframe {
    width: 100% !important;
    height: 1180px !important;
    min-height: 1180px !important;
  }
  .quiz-fallback { font-size: 12px; padding-inline: 2px; }
  .brand-marquee__track { animation-duration: 17s; }
  .brand-marquee__track span { font-size: clamp(52px, 16vw, 82px); }
  .home-editorial .quiz-match::before,
  .home-editorial #values::before,
  .home-editorial #who::before {
    opacity: .22;
    background-size: 150vw auto;
    background-position: 48% 18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee__track { animation: none; transform: translateX(-4%); }
}

/* Shared closing system — same visual grammar on Home and PRO. */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) clamp(18px, 4vw, 64px) 0;
  background: #0a0a0a;
  color: #fdfffc;
  border-top: 1px solid rgba(253,255,252,.14);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background: url("data:image/svg+xml,%3Csvg width='900' height='620' viewBox='0 0 900 620' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2396C1AE' stroke-width='.9'%3E%3Cpath d='M-70 526C92 362 177 482 314 324S581 56 956 232'/%3E%3Cpath d='M-48 558C108 398 202 515 340 355S606 94 948 270'/%3E%3Cpath d='M-20 590C139 434 229 550 371 389S637 137 932 314'/%3E%3Cpath d='M35 624C191 479 276 586 412 430S674 193 901 365'/%3E%3C/g%3E%3C/svg%3E") 105% 0 / min(900px, 85vw) auto no-repeat;
}
.site-footer__inner { position: relative; z-index: 1; max-width: 1424px; margin: 0 auto; }
.site-footer__brand { display: grid; grid-template-columns: minmax(140px, 230px) minmax(240px, 440px); gap: clamp(28px, 6vw, 90px); align-items: end; padding-bottom: clamp(48px, 7vw, 90px); }
.site-footer__brand img { display: block; width: 100%; height: auto; }
.site-footer__brand p { margin: 0; color: rgba(253,255,252,.68); font: 500 clamp(16px, 1.4vw, 21px)/1.45 var(--ui, Arial, sans-serif); }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: clamp(26px, 5vw, 86px); padding: 38px 0 50px; border-block: 1px solid rgba(253,255,252,.14); }
.site-footer__nav div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.site-footer__nav h4 { margin: 0 0 10px; color: #96c1ae; font: 800 10px/1 var(--ui, Arial, sans-serif); letter-spacing: 1.2px; text-transform: uppercase; }
.site-footer__nav a { color: rgba(253,255,252,.76); font: 650 clamp(13px, 1vw, 15px)/1.25 var(--ui, Arial, sans-serif); text-decoration: none; transition: color .2s ease, transform .2s ease; }
.site-footer__nav a:hover, .site-footer__nav a:focus-visible { color: #fdfffc; transform: translateX(4px); }
.site-footer__meta { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; color: rgba(253,255,252,.45); font: 700 9px/1.2 var(--ui, Arial, sans-serif); letter-spacing: .9px; text-transform: uppercase; }
.site-footer__statement { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .18em; margin: 0; padding: clamp(46px, 7vw, 92px) 0 clamp(24px, 3vw, 48px); font: 900 clamp(48px, 10.4vw, 158px)/.8 var(--ui, Arial, sans-serif); letter-spacing: -.055em; text-transform: uppercase; }
.site-footer__statement em { color: #96c1ae; font-family: var(--disp, Georgia, serif); font-weight: 400; text-transform: none; }

@media (max-width: 700px) {
  .site-footer { padding-inline: 18px; }
  .site-footer__brand { grid-template-columns: 118px 1fr; gap: 22px; align-items: start; }
  .site-footer__brand p { font-size: 14px; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .site-footer__nav div:last-child { grid-column: 1 / -1; }
  .site-footer__meta { flex-direction: column; gap: 8px; }
  .site-footer__statement { display: block; font-size: clamp(50px, 18vw, 82px); }
  .site-footer__statement span, .site-footer__statement em { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__nav a { transition: none; }
}
