@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=search,arrow_right');

@font-face {
  font-family: "Geist Sans";
  src: url("/inc/fonts/GeistVF.ttf") format("truetype"); 
}

*,
*:after,
*:before {
	box-sizing: border-box;
}

html {
  -ms-scroll-snap-type: none;
      scroll-snap-type: none;
}

/* Only the home scroll-story should use scroll snapping. */
html.is-scroll-story {
  -ms-scroll-snap-type: y mandatory;
  scroll-snap-type: y mandatory;
}

/* Subpages should scroll normally (no snap-back). */
html:not(.is-scroll-story) {
  -ms-scroll-snap-type: none;
  scroll-snap-type: none;
}

/* Safari/unsupported fallback: if scroll-driven animations aren't supported,
   don't force snapping (avoids scroll locking/jank). */
@supports not (animation-timeline: scroll()) {
  html.is-scroll-story {
    -ms-scroll-snap-type: none;
    scroll-snap-type: none;
  }
}

body {
	min-height: 100vh;
	font-family:  "SF Pro Text", "SF Pro Icons", "AOS Icons", Oswald, sans-serif, system-ui; /* "Helvetica Neue", Helvetica, Arial */ 
	font-weight: 80;
	background: black;
	color: hsl(0 0% 90%);
	overflow-x: hidden;
}

p {
	max-width: 40ch;
}

section:nth-of-type(1) {
	scroll-snap-align: center;
	height: 100vh;
}

html:not(.is-scroll-story) section:nth-of-type(1),
html:not(.is-scroll-story) section:nth-of-type(2) {
  scroll-snap-align: unset;
}

section:nth-of-type(2) {
	scroll-snap-align: start;
}

/* Only apply snap targets on the home scroll-story. */
html:not(.is-scroll-story) section:nth-of-type(1),
html:not(.is-scroll-story) section:nth-of-type(2) {
  scroll-snap-align: unset;
}

article {
	min-height: 100vh;
}
:is(h1, h2) {
	font-weight: 70;
	font-size: clamp(3.25rem, 2.8vw + 1rem, 8rem);
	letter-spacing: -0.075ch;
	margin: 0;
}

h1 {
	color: hsl(0 0% 90%);
}

:is(section, article) {
	position: relative;
}

.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  background: hsla(0 0% 0% / 0.25);
  backdrop-filter: blur(18px); 
  border-bottom: 1px solid hsla(0 0% 100% / 0.08);
}

