/* Homepage art direction: porcelain, Sirnaomics purple, warm orange.
   Scientific photography keeps its original colors. */
.page-home {
  --brand-purple: #5c219d;
  --brand-orange: #f28a37;
  --brand-teal: #397e83;
  --logo-orange: var(--brand-orange);
  --text-dark: #2d233c;
  --text-light: #655e70;
  background: #fdfbf8;
  color: var(--text-dark);
}

.page-home .home-main {
  --home-paper: #fdfbf8;
  --home-tint: #f3f0f7;
  --home-dark: #261d36;
  --home-ink: #2d233c;
  --home-muted: #655e70;
  --home-accent: var(--brand-purple);
  --home-apricot: var(--brand-orange);
  --home-rule: #e5dfea;
  color: var(--home-ink);
}

/* A single warm action color, with readable plum text. */
.page-home .home-main .cta-solid,
.page-home .home-main #close .cta-solid,
.page-home .home-hero-primary {
  border: 1px solid var(--brand-orange);
  border-radius: 6px;
  background: var(--brand-orange);
  color: #2d173c;
  font-weight: 700;
  box-shadow: none;
}
.page-home .home-main .cta-solid:is(:hover, :focus-visible),
.page-home .home-main #close .cta-solid:is(:hover, :focus-visible),
.page-home .home-hero-primary:is(:hover, :focus-visible) {
  border-color: var(--orange-hover);
  background: var(--orange-hover);
  color: #fff;
}
.page-home .home-main :is(a, button):focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 5px;
}

