/* ==========================================================================
   Matereal — Design tokens
   ========================================================================== */

:root {
  /* Brand color */
  --ink: #131019;
  --ink-soft: #56515f;
  --ink-faint: #8b8794;
  --paper: #ffffff;
  --paper-tint: #f6f4fa;
  --line: #e4e0eb;

  --purple-900: #29045c;
  --purple-700: #4800bd;
  --purple-600: #5c17d6;
  --purple-500: #6100ff;
  --purple-100: #efe6ff;

  --green-400: #76e69f;
  --green-600: #1f9c56;

  --focus-ring: #6100ff;

  /* Typography */
  --font-display: "Alliance No.1", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Alliance No.1", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.72rem, 0.7rem + 0.12vw, 0.78rem);
  --step-0: clamp(0.9rem, 0.86rem + 0.2vw, 0.98rem);
  --step-1: clamp(1.02rem, 0.95rem + 0.32vw, 1.12rem);
  --step-2: clamp(1.35rem, 1.25rem + 0.5vw, 1.65rem);
  --step-3: clamp(1.95rem, 1.7rem + 1.2vw, 2.55rem);
  --step-4: clamp(2.5rem, 2.1rem + 1.9vw, 3.3rem);
  --step-5: clamp(3.3rem, 2.7rem + 2.9vw, 4.5rem);
  --step-6: clamp(3.9rem, 3.1rem + 3.9vw, 5.7rem);

  /* Spacing (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;
  --sp-10: 9rem;

  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  --container: 1240px;
  --container-narrow: 820px;

  --shadow-sm: 0 1px 2px rgba(19, 16, 25, 0.06), 0 1px 1px rgba(19, 16, 25, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(41, 4, 92, 0.22);
  --shadow-lg: 0 24px 64px -20px rgba(41, 4, 92, 0.3);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Fonts (self-hosted, no external requests)
   ========================================================================== */

@font-face {
  font-family: "Alliance No.1";
  src: url("../assets/fonts/AllianceNo1-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alliance No.1 Regular";
  src: url("../assets/fonts/AllianceNo1-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
p { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--purple-500); color: #fff; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }

.applications-banner {
  position: relative;
  background-color: #f9f9f9;
  padding-top: calc(var(--sp-8) * 1.7);
  padding-bottom: 0;
}
.applications-banner::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: max(var(--sp-5), calc((100% - var(--container)) / 2 + var(--sp-5)));
  top: 0;
  bottom: 0;
  width: 44%;
  background:
    url("../assets/images/Matereal_r1_01B_0212.jpg") left center / 78% auto no-repeat;
  pointer-events: none;
}
.applications-banner .container { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .applications-banner::before {
    width: 55%;
    opacity: 0.5;
  }
}
.applications-banner__fade {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 160px;
  margin-top: calc(var(--sp-8) * 1.3);
  /*background: linear-gradient(to top, #121115 0%, rgba(18, 17, 21, 0) 80%);*/
  pointer-events: none;
}
.team-banner { background: #f9f9f9; }
.team-banner .container {
  background: url("../assets/images/Matereal_r1_01B_0001.jpg") right bottom / 30% auto no-repeat;
}
@media (max-width: 700px) {
  .team-banner .container {
    background-size: 38% auto;
  }
}
.intelligence-banner {
  background: url("../assets/images/istockphoto-2216210177-1024x1024.jpg") center / cover no-repeat;
  color: #fff;
}
.intelligence-banner .eyebrow { color: var(--green-400); }
.intelligence-banner .lede { color: rgba(255, 255, 255, 0.8); }
.section--paper-tint { background: var(--paper-tint); }
.section--cool-tint { background: #e9ecf0; }

.section--intel-photo {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--sp-9) * 0.7 * 1.2);
  padding-bottom: 0;
  height: 520px;
}
.section--intel-photo .container {
  position: relative;
  z-index: 1;
  height: 100%;
}
.section--intel-photo__frame {
  position: absolute;
  top: 0;
  right: -4%;
  width: 66%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.section--intel-photo .footer-cta { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .section--intel-photo__frame { display: none; }
}
.section--ink { background-color: #121115; color: #fff; }
.section--fade {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-9);
}

.intel-diagram__section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.intel-diagram__section-brand { flex-shrink: 0; text-align: right; }
.intel-diagram__section-logo { width: 130px; height: auto; opacity: 0.9; }
.intel-diagram__section-tagline {
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-400);
}
@media (max-width: 700px) {
  .intel-diagram__section-head-row { flex-direction: column; }
  .intel-diagram__section-logo { width: 100px; }
}

.intel-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 13;
  max-width: 1100px;
  margin-inline: auto;
}
.intel-diagram__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.intel-diagram__lines--behind { z-index: 0; }
.intel-diagram__flow-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 0.3;
  stroke-dasharray: 1.2 1.2;
  animation: intel-flow-dash 1.4s linear infinite;
}
.intel-diagram__flow-line--core { stroke: #8b5cf6; stroke-width: 0.35; stroke-dasharray: none; animation: none; }
.intel-diagram__flow-line--loop { stroke: #76e69f; animation-duration: 2.2s; }
.intel-diagram__motion-path { fill: none; stroke: none; }
.intel-diagram__pulse { fill: rgba(255, 255, 255, 0.95); filter: drop-shadow(0 0 1.4px rgba(255, 255, 255, 0.9)); }
.intel-diagram__pulse--output { fill: var(--green-400); filter: drop-shadow(0 0 1.6px var(--green-400)); }
.intel-diagram__pulse--core { fill: #c4b5fd; filter: drop-shadow(0 0 1.6px #8b5cf6); }
@keyframes intel-flow-dash { to { stroke-dashoffset: -2.4; } }
.intel-diagram__box {
  position: absolute;
  border-radius: 16px;
  padding: 1.5% 1.75%;
}
.intel-diagram__box--input {
  left: 2%; width: 20%;
  background: #e9ecf0;
  color: var(--ink);
}
.intel-diagram__box--input h3 { font-size: var(--step-1); font-weight: 700; }
.intel-diagram__box--input p { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }
.intel-diagram__box--input:nth-of-type(1) { top: 12%; height: 16%; }
.intel-diagram__box--input:nth-of-type(2) { top: 42%; height: 16%; }
.intel-diagram__box--input:nth-of-type(3) { top: 72%; height: 16%; }

.intel-diagram__core {
  position: absolute;
  left: 37%; width: 33%;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  border-radius: 22px;
  background: linear-gradient(165deg, var(--purple-500), var(--purple-900));
  color: #fff;
  padding: 4% 3%;
  display: flex;
  flex-direction: column;
}
.intel-diagram__core h3 { font-family: var(--font-display); font-size: var(--step-0); font-weight: 700; letter-spacing: 0.02em; }
.intel-diagram__core > p { font-size: var(--step-1); font-weight: 700; opacity: 0.9; margin-top: 6%; text-align: center; }
.platform-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 6%;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: #fff;
}
.platform-title img { height: 28px; width: auto; }
.intel-diagram__core-block {
  margin-top: 8%;
  padding: 6% 8%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  animation: intel-core-block-glow 2.4s ease-in-out infinite;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}
@keyframes intel-core-block-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 181, 253, 0); }
  50% { box-shadow: 0 0 16px 4px rgba(196, 181, 253, 0.65); }
}
.intel-diagram__repo {
  margin-top: 8%;
  padding: 5% 6% 6%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.intel-diagram__repo p { font-size: 0.8rem; font-weight: 700; margin-bottom: 6%; text-align: center; }
.intel-diagram__repo-item {
  padding: 5% 6%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}
.intel-diagram__repo-item + .intel-diagram__repo-item { margin-top: 6%; }

.intel-diagram__box--output {
  left: 75%; width: 17%;
  top: 39%; height: 18%;
  background: var(--green-400);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.intel-diagram__box--output h3 { font-size: var(--step-1); font-weight: 700; }
.intel-diagram__box--output p { font-size: 0.75rem; margin-top: 4px; opacity: 0.9; line-height: 1.3; }

.intel-diagram__box--rd {
  left: 70%; width: 26%;
  top: 82%; height: 14%;
  background: #e9ecf0;
  color: var(--ink);
  text-align: center;
}
.intel-diagram__box--rd h3 { font-size: var(--step-1); font-weight: 700; }
.intel-diagram__box--rd p { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }

.intel-diagram__loop-label {
  position: absolute;
  left: 37%; top: 91%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #76e69f;
  white-space: nowrap;
}
.intel-diagram-mobile { display: none; }
@media (max-width: 760px) {
  .intel-diagram { display: none; }
  .intel-diagram-mobile {
    display: flex;
    flex-direction: column;
    max-width: 420px;
    margin-inline: auto;
  }
  .intel-diagram-mobile__group { display: flex; flex-direction: column; gap: var(--sp-3); }
  .intel-diagram-mobile__box {
    background: #e9ecf0;
    color: var(--ink);
    border-radius: 16px;
    padding: var(--sp-4);
  }
  .intel-diagram-mobile__box h3 { font-size: var(--step-1); font-weight: 700; }
  .intel-diagram-mobile__box p { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }
  .intel-diagram-mobile__box--output { background: var(--green-600); color: #fff; text-align: center; }
  .intel-diagram-mobile__box--output p { color: rgba(255, 255, 255, 0.9); }
  .intel-diagram-mobile__arrow { text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 1.3rem; margin-block: var(--sp-2); line-height: 1; animation: intel-arrow-flow 1.6s ease-in-out infinite; }
  .intel-diagram-mobile__arrow:nth-of-type(2) { animation-delay: 0.4s; }
  @keyframes intel-arrow-flow {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(5px); opacity: 1; }
  }
  .intel-diagram-mobile__loop {
    text-align: center;
    margin-top: var(--sp-4);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: #8b5cf6;
  }
  .intel-diagram-mobile .intel-diagram__core {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: var(--sp-2);
  }
  .intel-diagram-mobile .intel-diagram__core-logo { width: 62%; }
}

.section--photo {
  position: relative;
  background: #121212;
  color: #fff;
  padding-block: 0;
}
.photo-frame {
  position: relative;
  overflow: hidden;
  height: 1040px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: url("../assets/images/material-texture.jpg") right top / 70% auto no-repeat;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, #121212 0%, transparent 100%);
  pointer-events: none;
}
.photo-frame .section-head {
  position: relative;
  z-index: 1;
  max-width: var(--container-narrow);
  padding: var(--sp-7);
  margin-bottom: 0;
}
.photo-frame__block {
  position: absolute;
  top: 10%;
  left: 5%;
  z-index: 1;
  max-width: 560px;
  text-align: left;
  padding: calc(var(--sp-6) * 1.3);
}
.photo-frame .eyebrow { color: var(--green-400); }
.photo-frame .lede { color: rgba(255, 255, 255, 0.75); }
.photo-frame__block .lede { color: rgba(255, 255, 255, 0.85); }
.photo-frame__block--purple {
  background: color-mix(in srgb, var(--purple-700) 62%, transparent);
  border: 1px solid white;
  z-index: 2;
}

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

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-700);
}
.section--ink .eyebrow { color: var(--green-400); }