.site-nav.is-on-light {
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.nav-inner {
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand {
  /* width: 48px; */
  /* aspect-ratio: 1; */
  display: grid;
  /* place-items: center; */
  /* color: hsl(0 0% 96%); */
  transition: opacity 220ms ease, transform 220ms ease;
}

.nav-brand.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  width: 44px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;
}

.nav-toggle-icon {
  width: 25px;
  height: 25px;
}

.nav-logo {
  max-width: 250px;
}

.glowing-image {
	filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
	display: block; /* Ensures the image takes up the full width */
  margin: 0 auto; /* Centers the image horizontally */
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-link {
  color: hsl(0 0% 90%);
  text-decoration: none;
  font-family: 'Oswald', 'Geist Sans', "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12ch;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link:is(:hover, :focus-visible) {
  color: #25ade3;
}

.nav-link.active {
  color: #25ade3;
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.25rem;
    flex-direction: column;
    flex-basis: auto;
    gap: 0;
    padding: 0.75rem 0;
    background: hsla(0 0% 6% / 0.95);
    border: 1px solid hsla(0 0% 100% / 0.08);
    border-radius: 14px;
    box-shadow: 0 20px 35px hsla(0 0% 0% / 0.35);
    min-width: min(260px, calc(100vw - 2.75rem));
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-menu li {
    padding: 0;
  }
  .nav-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
  }
  .site-nav[data-menu-open="true"] .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* If JS hasn't set `data-menu-open` yet, keep the menu hidden. */
  .site-nav:not([data-menu-open]) .nav-menu {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }
}

.content {
	margin: 0 auto;
	width: 900px;
	max-width: 100%;
	height: 100%;
	z-index: 2;
	position: absolute;
	inset: 0;
  padding: 1rem;
}

.fixed img {
	height: 100%;
	width: 150%;
	-o-object-fit: cover;
	   object-fit: cover;
	z-index: -1;
	position: absolute;
	inset: 0;
	left: 50%;
	translate: -50% 0;
	filter: brightness(0.5);
}

/* Make video behave the same as the fixed images without touching other .fixed rules */
.fixed video {
  height: 100%;
  width: 150%;
  -o-object-fit: cover;
 	   object-fit: cover;
  z-index: -1;
  position: absolute;
  inset: 0;
  left: 50%;
  translate: -50% 0;
  filter: brightness(0.75);
}

section:first-of-type img {
	left: 50%;
	translate: -50% 0;
}

section:first-of-type {
	padding: 2rem 1rem;
	display: grid;
	align-content: end;
	justify-content: start;
}

section:first-of-type .fixed {
	z-index: 5;
}

section:first-of-type .fixed .content {
	margin: 0 auto;
	width: 900px;
	max-width: 100%;
  display: grid;
  align-content: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  padding: 6rem 2rem;
	height: 100%;
}

section:first-of-type {
	background: black;
}

section:first-of-type p {
  font-size: clamp(1.25rem, 1.4vw + 1rem, 2.1rem);
  max-width: 54ch;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  margin: 0 auto;
  max-width: clamp(400px, 50vw, 900px);
  width: auto;
  height: auto;
}

.fixed .hero-logo {
  position: relative;
  left: auto;
  translate: none;
  height: auto;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

section:first-of-type h1 {
  font-size: clamp(1.6rem, 4vw + 0.5rem, 4.5rem);
  letter-spacing: -0.05em;
  white-space: nowrap;
  margin: 0 auto;
}

section:nth-of-type(2) article:first-of-type .fixed {
  z-index: 2;
}

section:nth-of-type(2) article#think .fixed {
  background: #000;
  transform: translateZ(0);
  will-change: opacity, transform;
}

section:nth-of-type(2) .content {
	display: grid;
	padding: 4rem 1rem;
	align-content: center;
}

section:nth-of-type(2) article:first-of-type .content {
	align-content: end;
}

section:nth-of-type(2) article:first-of-type .fixed::after {
	content: "";
	position: absolute;
	inset: 0;
	background: hsl(0 0% 0% / 0.25);
}

section:nth-of-type(2) article:first-of-type h2 {
	padding: 1rem 0;
}

section:nth-of-type(2) article:nth-of-type(3) .content,
section:nth-of-type(2) article#share .content {
  align-content: start;
}

section:nth-of-type(2) article#reveal .content {
  align-content: center;
}

section:nth-of-type(2) article:nth-of-type(3) .fixed,
section:nth-of-type(2) article#share .fixed {
  z-index: 2;
}

section:nth-of-type(2) article#reveal .fixed {
  z-index: 3;
}

/* Keep the reveal panel from permanently covering following sections */
section:nth-of-type(2) article#reveal {
  isolation: isolate;
}

section:nth-of-type(2) article:nth-of-type(3) .fixed :is(img, video),
section:nth-of-type(2) article#share .fixed :is(img, video) {
  filter: saturate(0.5) brightness(0.5);
}

section:nth-of-type(2) article#reveal .fixed :is(img, video) {
  filter: brightness(0.6) contrast(1.05) saturate(0.9);
}

/* Darken reveal background with an overlay so copy stays readable */
section:nth-of-type(2) article#reveal .fixed::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, hsla(0 0% 0% / 0.15), hsla(0 0% 0% / 0.65));
  pointer-events: none;
}

/* Make share/reveal paragraph copy slightly larger */
section:nth-of-type(2) article#share p,
section:nth-of-type(2) article#reveal p {
  font-size: 115%;
}

/* Aware (reveal) paragraph needs a bit more size + weight */
section:nth-of-type(2) article#reveal p {
  font-size: 126.5%;
  font-weight: 400;
}

.reveal-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  text-align: center;
  width: min(900px, 100%);
  box-sizing: border-box;
  justify-items: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reveal-content h2 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.8rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.reveal-content p {
  margin: 0;
  max-width: 53ch;
  line-height: 1.4;
  justify-self: center;
  color: hsl(0 0% 80%);
  width: 100%;
  text-shadow:
    0 2px 16px hsla(0 0% 0% / 0.85),
    0 1px 2px hsla(0 0% 0% / 0.65);
}

/* Keep share copy slightly larger */
section:nth-of-type(2) article#share p {
  font-size: 115%;
}