/* Preserve original media colors. Brand colors belong to type and controls. */
.page-home .home-hero {
  --hero-bg: #0c0f1c;
  --hero-text: #fffdf9;
  --hero-accent: #e6d4fa;
}
.page-home .home-hero-stage :is(img, video) {
  filter: none;
}
.page-home .home-hero-gradient {
  background:
    linear-gradient(180deg, #080b1750 0, transparent 25% 72%, #080b176b 100%),
    linear-gradient(90deg, #0a0d1ad9 0, #0a0d1ab3 20%, #0a0d1a8c 40%, #0a0d1a26 59%, transparent 76%);
}
.page-home .home-hero-body {
  width: min(100%, 690px);
}
.page-home .home-hero-title {
  font-size: clamp(2.75rem, 5.35vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.page-home h2.home-hero-title {
  font-size: clamp(2.3rem, 4.35vw, 4rem);
}
.page-home .home-hero-label {
  color: #f8bb88;
  font-size: .76rem;
  letter-spacing: .15em;
}
.page-home .home-hero-label::before {
  width: 30px;
  height: 2px;
  background: var(--brand-orange);
}
.page-home .home-hero-lead {
  max-width: 43ch;
  color: #f2edf6;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}
.page-home .home-hero-secondary {
  color: #fffdf9;
  text-decoration-color: #d7c4e591;
}
.page-home .home-hero-secondary:hover { color: #f8bb88; }
.page-home .home-hero :is(a, button):focus-visible {
  outline-color: #f8bb88;
}

/* Purple establishes recognition; orange is reserved for deliberate emphasis. */
.page-home .home-main .home-stats .pg-stat strong > .home-stat-value {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  max-width: none;
}
.page-home .home-main .home-stats {
  background: #f8f5fb;
  border-bottom-color: #e5dfea;
}
.page-home .home-main .home-stats .pg-stat {
  padding-block: clamp(25px, 3vw, 38px);
}
.page-home .home-main .home-stats .pg-stat strong {
  color: #5c219d;
  font-weight: 600;
}
.page-home .home-main :is(.ed-kicker, .heading .label) {
  color: #672e9d;
  font-size: .73rem;
  letter-spacing: .16em;
}
.page-home .home-main :is(.ed-title, .heading h2) {
  letter-spacing: -.045em;
  line-height: 1.09;
}
.page-home .home-main .rnd-story .heading h2 em { color: #672e9d; }
.page-home .home-main .who-media {
  border: 1px solid #e5dfea;
  border-radius: 10px;
}
.page-home .home-main .who-media figcaption {
  border: 0;
  border-top: 2px solid #9cbdb9;
  background: #f5f1f8;
  padding: 12px 16px;
  color: #655e70;
}

/* Retain the original color and contrast of each platform film. */
.page-home .home-main .rnd-story { background: #f3f0f7; }
.page-home .home-main .rnd-film-grid .rnd-panel {
  --home-dark: #101222;
  border: 1px solid #46374f;
  border-radius: 11px;
  background: var(--home-dark);
  box-shadow: 0 7px 18px -14px #30233c55;
}
.page-home .home-main .rnd-film-grid .rnd-panel-media video,
.page-home .home-main .rnd-film-grid #galahead .rnd-panel-media video,
.page-home .home-main .rnd-film-grid #aodc .rnd-panel-media video {
  filter: none;
}
.page-home .home-main .rnd-film-grid .rnd-panel-media::before {
  content: none;
}
.page-home .home-main .rnd-film-grid .rnd-panel-media::after {
  z-index: 2;
  background: linear-gradient(180deg, transparent 57%, #101222);
}
.page-home .home-main .platform-film-label {
  z-index: 3;
  border-color: #e0ccec4d;
  background: #2a1c36c9;
  color: #f3eafa;
  font-size: .68rem;
  letter-spacing: .08em;
}
.page-home .home-main .rnd-film-grid .rnd-panel-copy {
  z-index: 3;
  background: linear-gradient(0deg, var(--home-dark) 60%, #101222eb 85%, transparent);
}
.page-home .home-main .rnd-film-grid .rnd-panel-kicker { color: #cdbce1; }
.page-home .home-main .rnd-film-grid .rnd-panel-body { color: #e1d8e9; }
.page-home .home-main .rnd-panel-icon {
  border-color: #cdbce16b;
  background: #362744;
}
.page-home .home-main .rnd-panel-toggle:is(:hover, :focus-visible) .rnd-panel-icon,
.page-home .home-main .rnd-panel-toggle[aria-expanded=true] .rnd-panel-icon {
  border-color: #f4a76b;
  background: #f4a76b;
  color: #2d173c;
}
.page-home .home-main .rnd-film-grid .rnd-panel[data-platform-open] {
  border-color: #ba9cce;
  box-shadow: 0 13px 26px -18px #49305799;
}
.page-home .home-main .rnd-panel-link {
  border-bottom-color: #e9a16c;
  color: #fff7ee;
}
.page-home .home-main .rnd-panel-link:hover { color: #ffc698; }
.page-home .home-main .rnd-panel :is(a, button):focus-visible {
  outline-color: #f4c395;
}

/* Quiet editorial links connect the science, corporate and market sections. */
.page-home .home-pathways-link {
  border-radius: 4px;
}
.page-home .home-pathways-link:hover { background: #f3edf8; }
.page-home .home-pathways-link svg { color: #753ba8; }
.page-home .home-pathways-link svg:last-child { color: #9a5c25; }
.page-home .home-stock-ticker {
  min-height: 350px;
  background-color: #594b86;
  background-image: url('./ticker-cell-background.webp');
  border: 1px solid #74678b26;
  border-radius: 10px;
}
@media (min-width: 1200px) {
  .page-home .home-stock-ticker {
    position: relative;
    height: 260px;
    min-height: 260px;
  }
  .page-home .home-stock-ticker iframe {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (max-width: 650px) {
  .page-home .home-stock-ticker { min-height: 404px; }
  .page-home .home-stock-ticker iframe { height: 404px; }
}
@media (min-width: 651px) and (max-width: 1199px) {
  .page-home .home-stock-ticker {
    position: relative;
    height: 350px;
    min-height: 350px;
  }
  .page-home .home-stock-ticker iframe {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
}

.page-home .home-main #news .news-feature {
  border-color: #e5dfea;
  border-radius: 10px;
  background: #fffdfb;
}
.page-home .home-main #news .news-feature:hover { border-color: #c8b4dc; }
.page-home .home-main #news .home-news-meta { color: #672e9d; }
.page-home .home-main #news .home-news-read { color: #672e9d; }
.page-home .home-main #news .home-news-arrow { color: #672e9d; }
.page-home .home-main #news .news-item:hover strong { color: #672e9d; }
.page-home .home-main .home-outline-link {
  border-color: #dcd1e5;
  border-radius: 5px;
  color: #573774;
}
.page-home .home-main .home-outline-link:hover {
  border-color: #a488bd;
  background: #f4eef9;
}

.page-home .home-main #partnering {
  background: #f3f0f7;
  border-color: #e5dfea;
}
.page-home .home-main #partnering .ix-card {
  padding: clamp(22px, 2.5vw, 30px);
  border-color: #e2d9e9;
  border-radius: 9px;
  background: #fffdfb;
}
.page-home .home-main #partnering .ix-ico {
  border-color: #dfd0ed;
  background: #f2eaf8;
  color: #67369a;
}
.page-home .home-main #partnering .ix-card:nth-child(2) .ix-ico {
  border-color: #cfe1dc;
  background: #edf4f1;
  color: #397e83;
}
.page-home .home-main #partnering .ix-card:is(:hover, :focus-visible, .is-active) {
  border-color: #baa1ce;
  background: #fffdfb;
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -20px #50326666;
}
.page-home .home-main #partnering .ix-card .ix-more { color: #67369a; }
.page-home .home-main #partnering .ix-panel {
  border-color: #dfd0ed;
  border-radius: 9px;
  background: #fffdfb;
}
.page-home .home-main #newsletter { background: #fdfbf8; }

.page-home .home-main #close {
  background: #33233f;
}
.page-home .home-main #close .close-photo {
  filter: none;
}
.page-home .home-main #close .close-scrim {
  background: linear-gradient(90deg, rgb(0 0 0 / 68%), rgb(0 0 0 / 54%) 35%, rgb(0 0 0 / 20%) 65%, transparent);
}
.page-home .home-main #close .ed-kicker { color: #ffc08a; }
.page-home .home-main #close .ed-title { color: #fffaf6; }
.page-home .home-main #close .ed-lead { color: #eee5f3; }
.page-home .home-main #close .cta-banner-secondary {
  border-color: #d8c2e680;
  border-radius: 6px;
  color: #fffaf6;
}
.page-home .home-main #close .cta-banner-secondary:hover { background: #ffffff12; }
.page-home .home-main #close :is(a, button):focus-visible { outline-color: #f8bb88; }

@media (max-width: 900px) {
  .page-home .home-hero-title { font-size: clamp(2.7rem, 7vw, 4.3rem); }
  .page-home h2.home-hero-title { font-size: clamp(2.3rem, 5.9vw, 3.6rem); }
}
@media (min-width: 630px) and (max-width: 919px) {
  .page-home .home-main .rnd-film-grid .rnd-panel-copy { background: none; }
  .page-home .home-main .rnd-film-grid .rnd-panel-media::after {
    background: linear-gradient(90deg, transparent 65%, #101222);
  }
}
@media (max-width: 690px) {
  .page-home .home-hero-gradient {
    background: linear-gradient(0deg, var(--hero-bg) 0% 29%, #0c0f1cef 43%, #0c0f1c44 73%, #0c0f1c0a 100%);
  }
  .page-home .home-hero-content {
    min-height: 740px;
    min-height: max(730px, 92svh);
    padding-top: clamp(230px, 65vw, 335px);
  }
  .page-home .home-hero-body { padding-bottom: 26px; }
  .page-home .home-hero-title { font-size: clamp(2.7rem, 10.3vw, 4.1rem); }
  .page-home h2.home-hero-title { font-size: clamp(2.15rem, 8.4vw, 3.5rem); }
  .page-home .home-hero-label { font-size: .66rem; letter-spacing: .13em; }
  .page-home .home-hero-lead { font-size: .96rem; line-height: 1.65; }
  .page-home .home-hero-actions { gap: 14px 22px; margin-top: 24px; }
  .page-home .home-main #close .close-scrim {
    background: linear-gradient(90deg, rgb(0 0 0 / 66%), rgb(0 0 0 / 58%) 65%, rgb(0 0 0 / 50%));
  }
}
@media (max-width: 600px) {
  .page-home .home-stock-ticker {
    background-image: url('./ticker-cell-background.webp');
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .home-main #partnering .ix-card:is(:hover, :focus-visible, .is-active) { transform: none; }
}

/* Preserve full headline text while keeping each news preview to two lines. */
.page-home .home-main #news .news-feature h3,
.page-home .home-main #news .news-item strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.page-home .home-main #news .news-feature h3 {
  width: 100%;
  max-width: none;
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  line-height: 1.35;
}
.page-home .home-main #news .news-feature-copy {
  padding-inline: clamp(16px, 1.4vw, 22px);
}
.page-home .home-main #news .news-item strong {
  font-size: .9375rem;
  line-height: 1.5;
}
.page-home .home-main #news .news-latest-list { justify-content: flex-start; }
.page-home .home-main #news .news-latest-list > .news-item {
  flex: 0 0 auto;
  align-content: start;
}
.page-home .home-main #news .news-item .news-brand-thumbnail {
  object-fit: contain;
  padding: 7px;
  background: #fff;
  border: 1px solid #e5dfea;
}

.page-home .home-main #close .ed-title {
  width: max-content;
  max-width: 100%;
  text-wrap: initial;
}
.page-home .home-main #close .close-title-line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .page-home .home-main #close .ed-title {
    font-size: clamp(1.5rem, 7vw, 2.7rem);
  }
}

/* Homepage company profile: three original photographs with a clear visual hierarchy. */
.page-home .home-main .who-media.who-photo-grid {
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  grid-template-rows:1fr .8fr; gap:16px; height:490px;
  border:0; border-radius:0; overflow:visible; background:none;
}
.page-home .home-main .who-photo-grid figure { margin:0; min-width:0; min-height:0; overflow:hidden; border-radius:9px; }
.page-home .home-main .who-photo-grid .who-photo-main { grid-row:1 / 3; margin-top:34px; }
.page-home .home-main .who-photo-grid .who-photo-team { margin-bottom:34px; }
.page-home .home-main .who-photo-grid img { display:block; width:100%; height:100%; max-height:none; aspect-ratio:auto; object-fit:cover; filter:none; }
.page-home .home-main .who-photo-main img { object-position:48% center; }
@media (min-width:701px) and (max-width:1100px) {
  .page-home .home-main .who-media.who-photo-grid { height:420px; gap:12px; }
}
@media (max-width:700px) {
  .page-home .home-main .who-media.who-photo-grid { width:100%; height:360px; gap:12px; }
  .page-home .home-main .who-photo-grid .who-photo-main { margin-top:24px; }
  .page-home .home-main .who-photo-grid .who-photo-team { margin-bottom:24px; }
}

/* Align the three-photo composition to one clean rectangular grid. */
.page-home .home-main .who-media.who-photo-grid {
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  grid-template-rows:1fr 1fr; gap:16px;
}
.page-home .home-main .who-photo-grid .who-photo-main,
.page-home .home-main .who-photo-grid .who-photo-team { margin:0; }
@media (max-width:1100px) {
  .page-home .home-main .who-media.who-photo-grid { gap:12px; }
}

/* Partnership pathways: editorial cards and modal details. */
.page-home #partnering .news-intro { align-items:flex-end; gap:48px; margin-bottom:38px; }
.page-home #partnering .news-intro-copy { max-width:850px; }
.page-home #partnering .ed-title { max-width:800px; font-size:clamp(32px,3.3vw,48px); }
.page-home #partnering .ed-lead { max-width:790px; font-size:16px; line-height:1.8; }
.bd-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.bd-card { position:relative; display:flex; flex-direction:column; align-items:flex-start; text-align:left; min-height:300px; padding:32px; border:1px solid #dfd4e8; border-radius:12px; background:#fffdfa; cursor:pointer; color:#32253e; overflow:hidden; transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease; }
.bd-index { position:absolute; top:29px; right:28px; font-size:13px; color:#a995b9; letter-spacing:.08em; }
.page-home #partnering .bd-card .ix-ico { display:grid; place-items:center; width:56px; height:56px; border:0; border-radius:50%; background:#f2ebf8; color:#68349c; margin-bottom:28px; }
.bd-card h3 { font-size:25px; font-weight:600; letter-spacing:-.025em; margin:0 0 12px; }
.bd-card>p { font-size:14px; line-height:1.75; color:#76697e; margin:0 0 28px; max-width:290px; }
.bd-card .ix-more { display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:auto; padding-top:18px; border-top:1px solid #ece4f1; color:#633299; font-size:13px; font-weight:600; }
.bd-card .cta-arrow { transition:transform .25s; }
.bd-card:hover { transform:translateY(-5px); border-color:#b794cf; box-shadow:0 16px 30px -20px #49256350; }
.bd-card:hover .cta-arrow { transform:translate(3px,-3px); }
.bd-card:active { transform:translateY(-1px) scale(.99); }
.bd-card:focus-visible { outline:2px solid #7439ab; outline-offset:4px; }
.bd-dialog { margin:auto; width:min(640px,calc(100vw - 36px)); max-height:calc(100dvh - 48px); padding:36px; border:1px solid #e4d9eb; border-radius:16px; background:#fffdfa; color:#32253e; box-shadow:0 24px 90px #0003; }
.bd-dialog::backdrop { background:rgb(0 0 0 / .48); }
.bd-dialog[open] { animation:bd-enter .23s ease-out; }
.bd-dialog header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.bd-dialog header .ed-kicker { margin:0; }
.bd-dialog header button { width:38px; height:38px; border:1px solid #dfd4e8; border-radius:50%; cursor:pointer; }
.bd-dialog header button:hover { border-color:#ee812b; color:#ee812b; }
.bd-dialog h3 { font-size:32px; line-height:1.2; font-weight:600; margin:0 0 22px; }
.bd-dialog-copy { font-size:16px; line-height:1.85; color:#6d6076; margin-bottom:30px; }
@keyframes bd-enter { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
@media(max-width:900px) { .bd-grid { gap:16px; } .bd-card { padding:24px; } .bd-card h3 { font-size:22px; } }
@media(max-width:650px) { .page-home #partnering .news-intro { display:block; } .page-home #partnering .news-intro>a { margin-top:24px; } .bd-grid { grid-template-columns:1fr; } .bd-card { min-height:250px; } .bd-dialog { padding:26px; } }
@media(prefers-reduced-motion:reduce) { .bd-card,.bd-card .cta-arrow { transition:none; } .bd-dialog[open] { animation:none; } }

/* Contained closing banner, aligned to the shared page container. */
.page-home .home-main #close { padding:0 0 clamp(48px,5vw,80px); background:#fdfbf8; min-height:0; overflow:visible; }
.page-home .home-main #close .close-panel { position:relative; isolation:isolate; overflow:hidden; border-radius:12px; background:#27232a; padding:clamp(32px,4.5vw,64px); min-height:380px; display:flex; align-items:center; }
.page-home .home-main #close .close-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-2; filter:none; }
.page-home .home-main #close .close-scrim { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgb(0 0 0 / .7),rgb(0 0 0 / .46) 50%,rgb(0 0 0 / .08)); }
.page-home .home-main #close .close-intro { position:relative; width:100%; display:block; padding:0; }
.page-home .home-main #close .ed-title { font-size:clamp(30px,3.2vw,46px); line-height:1.12; max-width:620px; }
.page-home .home-main #close .ed-lead { font-size:16px; line-height:1.75; max-width:490px; }
.page-home .home-main #close .close-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
@media(max-width:650px) { .page-home .home-main #close .close-panel { min-height:410px; padding:28px 24px; } .page-home .home-main #close .close-scrim { background:rgb(0 0 0 / .57); } .page-home .home-main #close .ed-lead { font-size:14px; } }

/* Tighten the transition from news to the closing banner. */
.page-home .home-main #news { padding-bottom:48px; }
@media(max-width:650px) { .page-home .home-main #news { padding-bottom:32px; } }

/* Keep hero actions inside short mobile viewports without clipping content. */
@media(max-width:690px) {
 .page-home .home-hero-content { min-height:100svh; padding-top:clamp(112px,23svh,195px); padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
 .page-home .home-hero-body { align-self:end; padding-bottom:0; min-width:0; }
 .page-home .home-hero-actions { gap:12px 18px; margin-top:20px; }
 .page-home .home-hero-actions a { max-width:100%; white-space:normal; text-align:center; }
}
@media(max-width:690px) and (max-height:700px) {
 .page-home .home-hero-title { font-size:clamp(32px,9vw,39px); }
 .page-home h2.home-hero-title { font-size:clamp(29px,8vw,35px); }
 .page-home .home-hero-lead { font-size:14px; line-height:1.55; }
}