.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background-color: currentColor;
  -webkit-mask: url("../assets/images/star-mark.png") center / contain no-repeat;
  mask: url("../assets/images/star-mark.png") center / contain no-repeat;
}

.icon-star {
  display: inline-block;
  width: 22px; height: 22px;
  background-color: currentColor;
  -webkit-mask: url("../assets/images/star-mark.png") center / contain no-repeat;
  mask: url("../assets/images/star-mark.png") center / contain no-repeat;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 65ch;
  margin-top:20px;
}
.section--ink .lede { color: rgba(255, 255, 255, 0.75); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
  max-width: 46rem;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}
.divider--light { background: rgba(255, 255, 255, 0.15); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--purple-700);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--purple-500); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--purple-700); color: var(--purple-700); }

.section--ink .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.section--ink .btn--ghost:hover { border-color: var(--green-400); color: var(--green-400); }

.btn--light {
  background: #fff;
  color: var(--purple-700);
}
.btn--light:hover { background: var(--green-400); color: var(--ink); }

.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

/* ==========================================================================
   Site header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.brand__logo {
  height: 34px;
  width: auto;
  display: block;
}
.footer-brand__logo { height: 140px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
}
.nav__list a {
  position: relative;
  padding-block: 4px;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a[aria-current="page"] { color: var(--purple-700); }
.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--purple-700);
  border-radius: 2px;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--line);
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav-open .nav__toggle .icon-menu { display: none; }
.nav-open .nav__toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__list {
    position: fixed;
    inset: 73px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    padding: var(--sp-6) var(--sp-5);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  .nav-open .nav__list { transform: translateX(0); }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: var(--sp-4) 0; font-size: var(--step-2); }
  .nav-open .nav__cta-mobile { display: inline-flex; margin-top: var(--sp-6); }
}
.nav__cta-mobile { display: none; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-faint);
  padding-block: var(--sp-5);
}
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--purple-700); }
.breadcrumb span[aria-current] { color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding-block: 7rem 6rem;
  background: var(--paper);
}
.hero .container { position: relative; z-index: 1; }

.hero__mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero__mesh--blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero__mesh--blobs span:nth-child(1) {
  width: 55vw; height: 55vw;
  top: -18vw; left: -12vw;
  background: radial-gradient(circle, var(--purple-500), transparent 70%);
  animation: hero-blob-a 11s ease-in-out infinite;
}
.hero__mesh--blobs span:nth-child(2) {
  width: 46vw; height: 46vw;
  bottom: -18vw; right: -10vw;
  background: radial-gradient(circle, var(--green-400), transparent 70%);
  animation: hero-blob-b 13s ease-in-out infinite;
}
.hero__mesh--blobs span:nth-child(3) {
  width: 40vw; height: 40vw;
  top: 15%; left: 32%;
  background: radial-gradient(circle, var(--purple-900), transparent 70%);
  animation: hero-blob-c 15s ease-in-out infinite;
}
.hero__mesh--blobs span:nth-child(4) {
  width: 34vw; height: 34vw;
  top: 5%; right: 12%;
  background: radial-gradient(circle, var(--purple-700), transparent 70%);
  animation: hero-blob-d 9s ease-in-out infinite;
}
@keyframes hero-blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16vw, 12vw) scale(1.3); }
}
@keyframes hero-blob-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14vw, -16vw) scale(1.2); }
}
@keyframes hero-blob-c {
  0%, 100% { transform: translate(-10vw, 5vw) scale(1); }
  50% { transform: translate(13vw, -9vw) scale(1.35); }
}
@keyframes hero-blob-d {
  0%, 100% { transform: translate(0, -5vw) scale(1); }
  50% { transform: translate(-11vw, 9vw) scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mesh--blobs span { animation: none; }
}
.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}
.hero h1 { font-size: var(--step-6); max-width: 22ch; margin-bottom: 20px; flex-wrap: wrap; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.sub__header { max-width: min(600px, 100%); }

.hero__media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 64%;
  z-index: -1;
  overflow: hidden;
  background: var(--ink);
  -webkit-mask-image: linear-gradient(to right, transparent, black 38%);
  mask-image: linear-gradient(to right, transparent, black 38%);
}
.hero__media mux-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --media-object-fit: cover;
  --media-object-position: center;
  pointer-events: none;
}
.hero__copy__panel {
  
  border-radius: var(--radius-md);
  display: inline-block;
}
@media (max-width: 900px) {
  .hero__media { display: none; }
}
.hero__grid { display: grid; gap: var(--sp-5); align-items: center; }
.hero__grid--split { grid-template-columns: 1.05fr 0.95fr; }
@media (max-width: 900px) { .hero__grid--split { grid-template-columns: 1fr; } }
.swatch {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, #f9f9f9 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.swatch__image {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 145%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(249, 249, 249, 0.2));
}
.swatch__tag {
  position: absolute;
  left: 50%; bottom: var(--sp-6);
  transform: translateX(-50%);
  z-index: 1;
  color: var(--ink);
  font-family: var(--font-display);
  text-align: center;
}
.swatch__tag strong { display: block; font-size: var(--step-1); }
.swatch__tag span { font-size: var(--step--1); opacity: 0.75; }
@media (max-width: 700px) {
  .hero__media { height: 24rem; }
}

/* ==========================================================================
   Stat / trust strip
   ========================================================================== */