/* Make the reveal paragraph much larger and heavier */
section:nth-of-type(2) article#reveal p {
  font-size: clamp(1.3rem, 1.6vw + 0.6rem, 2rem);
  font-weight: 300;
  color: #fff;
}

.qcomm-aware-logo {
  display: block;
  margin: 0 auto;
  max-width: clamp(180px, 28vw, 380px); /* about 50% smaller */
  width: auto;
  height: auto;
  filter: drop-shadow(0 5px 10px hsla(0, 0%, 0%, 0.85));
}

/* Mobile fix: prevent the reveal/aware panel from pushing content right */
@media (max-width: 640px) {
  section:nth-of-type(2) article#reveal .static {
    width: 100%;
    overflow-x: hidden;
  }
  section:nth-of-type(2) article#reveal .content.reveal-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .qcomm-aware-logo {
    max-width: min(82vw, 320px);
  }
}

.text-blocks {
	max-width: 100%;
	width: 40ch;
	justify-self: end;
	display: grid;
	place-items: center;
	gap: 2rem 0;
}

/* Text block styling */
.chat-container {
	height: 100vh;
	width: 100%;
	position: sticky;
	top: 0;
	display: grid;
	place-items: center;
}
.text-blocks p {
	display: inline-block;
	border-radius: 6px;
	margin: 0;
	font-size: clamp(1.5rem, 0.5vw + 1rem, 4rem);
	font-weight: 120;
}
.text-blocks p:nth-of-type(even) {
	justify-self: end;
	text-align: right;
	color: hsl(173 100% 51%);
}
.text-blocks p:nth-of-type(odd) {
	justify-self: start;
}

.filler {
	display: none;
}

.hero-bg-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2; /* keep content above the slideshow */
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite both;
  animation-timing-function: linear;
  filter: brightness(0.5);
}

.hero-bg-1 { background-image: url("../../img/rot/bg01.jpg"); animation-delay: 0s; }
.hero-bg-2 { background-image: url("../../img/rot/bg02.jpg"); animation-delay: 3s; }
.hero-bg-3 { background-image: url("../../img/rot/bg03.jpg"); animation-delay: 6s; }
.hero-bg-4 { background-image: url("../../img/rot/bg01.jpg"); transform: scaleX(-1); transform-origin: center; animation-delay: 9s; }
.hero-bg-5 { background-image: url("../../img/rot/bg02.jpg"); transform: scaleY(-1); transform-origin: center;  animation-delay: 12s; }
.hero-bg-6 { background-image: url("../../img/rot/bg03.jpg"); transform: rotate(180deg); transform-origin: center;  animation-delay: 15s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  40%  { opacity: 1; }
  55%  { opacity: 0; }
  100% { opacity: 0; }
}

.fin-section {
  background: black;
}

.fin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.fin-media {
  flex: 1 0 50vh;
  min-height: 50vh;
  position: relative;
  overflow: hidden;
}

.fin-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
    object-position: center;
  display: block;
  filter: brightness(1) !important;
}

.fin-footer-shell {
  background: #252525 url("../../img/textures/otis-redding.png") repeat;
  color: hsl(0 0% 92%);
  padding: clamp(2rem, 4vw, 4rem) 1.5rem 4rem;
}

.fin-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}

.fin-footer-headline {
  flex: 1 1 260px;
}

.fin-footer-headline p {
  font-size: 1.1rem;
  color: hsl(0 0% 80%);
}

.fin-footer-grid {
  flex: 2 1 420px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

/* CouchCMS may inject a named anchor before the <form>; keep it from shifting layout. */
.fin-footer-grid > a[name^="kformname"] {
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

/* If the browser scrolls to the form itself, offset for fixed nav. */
.fin-footer-grid #contact-form {
  scroll-margin-top: 110px;
}

/* Fin footer contact form */
.fin-footer-grid #contact-form {
  width: 100%;
  max-width: 720px;
  justify-self: start;
  display: grid;
  gap: 1.15rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

/* Inputs generated by Couch's <cms:input> can vary (input/textarea/select). */
.fin-footer-grid #contact-form :is(input, textarea, select) {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid hsla(0 0% 100% / 0.36);
  background: transparent;
  color: hsl(0 0% 92%);
  padding: 1.5rem 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.2;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fin-footer-grid #contact-form textarea {
  resize: vertical;
  min-height: 70px;
  max-height: 150px;
}

