/* Plixo's visual character. Content grids and responsive structure live in styles.css. */
:root {
  --paper: #fafafa;
  --ink: #0b1021;
  --muted: #4a4e5a;
  --line: #dedfe6;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}
h3 {
  letter-spacing: -0.02em;
}
::selection {
  background: #c7f464;
  color: #0b1021;
}

/* Navigation uses section clipping; the brand blends with the page itself. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  padding: 0;
  display: block;
  background: transparent;
  border: 0;
  z-index: 40;
  pointer-events: none;
  --nav-dark-top: 0px;
  --nav-dark-bottom: 100%;
}
.header-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 112px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--navy);
}
.header-inner > * {
  pointer-events: auto;
}
.header-over-dark {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fafafa;
  clip-path: inset(var(--nav-dark-top) 0 var(--nav-dark-bottom) 0);
  pointer-events: none;
}
.header-over-dark * {
  pointer-events: none !important;
}
.site-header .brand span {
  font-size: 19px;
  letter-spacing: 0.18em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-drawing-mobile {
  display: none;
}
.logo-gear {
  fill: #a3d139;
}
.logo-letter {
  fill: #0b1021;
}
.logo-ring {
  fill: #10b981;
}
.header-over-dark .logo-gear {
  fill: #0b29b6;
}
.header-over-dark .logo-letter {
  fill: #fafafa;
}
.header-over-dark .logo-ring {
  fill: #3840fe;
}
/* Layered masks recolor actual backdrop pixels using the original palette.
   Plain difference blending would turn blue yellow. These standard CSS filters
   map dark/light pixels to exact brand endpoints without SVG filter URLs.
   Root-level siblings avoid backdrop isolation; the original home link retains
   its accessible name, hit area and keyboard focus. See tools/LOGO-PALETTE.md. */
.brand-inversion {
  position: fixed;
  z-index: 41;
  pointer-events: none;
  user-select: none;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: var(--brand-mask);
  mask-image: var(--brand-mask);
  -webkit-backdrop-filter: var(--brand-filter);
  backdrop-filter: var(--brand-filter);
}
.brand-gear {
  --brand-filter: grayscale(1) contrast(3) invert(0.294881791) sepia(0.846473683) saturate(4.265176886) hue-rotate(-177.776336271deg) contrast(1.628040938) invert(0.162650018) sepia(0.566493932) saturate(4.849430317) hue-rotate(8.564109383deg) brightness(0.762119101) contrast(1.548749997);
}
.brand-ring {
  --brand-filter: grayscale(1) contrast(3) invert(0.755783349) sepia(0.914328819) saturate(4.347671092) hue-rotate(-40.716995649deg) contrast(2.407134313) invert(0.644526063) sepia(0.219446481) saturate(4.363101920) hue-rotate(-4.764657173deg) brightness(0.878464124) contrast(1.321593327);
}
.brand-letter {
  --brand-filter: grayscale(1) contrast(3) invert(0.820596122) sepia(0.602820011) saturate(1.299418289) hue-rotate(-48.637023815deg) contrast(1.577621273) invert(0.161611430) sepia(0.000000028) saturate(1.063228816) hue-rotate(-122.451463371deg) brightness(1.010445459) contrast(1.383833473);
}
.brand-gear {
  --brand-mask: url(/images/logo-gear-mask.svg);
}
.brand-ring {
  --brand-mask: url(/images/logo-ring-mask.svg);
}
.brand-letter {
  --brand-mask: url(/images/logo-letter-mask.svg);
}
.has-brand-palette .site-header .brand .logo-mark {
  opacity: 0;
}
/* iOS keeps the native SVG colors even if a cached script enables the effect. */
@supports (-webkit-touch-callout: none) {
  .brand-inversion {
    display: none;
  }
  .has-brand-palette .site-header .brand .logo-mark {
    opacity: 1;
  }
}
.desktop-nav a {
  position: relative;
  color: inherit;
  opacity: 0.84;
  transition: opacity 0.2s;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: inherit;
  opacity: 1;
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-cta {
  color: #0b1021;
  background: linear-gradient(135deg, #c7f464, #10b981);
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.2;
  justify-content: center;
  text-align: center;
  gap: 0;
  box-shadow: none;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: none;
}
.site-header .menu-toggle {
  color: inherit;
  border-color: currentColor;
  border-radius: 8px;
}
.menu-toggle span {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.menu-open .menu-toggle span {
  transform: rotate(45deg);
}
.mobile-nav {
  z-index: 3;
  background: #fafafa;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 50px #0b10211a;
  pointer-events: auto;
}
.mobile-nav a {
  font-weight: 600;
}
.page-hero {
  padding-top: 156px;
}

/* Broad, unboxed film, with the existing content kept in the foreground. */
.hero {
  position: relative;
  min-height: max(820px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 112px;
  padding-bottom: 98px;
  background: #0b1021;
  overflow: hidden;
  isolation: isolate;
}
.hero-main {
  display: block;
  padding-block: 50px 95px;
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(690px, 64%);
}
.hero h1 {
  font-size: clamp(62px, 6.2vw, 90px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero-intro {
  max-width: 460px;
  color: #e0e4ee;
  font-size: 17px;
}
.hero-copy .eyebrow {
  color: #c2cbdf;
  letter-spacing: 0.18em;
}
.hero-note {
  color: #bdc7db;
}
.hero-media {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border-radius: 0;
  background: #0b1021;
  isolation: auto;
  z-index: 0;
}
.hero-media > img,
.hero-media > video {
  object-position: 58% center;
  transform: scale(1.025);
}
.hero-media .hero-poster,
.hero-media > video {
  object-position: 58% center;
}
.hero-media::after {
  background:
    linear-gradient(#0b102126, #0b102126),
    linear-gradient(
      90deg,
      #0b1021ed 0%,
      #0b1021bf 35%,
      #0b102135 70%,
      #0b102105 100%
    ),
    linear-gradient(
      180deg,
      #0b102170 0%,
      transparent 28%,
      transparent 65%,
      #0b1021ed 100%
    );
}
.motion-toggle {
  bottom: 108px;
  right: max(56px, calc((100vw - 1320px) / 2));
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 50%;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.motion-toggle svg {
  fill: currentColor;
}
.motion-toggle[data-paused="true"] .motion-pause,
.motion-toggle[data-paused="false"] .motion-play {
  display: none;
}
.motion-toggle:hover {
  background: #0b1021a6;
  border-color: #c7f464;
}
.hero-footer {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  min-height: 86px;
  border-color: #ffffff29;
  color: #b6c1d5;
}
.hero-footer a span {
  animation: scroll-cue 2.5s var(--ease-out) infinite;
}
@keyframes scroll-cue {
  0%,
  100% {
    transform: translateY(-3px);
  }
  55% {
    transform: translateY(5px);
  }
}

/* The original title sweep: lime on dark; emerald, blue and indigo on light. */
h1 em,
h2 em {
  font-weight: 700;
  background-image: linear-gradient(
    100deg,
    #60841b 0%,
    #078157 28%,
    #3840fe 50%,
    #0b29b6 60%,
    #078157 78%,
    #60841b 100%
  );
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  animation: gradient-shift 7s ease-in-out infinite;
}
.hero h1 em,
.research-band h2 em,
.closing h2 em {
  background-image: linear-gradient(
    100deg,
    #c7f464 0%,
    #e7ff8e 20%,
    #a3d139 45%,
    #c7f464 70%,
    #e7ff8e 100%
  );
}

/* Compact, label-only controls, sized for readable text and touch. */
.button {
  min-height: 44px;
  max-width: 100%;
  border-radius: 8px;
  padding: 10px 18px;
  justify-content: center;
  text-align: center;
  gap: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s,
    background 0.35s;
}
.button.lime,
.button.dark {
  background: linear-gradient(135deg, #c7f464, #10b981);
  color: #0b1021;
  box-shadow: none;
}
.button.lime:hover,
.button.dark:hover {
  background: linear-gradient(135deg, #dbff91, #19cb92);
  box-shadow: none;
  transform: translateY(-1px);
}
.button.outline {
  border-color: #aeb5c9;
  background: #ffffffb3;
}
.button.outline:hover {
  background: white;
  box-shadow: none;
  transform: translateY(-1px);
}
.text-button {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}
.text-link span {
  transition: transform 0.35s var(--ease-out);
}
.text-link:hover span {
  transform: translate(3px, -2px);
}

/* The same content structures, with lighter surfaces and more depth. */
.section-heading {
  position: relative;
}
.audience-grid {
  border: 0;
  gap: 24px;
}
.audience-panel {
  position: relative;
  background: linear-gradient(145deg, #fff, #f4f6fb);
  border: 1px solid #dce0ed;
  border-radius: 18px;
  box-shadow: 0 18px 50px -28px #2325a747;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s,
    border-color 0.45s;
}
.audience-panel + .audience-panel {
  border: 1px solid #dce0ed;
}
.audience-panel:hover {
  background: linear-gradient(145deg, #fff, #edf2e3);
  transform: translateY(-5px);
  border-color: #a3d139;
  box-shadow: 0 26px 60px -28px #2325a752;
}
.round-arrow {
  border-color: #bbc7e2;
  color: var(--blue);
  transition:
    background 0.3s,
    transform 0.3s;
}
.audience-panel:hover .round-arrow {
  background: var(--lime);
  transform: rotate(8deg);
}
.status-label {
  border-top: 1px solid #dbe0ec;
  padding-top: 18px;
  margin-top: auto;
}
.offer-section {
  background: linear-gradient(130deg, #f1f4fb, #f7faef 70%, #eef4e5);
  border-block-color: #dfe5ea;
}
.deliverables li > span {
  font-size: 14px;
  font-weight: 600;
  width: 34px;
  flex-shrink: 0;
}
.deliverables li,
.deliverables > .eyebrow {
  border-color: #cfd7d7;
}
.research-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b1021;
}
.research-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.85;
  background:
    linear-gradient(90deg, #0b102135, #0b10219f),
    url(/media/optical-contours.webp) center / cover;
}
.research-tag {
  border-radius: 100px;
  background: #c7f4640b;
  padding: 7px 13px;
}
.founder-portrait img {
  border-radius: 18px;
  box-shadow: 0 24px 60px -25px #0b10214d;
}
.founder-principle {
  border-left-color: #10b981;
}
.closing {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #0b1021, #15184f 70%, #2325a7);
}
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    120deg,
    transparent 0 119px,
    #ffffff04 119px 120px
  );
}
.closing > .wrap {
  position: relative;
  z-index: 1;
}
.context-panel,
.contact-workspace {
  border: 1px solid #d9e0ed;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #eef2f9);
  box-shadow: 0 22px 60px -30px #2325a747;
}
.context-panel {
  border-top: 3px solid #a3d139;
}
.example-section {
  background: linear-gradient(130deg, #f1f4fb, #f4f8ed);
}
.wide-image img {
  border-radius: 18px;
}
.problem-rows article,
.source-list article {
  transition: border-color 0.3s;
}
.problem-rows article:hover,
.source-list article:hover {
  border-color: #7b91c8;
}
.field input,
.field select,
.field textarea,
.brief-text {
  border-radius: 8px;
  border-color: #cbd3e3;
  background: #ffffffd9;
}

/* Progressive, one-time reveals keep native wheel/touch scrolling intact. */
.reveal-pending {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-pending.is-revealed {
  opacity: 1;
  transform: none;
}
.reveal-pending:focus-within {
  opacity: 1;
  transform: none;
}
html.motion-paused .hero-copy > * {
  animation: none;
  opacity: 1;
  transform: none;
}
.hero-copy > * {
  animation: hero-rise 0.8s var(--ease-out) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    width: calc(100% - 64px);
    gap: 24px;
  }
  .motion-toggle {
    right: 32px;
  }
  .hero-copy {
    width: 68%;
  }
  .hero h1 {
    font-size: 70px;
  }
}
@media (max-width: 880px) {
  .site-header {
    height: 68px;
  }
  .header-inner {
    gap: 20px;
  }
  .hero {
    min-height: 840px;
    padding-top: 90px;
  }
  .hero-main {
    padding-block: 45px 130px;
  }
  .hero-copy {
    width: 80%;
  }
  .hero h1 {
    font-size: 66px;
  }
  .hero-intro {
    font-size: 16px;
  }
  .page-hero {
    padding-top: 138px;
  }
}
@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 40px);
    gap: 15px;
  }
  .site-header {
    height: 64px;
  }
  .site-header .brand span {
    font-size: 17px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
  .logo-drawing-desktop {
    display: none;
  }
  .logo-drawing-mobile {
    display: inline;
  }
  .brand-gear {
    --brand-mask: url(/images/logo-gear-mobile-mask.svg);
  }
  .brand-ring {
    --brand-mask: url(/images/logo-ring-mobile-mask.svg);
  }
  .brand-letter {
    --brand-mask: url(/images/logo-letter-mobile-mask.svg);
  }
  .hero {
    min-height: max(880px, 100svh);
    padding-top: 90px;
    padding-bottom: 130px;
  }
  .hero-main {
    padding-block: 35px 170px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(45px, 11.5vw, 70px);
    letter-spacing: -0.03em;
    line-height: 1.06;
  }
  .hero-intro {
    max-width: 350px;
    font-size: 15px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .hero-media::after {
    background:
      linear-gradient(90deg, #0b1021d9, #0b102159),
      linear-gradient(
        180deg,
        #0b1021b8,
        #0b10214d 35%,
        #0b102108 70%,
        #0b1021ed
      );
  }
  .hero-media > img,
  .hero-media > video,
  .hero-media .hero-poster {
    object-position: 57% center;
  }
  .motion-toggle {
    bottom: 114px;
    right: 20px;
  }
  .hero-footer {
    min-height: 94px;
    padding-block: 22px;
  }
  .hero-footer > p {
    max-width: 125px;
  }
  .audience-grid {
    gap: 18px;
  }
  .audience-panel + .audience-panel {
    border: 1px solid #dce0ed;
  }
  .page-hero {
    padding-top: 120px;
  }
  .page-hero h1 {
    letter-spacing: -0.03em;
  }
  .context-panel,
  .contact-workspace,
  .audience-panel {
    border-radius: 14px;
  }
}
html:not(.js) .site-header {
  position: relative;
}
html:not(.js) .page-hero {
  padding-top: 64px;
}
@media (max-width: 880px) {
  html:not(.js) .site-header {
    padding: 0;
  }
  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 16px;
    gap: 12px;
  }
  html:not(.js) .hero {
    padding-top: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-pending,
  .hero-copy > * {
    opacity: 1;
    transform: none;
  }
  h1 em,
  h2 em {
    background-image: none !important;
    color: #0b29b6 !important;
  }
  .hero h1 em,
  .research-band h2 em,
  .closing h2 em {
    color: #c7f464 !important;
  }
}
@media (forced-colors: active) {
  .brand-inversion {
    display: none;
  }
  .has-brand-palette .site-header .brand .logo-mark {
    opacity: 1;
  }
  h1 em,
  h2 em {
    background-image: none !important;
    color: CanvasText !important;
  }
  .header-over-dark {
    display: none;
  }
  .header-inner {
    color: CanvasText;
  }
  .logo-gear,
  .logo-ring {
    fill: CanvasText;
  }
  .logo-letter {
    fill: Canvas;
  }
}