.stat-band {
  position: relative;
}
.stat-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #121212;
}
.stat-strip {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.stat-strip dt {
  font-size: var(--step--1);
  color: var(--green-400);
  margin-bottom: 4px;
}
.stat-strip dd {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--purple-100);
  color: var(--purple-700);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 22px; height: 22px; }

.card h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); font-size: var(--step--1); }

.card--formulation { position: relative; display: flex; flex-direction: column; }
.card--formulation::before, .card--formulation::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--green-400);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.card--formulation::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card--formulation::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.card--formulation:hover::before, .card--formulation:hover::after { opacity: 1; }
.card--formulation .badge { margin-bottom: var(--sp-4); align-self: flex-start; }
.card--formulation__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.card--formulation__head .card__icon { margin-bottom: 0; flex-shrink: 0; }
.card--formulation__head h3 { margin-bottom: 0; }
.card--formulation--featured {
  background: #f9f9f9;
  border-color: transparent;
  padding: var(--sp-8);
  padding-bottom: calc(var(--sp-8) * 2.4);
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.card--formulation--featured .card__icon {
  width: 56px;
  height: 56px;
}
.card--formulation--featured .card__icon svg { width: 26px; height: 26px; }
.card--formulation__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--green-400);
  color: var(--ink);
}
.badge--muted { background: var(--paper-tint); color: var(--ink-soft); border: 1px solid var(--line); }
.badge--step { background: var(--green-400); color: var(--ink); border: 1px solid var(--green-400); }
.badge--dark { background: rgba(255, 255, 255, 0.12); color: #fff; }
.section--ink .badge--muted {
  background: #000;
  border-color: #e9ecf0;
  color: color-mix(in srgb, white 50%, #e9ecf0);
}

/* Application category cards */
.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
}
.app-card__head {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.app-card__head .card__icon { margin-bottom: 0; }
.app-card__head h3 { font-size: var(--step-1); margin: 0; }
.app-card__list { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: grid; gap: var(--sp-4); }
.app-card__item dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  margin-bottom: 2px;
}
.app-card__item dd { color: var(--ink-soft); font-size: var(--step--1); }

/* Interactive application category picker */
.app-showcase {
  position: relative;
  background: #121115;
  color: #fff;
  overflow: hidden;
}
.app-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
  pointer-events: none;
}
.app-showcase .container { position: relative; z-index: 1; }