.fin-footer-grid #contact-form :is(input, textarea, select)::placeholder {
  color: transparent;
}

.fin-footer-grid #contact-form :is(input, textarea, select):focus {
  outline: none;
  border-bottom-color: hsla(195 85% 60% / 0.9);
  box-shadow: 0 6px 0 -3px hsla(195 85% 60% / 0.35);
}

.fin-footer-grid #contact-form .FloatingLabelField {
  position: relative;
}

.fin-footer-grid #contact-form .FloatingLabelField > label {
  position: absolute;
  left: 0;
  top: 1.45rem;
  transform-origin: 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsla(0 0% 100% / 0.55);
  pointer-events: none;
  transition: transform 160ms ease, color 160ms ease, top 160ms ease;
}

/* Float label on focus or when input has content (placeholder is a single space). */
.fin-footer-grid #contact-form .FloatingLabelField:focus-within > label,
.fin-footer-grid #contact-form .FloatingLabelField > :is(input, textarea):not(:placeholder-shown) + label {
  top: 0.35rem;
  transform: scale(0.85);
  color: hsla(195 85% 65% / 0.85);
}

.fin-footer-grid #contact-form .FloatingLabelField--textarea > label {
  top: 1.35rem;
}

.fin-footer-grid #contact-form .FloatingLabelField--textarea:focus-within > label,
.fin-footer-grid #contact-form .FloatingLabelField--textarea > textarea:not(:placeholder-shown) + label {
  top: 0.35rem;
}

.fin-footer-grid #contact-form input[type="submit"],
.fin-footer-grid #contact-form button[type="submit"] {
  justify-self: start;
  width: auto;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid hsla(0 0% 100% / 0.40);
  background: transparent;
  color: hsl(0 0% 96%);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.fin-footer-grid #contact-form input[type="submit"]:hover,
.fin-footer-grid #contact-form button[type="submit"]:hover {
  border-color: hsla(195 95% 70% / 0.95);
}

.fin-footer-grid #contact-form .alert {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid hsla(0 0% 100% / 0.10);
  background: hsla(0 0% 0% / 0.35);
  color: hsl(0 0% 92%);
}

.fin-footer-grid #contact-form .alert.alert-success {
  border-color: hsla(145 70% 50% / 0.35);
  background: hsla(145 70% 20% / 0.25);
}

.fin-footer-grid #contact-form .alert.alert-danger {
  border-color: hsla(0 80% 55% / 0.35);
  background: hsla(0 80% 25% / 0.25);
}

@media (max-width: 900px) {
  .fin-footer-grid #contact-form {
    justify-self: stretch;
    max-width: 100%;
  }
  .fin-footer-grid #contact-form input[type="submit"],
  .fin-footer-grid #contact-form button[type="submit"] {
    justify-self: stretch;
    width: 100%;
  }
}

.fin-placeholder {
  min-height: 120px;
  border-radius: 14px;
  border: 1px dashed hsla(0 0% 100% / 0.25);
  color: hsla(0 0% 100% / 0.65);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  text-align: center;
}

.nowrap {
    white-space: nowrap;
  }

@supports (animation-timeline: scroll()) {
  @media(prefers-reduced-motion: no-preference) {
    .scroll-story article {
      view-timeline: --article;
    }

    .scroll-story .fixed {
      position: fixed;
      inset: 0;
      pointer-events: none;
    }
    .scroll-story .static {
      position: absolute;
      inset: 0;
      z-index: 6;
    }

    .scroll-story #hero .scroll-btn,
    .scroll-story #fin .fin-footer-grid,
    .scroll-story #fin .fin-footer-grid * {
      pointer-events: auto;
    }
    .scroll-story .filler {
      display: block;
      width: 100%;
      position: absolute;
      bottom: 30vh;
      padding: 1rem;
    }

    .scroll-story .text-blocks p {
      -webkit-animation: slide-in, fade-in;
              animation: slide-in, fade-in;
      -webkit-animation-fill-mode: both;
              animation-fill-mode: both;
      -webkit-animation-timing-function: linear;
              animation-timing-function: linear;
      animation-timeline: --article;
    }

    .scroll-story .text-blocks p:nth-of-type(1) { animation-range: entry-crossing 50% entry-crossing 55%; }
    .scroll-story .text-blocks p:nth-of-type(2) { animation-range: entry-crossing 55% entry-crossing 60%; }
    .scroll-story .text-blocks p:nth-of-type(3) { animation-range: entry-crossing 60% entry-crossing 65%; }
    .scroll-story .text-blocks p:nth-of-type(4) { animation-range: entry-crossing 65% entry-crossing 70%; }
    .scroll-story .text-blocks p:nth-of-type(5) { animation-range: entry-crossing 70% entry-crossing 75%; }

    section:nth-of-type(2) article:nth-of-type(3),
    section:nth-of-type(2) article#share {
      height: 174vh;
    }
    section:nth-of-type(2) article:nth-of-type(3) h2,
    section:nth-of-type(2) article#share h2 {
      margin-top: 43vh;
    }

    /* Reveal panel sits between share and fin and is revealed by a curved wipe. */
    section:nth-of-type(2) article#reveal {
      /* Enough scroll room for the wipe + a short hold before releasing into fin */
      height: 117vh;
    }

    /* Put reveal copy in normal flow so fin can follow naturally */
    section:nth-of-type(2) article#reveal .static {
      position: relative;
      inset: auto;
      height: auto;
      z-index: 2;
    }

    /* The reveal panel needs to sit above share during the wipe */
    section:nth-of-type(2) article#reveal {
      position: relative;
      z-index: 8;
    }

    /* Reveal content fades in quickly once uncovered */
    section:nth-of-type(2) article#reveal .reveal-content {
      -webkit-animation: fade-in both linear;
              animation: fade-in both linear;
      animation-timeline: --article;
      /* Start after the wipe has already begun */
      animation-range: entry 26% entry 36%;
    }

    section:nth-of-type(2) article#reveal .fixed {
      -webkit-clip-path: ellipse(220% 200% at 50% 300%);
              clip-path: ellipse(220% 200% at 50% 300%);
      -webkit-animation: unclip both linear;
              animation: unclip both linear;
      animation-timeline: --article;
          /* Start shortly after share text is gone; complete before fin enters */
          animation-range: entry 16% entry 52%;
      pointer-events: none;
      z-index: 0;
          background: #000;
          transform: translateZ(0);
          will-change: clip-path;
    }

    /* Make fin behave like a normal scrolling section after the reveal panel. */
    section:nth-of-type(2) article#fin {
      height: auto;
      position: relative;
      z-index: 10;
      isolation: isolate;
    }
    .filler h2 {
      -webkit-animation: fade-away, fade-out;
              animation: fade-away, fade-out;
      -webkit-animation-timing-function: linear;
              animation-timing-function: linear;
      -webkit-animation-fill-mode: both;
              animation-fill-mode: both;
      animation-timeline: --article;
      animation-range: exit 40% exit 75%, exit 70% exit 90%;
    }
        .loud-wrap {
      -webkit-clip-path: inset(0 0 0 0);
              clip-path: inset(0 0 0 0);
      -webkit-animation: unmask both linear;
              animation: unmask both linear;
      animation-timeline: --article;
          animation-range: entry 5% entry 60%;
      -webkit-mask: linear-gradient(white 50%, transparent) 0 100% / 100% 200% no-repeat;
              mask: linear-gradient(white 50%, transparent) 0 100% / 100% 200% no-repeat;
    }
    .text-wrap {
      position: sticky;
      bottom: 4rem;
      transform-origin: 50% 0;
      -webkit-animation: fade-away both linear, fade-out both linear;
              animation: fade-away both linear, fade-out both linear;
      animation-timeline: --article;
      animation-range: exit 40% exit 75%, exit 70% exit 100%;
    }
    .text-blocks {
      -webkit-animation: fade-out both linear;
              animation: fade-out both linear;
      animation-timeline: --article;
      animation-range: entry-crossing 75% entry-crossing 100%;
    }
        section:nth-of-type(2) article:nth-of-type(3) .fixed {
          -webkit-animation: fade-in both linear, fade-out both linear;
            animation: fade-in both linear, fade-out both linear;
          animation-timeline: --article, --article;
          animation-range: entry 45% exit-crossing 0%, exit 0% exit 15%;
        }

        section:nth-of-type(2) article#share .fixed {
          -webkit-animation: fade-in both linear;
            animation: fade-in both linear;
          -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
          animation-timeline: --article;
          animation-range: entry 45% entry 60%;
        }

        /* Fade out the share copy; the wipe begins shortly after this. */
        section:nth-of-type(2) article#share .static {
          -webkit-animation: fade-out both linear;
                  animation: fade-out both linear;
          -webkit-animation-fill-mode: both;
                  animation-fill-mode: both;
          animation-timeline: --article;
          animation-range: exit 0% exit 12%;
        }

        /* Ensure the fin media isn't pinned over the page once revealed. */
        section:nth-of-type(2) article#fin .fixed,
        section:nth-of-type(2) article#fin .static {
          position: relative;
          inset: auto;
        }

    section:nth-of-type(2) article:nth-of-type(2) .fixed {
      -webkit-animation: fade-in;
              animation: fade-in;
      -webkit-animation-fill-mode: both;
              animation-fill-mode: both;
      -webkit-animation-timing-function: linear;
              animation-timing-function: linear;
      animation-timeline: --article;
      animation-range: entry 60% exit 30%;
    }
        section:nth-of-type(2) article#chat .fixed {
          -webkit-animation: fade-in;
            animation: fade-in;
          -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
          -webkit-animation-timing-function: linear;
            animation-timing-function: linear;
          animation-timeline: --article;
          animation-range: entry 30% entry 65%;
        }
    section:nth-of-type(2) article:nth-of-type(2) h2 {
      -webkit-animation: slide-in, fade-in, fade-away, fade-out;
              animation: slide-in, fade-in, fade-away, fade-out;
      -webkit-animation-fill-mode: both;
              animation-fill-mode: both;
      -webkit-animation-timing-function: linear;
              animation-timing-function: linear;
      animation-timeline: view(), view(), --article, --article;
      animation-range: entry 100% cover 25%, entry 100% cover 35%, exit 20% exit 40%, exit 40% exit 50%;
    }
        section:nth-of-type(2) article#chat .content > h2:first-of-type {
          -webkit-animation: slide-in, fade-in, fade-away, fade-out;
            animation: slide-in, fade-in, fade-away, fade-out;
          -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
          -webkit-animation-timing-function: linear;
            animation-timing-function: linear;
          animation-timeline: view(), view(), --article, --article;
          animation-range: entry 100% cover 25%, entry 100% cover 35%, exit 20% exit 40%, exit 40% exit 50%;
        }
    section:nth-of-type(2) article:first-of-type h2 {
      -webkit-animation: slide-up both linear;
              animation: slide-up both linear;
      animation-timeline: --article;
      animation-range: entry 20% entry 80%;
    }
    section:nth-of-type(2) article:first-of-type img {
      -webkit-animation: scale-down both linear;
              animation: scale-down both linear;
      animation-timeline: --article;
      animation-range: entry;
    }
    section:nth-of-type(2) article:first-of-type .fixed {
      -webkit-clip-path: ellipse(220% 200% at 50% 300%);
              clip-path: ellipse(220% 200% at 50% 300%);
      -webkit-animation: unclip both linear;
              animation: unclip both linear;
      animation-timeline: --article;
      animation-range: entry 0 entry 100%;
    }
    section:first-of-type {
      view-timeline: --section;
    }
        section:first-of-type .fixed {
          -webkit-animation: fade-out both linear;
            animation: fade-out both linear;
          animation-timeline: --section;
          animation-range: exit 0% exit 25%;
          -webkit-mask-image: linear-gradient(black 70%, transparent 100%);
            mask-image: linear-gradient(black 70%, transparent 100%);
          -webkit-mask-size: 100% 200%;
            mask-size: 100% 200%;
          -webkit-mask-position: 0 0;
            mask-position: 0 0;
        }
    section#hero .content {
      -webkit-animation: hero-drift both linear;
              animation: hero-drift both linear;
      animation-timeline: --section;
      animation-range: exit 0% exit 60%;
    }
    /* Keyframes collection	*/
    @-webkit-keyframes slide-in {
      0% {
        translate: 0 100%;
      }
    }
    @keyframes slide-in {
      0% {
        translate: 0 100%;
      }
    }

    @-webkit-keyframes fade-in {
      0% {
        opacity: 0;
      }
    }

    @keyframes fade-in {
      0% {
        opacity: 0;
      }
    }
    @-webkit-keyframes slide-up {
      0% {
        translate: 0 100%;
      }
    }
    @keyframes slide-up {
      0% {
        translate: 0 100%;
      }
    }
    @-webkit-keyframes fade-away {
      to {
        filter: blur(4rem);
      }
    }
    @keyframes fade-away {
      to {
        filter: blur(4rem);
      }
    }
    @-webkit-keyframes unmask {
      to {
        -webkit-mask-position: 0 0;
                mask-position: 0 0;
      }
    }
    @keyframes unmask {
      to {
        -webkit-mask-position: 0 0;
                mask-position: 0 0;
      }
    }
    @-webkit-keyframes scale-down {
      0% {
        scale: 5;
      }
    }
    @keyframes scale-down {
      0% {
        scale: 5;
      }
    }
    @-webkit-keyframes unclip {
      to { -webkit-clip-path: ellipse(220% 200% at 50% 175%); clip-path: ellipse(220% 200% at 50% 175%); }
    }
    @keyframes unclip {
      to { -webkit-clip-path: ellipse(220% 200% at 50% 175%); clip-path: ellipse(220% 200% at 50% 175%); }
    }
    @-webkit-keyframes fade-out {
      to { opacity: 0; }
    }
    @keyframes fade-out {
      to { opacity: 0; }
    }
    @-webkit-keyframes hero-drift {
      to {
        translate: 0 -8%;
      }
    }
    @keyframes hero-drift {
      to {
        translate: 0 -8%;
      }
    }
  }
}