.app-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}
@media (max-width: 900px) {
  .app-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .app-tabs { grid-template-columns: repeat(2, 1fr); } }
.app-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: flex-grow 0.45s var(--ease);
}
.app-tab:hover, .app-tab.is-active {
  flex-grow: 1.07;
}
@media (max-width: 900px) {
  .app-tab { flex: none; }
  .app-tab:hover, .app-tab.is-active { flex-grow: 0; }
}
.app-tab__frame {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
}
.app-tab__frame::before, .app-tab__frame::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.25s var(--ease);
  z-index: 2;
}
.app-tab__frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.app-tab__frame::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.app-tab:hover .app-tab__frame::before, .app-tab:hover .app-tab__frame::after,
.app-tab.is-active .app-tab__frame::before, .app-tab.is-active .app-tab__frame::after {
  border-color: var(--green-400);
}
.app-tab__img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 2;
  background-size: cover;
  background-position: center;
  filter: grayscale(55%) brightness(0.7) contrast(1.05);
  transition: filter 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 14%);
  mask-image: linear-gradient(to bottom, transparent, black 14%);
}
.app-tab__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #121115 0%, rgba(18, 17, 21, 0) 60%);
  pointer-events: none;
}
.app-tab.is-active .app-tab__img {
  filter: grayscale(0%) brightness(0.95) contrast(1.05);
  box-shadow: 0 0 0 1px var(--purple-500), 0 0 28px -6px rgba(97, 0, 255, 0.8);
}
.app-tab:hover .app-tab__img { filter: grayscale(20%) brightness(0.85) contrast(1.05); transform: scale(1.06); }
.app-tab__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: var(--sp-3);
  overflow: hidden;
}
.app-tab__index {
  align-self: flex-end;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple-500);
  letter-spacing: 0.05em;
}
.app-tab.is-active .app-tab__index { color: var(--green-400); }
.app-tab__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s var(--ease);
}