/* SCROLL BUTTON */
.scroll-btn {
  position: absolute;
  bottom: 10vh;
  left: 50%;
  translate: -50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 102px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  transition: width 0.35s ease, height 0.35s ease, border-radius 0.35s ease;
}

.scroll-btn__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 0 0 rgba(37,173,227,0.2);
  animation: ringPulse 4s ease-in-out infinite;
}

.scroll-btn__icon {
  font-size: 1.35rem;
  color: hsl(0 0% 98%);
  animation: arrowFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease, font-size 0.3s ease;
}

.scroll-btn:hover .scroll-btn__ring {
  animation-play-state: paused;
  border-color: rgba(255,255,255,0.95);
  box-shadow: 0 0 22px rgba(37,173,227,0.6);
}
.scroll-btn:hover {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}
.scroll-btn:hover .scroll-btn__icon {
  transform: translateY(0);
}

.scroll-btn__icon svg {
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
}

@keyframes arrowFloat {
  0%, 100% { transform: translateY(-1px); }
  50%      { transform: translateY(6px); }
}
@keyframes ringPulse {
  0% {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 rgba(37,173,227,0.2);
  }
  40% {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 rgba(37,173,227,0.2);
  }
  55% {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 0 18px rgba(37,173,227,0.55);
  }
  70% {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 rgba(37,173,227,0.2);
  }
  100% {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 rgba(37,173,227,0.2);
  }
}

/* TRANSITION FRAME */
.transition-frame {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  color: #0d0d0d;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  border-top: 1px solid #e7e7e0;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.transition-frame__header,
.transition-frame__grid,
.transition-frame__note,
.transition-frame__cta {
  width: min(900px, 100%);
  margin: 0 auto;
}

.transition-frame__note {
  z-index: 1;
  text-align: center;
  color: #2b2b2b;
}

.transition-frame__note p {
  margin: 0;
  max-width: 62ch;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.45;
}

.transition-frame__header {
  display: flex;
  flex-direction: column;
  gap: 2.00rem;
  z-index: 1;
}

.transition-frame__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: #6a6a6a;
}

.transition-frame__header h2 {
  margin: 0;
  color: #0e0e0e;
  font-size: clamp(2.25rem, 2.75vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.transition-frame__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  justify-items: center;
  z-index: 1;
}

.transition-frame__card {
  position: relative;
  width: min(100%, 320px);
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 18px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
}

.transition-frame__card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(37, 173, 227, 0.06));
  pointer-events: none;
  z-index: 0;
}

.transition-frame__media {
  height: 160px;
  border-radius: 14px;
  /*background: var(--frame-graphic, linear-gradient(120deg, #e8eef3, #f7f7f7));*/
  position: relative;
  z-index: 1;
  /* box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); */
}

.transition-frame__card .transition-frame__media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.transition-frame__card .transition-frame__media > img {
  /* filter: brightness(0) saturate(100%) invert(53%) sepia(90%) saturate(1530%) hue-rotate(164deg) brightness(98%) contrast(92%); */
}