.app-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  background: rgba(255, 255, 255, 0.02);
}
.app-panel__group {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  animation: app-panel-in 0.5s var(--ease);
}
.app-panel__group[hidden] { display: none; }
@keyframes app-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .app-panel__group { animation: none; }
}
.app-item__img {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.app-item__img::before, .app-item__img::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--green-400);
}
.app-item__img::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.app-item__img::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.app-item h3 { font-size: var(--step-1); margin-bottom: 4px; color: #fff; }
.app-item p { color: rgba(255, 255, 255, 0.6); font-size: var(--step--1); }

/* Team */
.team-card { text-align: left; }
.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  object-fit: cover;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  color: #fff;
  margin-bottom: var(--sp-4);
}
.team-card h3 { font-size: var(--step-1); margin-bottom: 2px; }
.team-card .role { color: var(--purple-700); font-weight: 600; font-size: var(--step--1); margin-bottom: var(--sp-3); }
.team-card p { color: var(--ink-soft); font-size: var(--step--1); }
.team-card__bio { display: none; }
.team-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--purple-700);
}
.team-card__link svg { width: 16px; height: 16px; }

/* Journal */
.journal-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.journal-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.journal-card h3 { font-size: var(--step-2); }
.journal-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); }

.journal-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.journal-section__label {
  font-size: var(--step-1);
  color: var(--ink);
}
.journal-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
}
.journal-sort label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.journal-sort select {
  width: auto;
  max-width: 200px;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--purple-700);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
}
.journal-sort select:focus {
  outline: none;
  border-color: var(--purple-700);
  box-shadow: 0 0 0 3px var(--purple-100);
}
@media (max-width: 700px) {
  .journal-section { grid-template-columns: 1fr; }
}