.transition-frame__card--grid {
  --frame-graphic: radial-gradient(circle at 20% 40%, rgba(26, 133, 198, 0.3), rgba(26, 133, 198, 0) 35%),
    radial-gradient(circle at 70% 60%, rgba(224, 180, 78, 0.3), rgba(224, 180, 78, 0) 36%),
    linear-gradient(90deg, rgba(18, 18, 18, 0.16) 0 4px, transparent 4px 100%),
    linear-gradient(0deg, rgba(18, 18, 18, 0.14) 0 4px, transparent 4px 100%),
    linear-gradient(180deg, #fdfdfb, #f4f6f8 55%, #fdfdfb);
}

.transition-frame__card--storage {
  --frame-graphic: radial-gradient(circle at 50% 25%, rgba(36, 172, 227, 0.35), rgba(36, 172, 227, 0) 40%),
    linear-gradient(145deg, rgba(243, 200, 90, 0.65), rgba(243, 200, 90, 0) 60%),
    linear-gradient(200deg, rgba(20, 20, 20, 0.08), transparent 55%),
    linear-gradient(180deg, #fdfdfb, #f3f3f3 65%, #fdfdfb);
}

.transition-frame__card--plant {
  --frame-graphic: radial-gradient(circle at 35% 45%, rgba(26, 133, 198, 0.35), rgba(26, 133, 198, 0) 45%),
    radial-gradient(circle at 75% 55%, rgba(232, 116, 58, 0.4), rgba(232, 116, 58, 0) 42%),
    linear-gradient(160deg, rgba(18, 18, 18, 0.09), transparent 58%),
    linear-gradient(180deg, #fdfdfb, #f4f6f8 60%, #fdfdfb);
}

.transition-frame__body {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
  z-index: 1;
}

.frame-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f6d96b;
  color: #161616;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.transition-frame__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.3rem; /*0.95rem;*/
  color: #2b2b2b;
  max-width: 16ch;
  font-weight: 700;
}

.transition-frame__cta {
  align-self: end;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.frame-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: #0b0b0b;
  color: #f7f7f7;
  cursor: pointer;
  line-height: 1;
  isolation: isolate;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frame-cta:link,
.frame-cta:visited {
  color: #f7f7f7;
  text-decoration: none;
}

.frame-cta__ring {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 rgba(37, 173, 227, 0.08);
  animation: ringPulseDark 4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.frame-cta__label {
  position: relative;
  z-index: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
}

.frame-cta__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
}

.frame-cta__icon svg {
  width: 100%;
  height: 100%;
  transform: rotate(90deg);
}

.frame-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.frame-cta:hover .frame-cta__ring {
  border-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 24px rgba(37, 173, 227, 0.2);
}

@keyframes ringPulseDark {
  0% {
    border-color: rgba(0, 0, 0, 0.32);
    box-shadow: 0 0 0 rgba(37, 173, 227, 0.08);
  }
  40% {
    border-color: rgba(0, 0, 0, 0.32);
    box-shadow: 0 0 0 rgba(37, 173, 227, 0.08);
  }
  55% {
    border-color: rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 18px rgba(37, 173, 227, 0.2);
  }
  70% {
    border-color: rgba(0, 0, 0, 0.32);
    box-shadow: 0 0 0 rgba(37, 173, 227, 0.08);
  }
  100% {
    border-color: rgba(0, 0, 0, 0.32);
    box-shadow: 0 0 0 rgba(37, 173, 227, 0.08);
  }
}

@media (max-width: 1100px) {
  .transition-frame__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .transition-frame {
    grid-template-rows: auto auto auto;
  }
}

@media (max-width: 720px) {
  .transition-frame {
    padding: clamp(1.75rem, 6vw, 2.25rem);
  }
  .transition-frame__header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }
  .transition-frame::before {
    top: 52%;
  }
  .transition-frame__cta {
    justify-content: center;
  }
}

/* TEXT FORMATTING OVERRIDES TO ENSURE THEY ARE APPLIED LAST */
.gdbrand {
  color: #25ade3;
  font-weight: 300;
}

.gdbrand-clr-only {
  color: #25ade3;
}

.qcomm-aware-logo {
  display: block;
  margin: 0 auto;
  max-width: clamp(180px, 28vw, 380px); /* about 50% smaller */
  width: auto;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 8px 13px hsla(0, 0%, 0%, 0.85));
}