.journal-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--sp-6);
  align-items: center;
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.journal-row:first-of-type { padding-top: 0; }
.journal-row:last-of-type { border-bottom: none; }
.journal-row__art {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.journal-row__art img { width: 100%; height: 100%; object-fit: cover; }
.journal-row__art--a { background: linear-gradient(155deg, var(--purple-500), var(--purple-900)); }
.journal-row__art--b { background: linear-gradient(155deg, var(--green-400), var(--purple-700)); }
.journal-row__art--c { background: linear-gradient(155deg, var(--purple-700), var(--ink)); }
.journal-row h3 { font-size: var(--step-2); }
@media (max-width: 700px) {
  .journal-row { grid-template-columns: 1fr; }
}

.featured-post {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  background: var(--paper-tint);
}
@media (min-width: 760px) {
  .featured-post { grid-template-columns: 0.9fr 1.1fr; }
}
.featured-post__art {
  aspect-ratio: 16/11;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--purple-500), var(--purple-900));
  position: relative;
  overflow: hidden;
}
.featured-post__art img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.form-field label { font-size: var(--step--1); font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: var(--step-0);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--purple-700);
  box-shadow: 0 0 0 4px var(--purple-100);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-note { font-size: var(--step--1); color: var(--ink-faint); margin-top: var(--sp-3); }
.form-status { font-size: var(--step--1); font-weight: 600; margin-top: var(--sp-3); }
.form-status[data-state="success"] { color: var(--green-600); }
.form-status[data-state="error"] { color: #c0273c; }

.inline-form {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.inline-form input {
  flex: 1 1 220px;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.inline-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.inline-form input:focus { outline: none; border-color: var(--green-400); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color:#121115;
  color: rgba(255, 255, 255, 0.85);
}
.footer-cta {
  padding-block: var(--sp-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12); 
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: center;
  justify-content: space-between;
}
.footer-cta h2 { color: #fff; font-size: var(--step-3); max-width: 20ch; }
.footer-main {
  padding-block: var(--sp-8);
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1.3fr repeat(3, 1fr);
}
@media (max-width: 760px) {
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}
.footer-brand .brand { color: #fff; margin-bottom: var(--sp-3); }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: var(--step--1); max-width: 32ch; }
.footer-col h3 {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: grid; gap: var(--sp-3); }
.footer-col a { color: rgba(255, 255, 255, 0.85); font-size: var(--step--1); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--green-400); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}
.footer-social a:hover { border-color: var(--green-400); color: var(--green-400); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Utility: reveal-on-scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intel-diagram__flow-line { animation: none; }
  .intel-diagram__pulse { display: none; }
  .intel-diagram__core-block { animation: none; }
  .intel-diagram-mobile__arrow { animation: none; }
}

/* ==========================================================================
   Misc pages: 404
   ========================================================================== */

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-9);
}
.not-found .eyebrow { justify-content: center; margin-bottom: var(--sp-4); }
