/*
Theme Name: CURITY Pharma
Theme URI: https://curitypharma.com/
Author: CURITY Pharma
Description: A premium medical cannabis WordPress theme with a dynamic genetics portfolio.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: curity
*/

:root {
  --ink: #3f414d;
  --muted: #606171;
  --line: #d5e2e1;
  --mist: #eef6f4;
  --paper: #fbfefd;
  --brand-slate: #606171;
  --brand-mint: #d8ece6;
  --brand-teal: #7eafb5;
  --brand-teal-dark: #477d83;
  --brand-ice: #f4fbf9;
  --sky: #d8ece6;
  --radius: 6px;
  --shadow: 0 18px 48px rgba(63, 65, 77, 0.12);
  --content: min(1180px, calc(100vw - 40px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(213, 226, 225, 0.55);
  background: rgba(251, 254, 253, 0.78);
  backdrop-filter: blur(22px) saturate(1.12);
}

.header-inner,
.section-inner,
.footer-inner {
  width: var(--content);
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 152px;
}

.brand img {
  width: min(176px, 42vw);
  height: auto;
}

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

.primary-navigation {
  justify-self: center;
  min-width: 0;
}

.nav-toggle {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(213, 226, 225, 0.9);
  border-radius: 50%;
  padding: 0;
  background: rgba(251, 254, 253, 0.92);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(63, 65, 77, 0.07);
  cursor: pointer;
}

.nav-toggle-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-line:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle-line:nth-child(3) {
  transform: translateY(6px);
}

.nav-is-open .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg);
}

.nav-is-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-is-open .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid rgba(213, 226, 225, 0.72);
  border-radius: 999px;
  background: rgba(251, 254, 253, 0.72);
  box-shadow: 0 10px 28px rgba(63, 65, 77, 0.06);
}

.nav-menu,
.nav-menu ul {
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  position: relative;
  display: block;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-menu .menu-item-has-children > a {
  padding-right: 28px;
}

.nav-menu .menu-item-has-children > a::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.nav-menu a:hover,
.nav-menu .current_page_item:not(.menu-item-type-custom) > a {
  background: var(--brand-mint);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(126, 175, 181, 0.2);
}

.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 40;
  display: grid;
  min-width: 230px;
  gap: 4px;
  margin: 0;
  border: 1px solid rgba(213, 226, 225, 0.86);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(251, 254, 253, 0.96);
  box-shadow: 0 18px 42px rgba(63, 65, 77, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-menu .sub-menu::before {
  position: absolute;
  top: -13px;
  right: 0;
  left: 0;
  height: 13px;
  content: "";
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li.is-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  border-radius: var(--radius);
  padding: 11px 12px;
  line-height: 1.2;
  white-space: normal;
}

.nav-menu .sub-menu .menu-item-has-children > a::after {
  right: 12px;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-menu .sub-menu .sub-menu {
  top: -8px;
  left: calc(100% + 8px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.button.secondary {
  border-color: rgba(96, 97, 113, 0.18);
  background: rgba(251, 254, 253, 0.56);
  color: var(--brand-slate);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  background: var(--brand-slate) url("assets/home-hero-canopy-poster.jpg") center / cover;
  color: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(216, 236, 230, 0.9), rgba(216, 236, 230, 0.7), rgba(216, 236, 230, 0.28));
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.04);
}

.hero::after,
.section.alt::after,
.photo-process::after,
.archive-hero::after,
.page-hero::after,
.tech-feature-grid::after {
  position: absolute;
  z-index: 0;
  width: clamp(360px, 42vw, 760px);
  aspect-ratio: 112.3 / 187.62;
  pointer-events: none;
  content: "";
  background: var(--brand-teal);
  mask: url("assets/curity-mark.svg") center / contain no-repeat;
  -webkit-mask: url("assets/curity-mark.svg") center / contain no-repeat;
}

.hero::after {
  z-index: 1;
  right: clamp(-260px, -12vw, -80px);
  bottom: -260px;
  opacity: 0.14;
}

.hero > .section-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 620px;
  align-items: end;
  padding: 88px 0 74px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--brand-teal-dark);
}

.hero h1,
.hero .lead {
  color: var(--ink);
}

.hero-tagline {
  margin: 10px 0 0;
  color: var(--brand-teal-dark);
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.08;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 800;
  line-height: 0.94;
}

h2 {
  margin: 0;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.18;
}

.type-stack {
  display: grid;
  gap: 0;
  align-content: start;
}

.type-stack span {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}

.type-xl {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
}

.type-lg {
  font-size: clamp(40px, 5.7vw, 72px);
  line-height: 1;
}

.type-md {
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.04;
}

.type-sm {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.12;
}

.photo-type .type-xl,
.photo-type .type-lg,
.photo-type .type-md {
  color: var(--paper);
}

.photo-type .type-xl {
  font-size: clamp(62px, 8.6vw, 116px);
  line-height: 0.94;
}

.contact-panel .type-xl {
  font-size: clamp(48px, 6.2vw, 82px);
}

.section-heading .type-stack {
  max-width: 760px;
}

.section-heading .type-lg {
  font-size: clamp(50px, 6.5vw, 86px);
}

.hero-copy .lead {
  max-width: 680px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-actions-spaced {
  margin-top: 30px;
}

.hero-strip {
  position: relative;
  z-index: 3;
  background: var(--brand-slate);
  color: var(--paper);
}

.hero-strip .section-inner {
  width: var(--content);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 0;
  background: rgba(251, 254, 253, 0.18);
}

.metric {
  min-height: 92px;
  border-right: 0;
  padding: 20px 24px;
  background: var(--brand-slate);
}

.metric:nth-child(2) {
  background: var(--brand-teal-dark);
}

.metric:nth-child(3) {
  background: var(--brand-teal);
}

.metric strong {
  display: block;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 5px;
  color: rgba(251, 254, 253, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 112px 0;
}

.section.alt {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}

.section.alt::after {
  top: -180px;
  right: clamp(-300px, -14vw, -100px);
  opacity: 0.08;
}

.section.sky {
  background: var(--sky);
}

.photo-band {
  position: relative;
  min-height: 620px;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--paper);
}

.photo-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(63, 65, 77, 0.82), rgba(63, 65, 77, 0.4), rgba(63, 65, 77, 0.05));
}

.facility-band {
  background-image: var(--facility-day-image, url("assets/facility-day.jpg"));
}

html[data-facility-period="night"] .facility-band {
  background-image: var(--facility-night-image, url("assets/facility-night.jpg"));
}

html[data-facility-period="day"] .facility-band {
  background-image: var(--facility-day-image, url("assets/facility-day.jpg"));
}

.photo-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 620px;
  align-items: end;
  padding: 84px 0;
}

.photo-band-copy {
  width: min(690px, 100%);
}

.photo-band h2,
.photo-band .lead {
  color: var(--paper);
}

.photo-band .eyebrow {
  color: var(--brand-mint);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 76px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: none;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-process {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(216, 236, 230, 0.9), rgba(216, 236, 230, 0.76)),
    var(--process-bg-image, url("assets/facility-day.jpg")) center / cover fixed;
}

.photo-process::after {
  right: clamp(-300px, -13vw, -110px);
  bottom: -240px;
  opacity: 0.12;
  background: var(--brand-slate);
}

.value-grid,
.genetic-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card,
.genetic-card,
.news-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(63, 65, 77, 0.03);
}

.value-card {
  padding: 28px;
}

.value-card b {
  color: var(--brand-teal-dark);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.value-card p,
.news-card p,
.genetic-card p {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.genetic-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.genetic-card:hover {
  border-color: rgba(126, 175, 181, 0.65);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.genetic-card img,
.genetic-placeholder {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 236, 230, 0.48), transparent 30%),
    linear-gradient(135deg, var(--brand-slate), var(--brand-teal));
}

.genetic-card-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.genetics-carousel {
  position: relative;
}

.genetics-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.genetics-carousel.is-static .genetics-carousel-controls {
  display: none;
}

.genetics-carousel-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 21px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.genetics-carousel-button:hover:not(:disabled),
.genetics-carousel-button:focus-visible {
  border-color: var(--brand-teal);
  background: var(--brand-teal);
  color: var(--paper);
}

.genetics-carousel-button:disabled {
  cursor: default;
  opacity: 0.34;
}

.genetics-carousel-track.genetic-grid {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--brand-teal) var(--line);
  scrollbar-width: thin;
}

.genetics-carousel-track .genetic-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}

.genetics-disclaimer {
  width: 100%;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid rgba(126, 175, 181, 0.34);
  border-radius: var(--radius);
  padding: 5px 8px;
  background: rgba(216, 236, 230, 0.4);
  color: var(--brand-teal-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.genetic-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.genetic-specs > div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.genetic-specs .genetic-indications {
  grid-column: 1 / -1;
}

.genetic-card-specs {
  grid-template-columns: minmax(0, 1.35fr) minmax(118px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.genetic-card-specs .cannabinoid-bar {
  grid-column: 1;
  border-top: 0;
  padding-top: 0;
}

.genetic-card-specs .genetic-terpene-profile {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.genetic-card-specs .genetic-indications {
  grid-column: 1;
}

.genetic-card-specs .genetic-origin {
  grid-column: 2;
  grid-row: 4;
}

.cannabinoid-bar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.cannabinoid-bar-heading dd {
  white-space: nowrap;
}

.cannabinoid-bar-track {
  position: relative;
  overflow: hidden;
  height: 9px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--line);
}

.cannabinoid-bar-track span {
  display: block;
  width: var(--cannabinoid-fill);
  height: 100%;
  border-radius: inherit;
  background: var(--brand-teal);
}

.cannabinoid-bar--cbd .cannabinoid-bar-track span {
  background: #57956f;
}

.genetic-card-specs .genetic-terpene-profile dt {
  white-space: nowrap;
}

.genetic-card-specs .genetic-indications dd,
.genetic-card-specs .genetic-origin dd {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.genetic-specs dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.genetic-specs dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.terpene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.terpene-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid var(--terpene-border, transparent);
  border-radius: var(--radius);
  padding: 4px 8px;
  background: var(--terpene-bg, transparent);
  color: var(--terpene-color, currentColor);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.terpene-tag--yellow {
  border-color: #d7b938;
  background: #fff3ae;
  color: #66520a;
}

.terpene-tag--green {
  border-color: #77ad72;
  background: #dcefd8;
  color: #285d31;
}

.terpene-tag--teal {
  border-color: #6faaa7;
  background: #d5edeb;
  color: #245f5b;
}

.terpene-tag--purple {
  border-color: #a592c5;
  background: #e9e0f4;
  color: #574274;
}

.terpene-tag--orange {
  border-color: #d6985e;
  background: #f8dfc5;
  color: #774218;
}

.terpene-tag--blue {
  border-color: #7c9fc8;
  background: #dce9f6;
  color: #31577c;
}

.terpene-tag--pink {
  border-color: #c78eaa;
  background: #f4dce7;
  color: #743d58;
}

.terpene-tag--lime {
  border-color: #9bae55;
  background: #e8efc5;
  color: #4d5d1d;
}

.terpene-tag--aqua {
  border-color: #6da7b5;
  background: #d8edf1;
  color: #275d68;
}

.terpene-pending {
  color: var(--muted);
  font-weight: 600;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(63, 65, 77, 0.18);
  backdrop-filter: blur(2px);
}

.process-step {
  padding: 32px 24px;
  border-right: 1px solid rgba(63, 65, 77, 0.18);
}

.process-step:last-child {
  border-right: 0;
}

.process-step span {
  color: var(--brand-teal-dark);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: min(100vw - 40px, 1360px);
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.contact-panel > div {
  padding: 42px;
  background: transparent;
}

.contact-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.contact-location-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(126, 175, 181, 0.24);
  border-radius: var(--radius);
  background: rgba(251, 254, 253, 0.72);
}

.contact-location-card > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--brand-teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-location-card p {
  margin-bottom: 14px;
}

.contact-location-card p:last-child {
  margin-bottom: 0;
}

.funding-strip {
  border-top: 1px solid rgba(213, 226, 225, 0.45);
  background: var(--brand-slate);
  color: rgba(251, 254, 253, 0.86);
}

.funding-inner {
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 30px 0;
}

.funding-logo-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.funding-logo-link:hover {
  opacity: 0.86;
}

.funding-logo-link img {
  width: 100%;
  max-width: 460px;
}

.funding-inner p {
  margin: 0;
  font-size: 14px;
}

.newsletter-cta {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background: var(--brand-slate);
  color: var(--paper);
}

.newsletter-cta::after {
  position: absolute;
  top: -190px;
  right: -120px;
  width: 520px;
  height: 520px;
  content: "";
  background: var(--brand-mint);
  mask: url("assets/curity-mark.svg") center / contain no-repeat;
  -webkit-mask: url("assets/curity-mark.svg") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.newsletter-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 76px;
  align-items: center;
}

.newsletter-cta-copy .eyebrow {
  color: var(--brand-mint);
}

.newsletter-cta-copy h2,
.newsletter-cta-copy .lead {
  color: var(--paper);
}

.newsletter-cta-copy .lead {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(251, 254, 253, 0.78);
}

.curity-newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  max-width: none;
}

.curity-newsletter-form .tnp-field {
  margin: 0;
}

.curity-newsletter-form .tnp-field-email {
  grid-column: 1;
  grid-row: 1;
}

.curity-newsletter-form .tnp-field-button {
  grid-column: 2;
  grid-row: 1;
}

.curity-newsletter-form .tnp-field-privacy {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(251, 254, 253, 0.78);
  font-size: 13px;
  line-height: 1.4;
}

.curity-newsletter-form .tnp-field-privacy input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--brand-mint);
}

.curity-newsletter-form .tnp-field-privacy label {
  margin: 0;
}

.curity-newsletter-form .tnp-field-privacy a {
  color: var(--paper);
}

.curity-newsletter-form input.tnp-email {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(251, 254, 253, 0.26);
  border-radius: var(--radius);
  padding: 0 18px;
  background: rgba(251, 254, 253, 0.1);
  color: var(--paper);
  font: inherit;
}

.curity-newsletter-form input.tnp-email::placeholder {
  color: rgba(251, 254, 253, 0.64);
}

.curity-newsletter-form input.tnp-email:focus {
  border-color: var(--brand-mint);
  outline: 2px solid rgba(216, 236, 230, 0.3);
  outline-offset: 2px;
}

.curity-newsletter-form input.tnp-submit {
  width: auto;
  min-width: 132px;
  height: 54px;
  border: 1px solid var(--brand-mint) !important;
  border-radius: var(--radius);
  padding: 0 24px;
  background: var(--brand-mint) !important;
  color: var(--ink) !important;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.curity-newsletter-form input.tnp-submit:hover,
.curity-newsletter-form input.tnp-submit:focus-visible {
  border-color: var(--paper) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
}

.nextgen-logo {
  display: block;
  width: min(100%, 760px);
  margin: 0 0 42px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 42px 0;
}

.footer-inner strong {
  display: block;
  color: var(--paper);
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 253, 248, 0.58);
  font-size: 13px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  color: rgba(255, 253, 248, 0.72);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-inner-simple {
  display: block;
  padding: 24px 0;
}

.footer-inner-simple p {
  margin: 0;
  font-size: 12px;
}

.footer-inner-simple .footer-bottom {
  padding-top: 0;
  border-top: 0;
}

.archive-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 70px;
  background: var(--mist);
}

.page-hero.has-hero-image {
  min-height: 430px;
  background: var(--brand-slate) var(--page-hero-image) center / cover;
  color: var(--paper);
}

.page-hero.has-hero-image::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(63, 65, 77, 0.86), rgba(63, 65, 77, 0.54), rgba(71, 125, 131, 0.22));
}

.page-hero > .section-inner {
  position: relative;
  z-index: 2;
}

.archive-hero::after,
.page-hero::after {
  top: -210px;
  right: clamp(-280px, -12vw, -90px);
  opacity: 0.1;
}

.page-hero.has-hero-image::after {
  z-index: 1;
  opacity: 0.14;
  background: var(--brand-mint);
}

.archive-hero h1,
.page-hero h1 {
  color: var(--ink);
  font-size: clamp(44px, 6.2vw, 82px);
}

.page-hero.has-hero-image h1,
.page-hero.has-hero-image .eyebrow,
.page-hero.has-hero-image .lead {
  color: var(--paper);
}

.page-hero .lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
}

.single-genetic-hero {
  padding: 80px 0;
  background: var(--mist);
}

.tech-hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: var(--brand-slate) var(--tech-hero-image, url("assets/tech-hero-lab.jpg")) center / cover;
  color: var(--paper);
}

.tech-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(63, 65, 77, 0.88), rgba(63, 65, 77, 0.58), rgba(63, 65, 77, 0.22));
}

.tech-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 500px;
  align-items: end;
  padding: 72px 0;
}

.tech-hero-copy {
  width: min(760px, 100%);
}

.tech-hero h1,
.tech-hero .lead {
  color: var(--paper);
}

.tech-hero .eyebrow {
  color: var(--brand-mint);
}

.tech-content {
  padding-top: 54px;
  padding-bottom: 54px;
}

.entry-content.tech-content > * {
  max-width: none;
}

.entry-content.tech-content p,
.entry-content.tech-content .lead,
.entry-content.tech-content h2 {
  max-width: none;
  width: 100%;
}

.tech-image-band {
  position: relative;
  min-height: 360px;
  background-image: var(--tech-band-image, url("assets/php-ide-bg.jpg"));
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--paper);
}

.tech-image-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(63, 65, 77, 0.9), rgba(63, 65, 77, 0.58), rgba(63, 65, 77, 0.1));
}

.tech-image-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 360px;
  align-content: end;
  padding: 48px 0;
}

.tech-image-copy > * {
  width: min(760px, 100%);
}

.tech-image-copy .lead {
  color: rgba(251, 254, 253, 0.84);
}

.tech-feature-grid {
  position: relative;
  overflow: hidden;
  background: var(--brand-ice);
  padding-top: 72px;
  padding-bottom: 72px;
}

.tech-feature-grid::after {
  left: clamp(-300px, -13vw, -110px);
  bottom: -240px;
  opacity: 0.1;
  background: var(--brand-teal-dark);
}

.medical-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(63, 65, 77, 0.92), rgba(63, 65, 77, 0.68), rgba(71, 125, 131, 0.42)),
    var(--medical-hero-image, url("assets/tech-hero-lab.jpg")) center / cover;
  color: var(--paper);
}

.medical-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 54px;
  align-items: end;
  min-height: 560px;
  padding: 92px 0 78px;
}

.medical-hero-copy {
  width: min(820px, 100%);
}

.medical-hero h1,
.medical-hero .lead {
  color: var(--paper);
}

.medical-hero .eyebrow {
  color: var(--brand-mint);
}

.medical-hero-graphic {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: rgba(251, 254, 253, 0.84);
  border: 1px solid rgba(216, 236, 230, 0.45);
  border-radius: var(--radius);
}

.medical-hero-graphic img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.single-genetic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 48px;
  align-items: start;
}

.single-genetic-grid img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
}

.entry-content {
  width: var(--content);
  margin: 0 auto;
  padding: 72px 0;
}

.genetics-archive-intro {
  padding-bottom: 28px;
}

.genetics-archive-intro + .section {
  padding-top: 36px;
}

.entry-content > * {
  max-width: none;
  width: 100%;
}

.entry-content h2 {
  margin-top: 38px;
  margin-bottom: 22px;
  font-size: clamp(28px, 3.4vw, 46px);
}

.entry-content h2:first-of-type {
  margin-top: 28px;
}

.entry-content h2 + p,
.entry-content h2 + .medical-intro-grid,
.entry-content h2 + .molecule-grid,
.entry-content h2 + .medical-pillars,
.entry-content h2 + .medical-sources {
  margin-top: 0;
}

.entry-content p {
  margin-top: 0;
  margin-bottom: 20px;
}

.entry-content p,
.entry-content li {
  color: var(--muted);
  font-size: 18px;
}

.entry-content .lead {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
}

.entry-content.medical-content > * {
  max-width: none;
}

.medical-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: start;
  margin: 34px 0 42px;
}

.medical-note {
  padding: 28px;
  border-left: 5px solid var(--brand-teal-dark);
  background: var(--brand-ice);
}

.medical-note strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: Manrope, Inter, sans-serif;
  font-size: 20px;
}

.info-library-hero {
  background: var(--brand-ice);
}

.info-library-section {
  background: var(--paper);
}

.medical-page-library {
  padding-top: 0;
}

.info-library-heading {
  border-top: 1px solid var(--line);
  padding-top: 46px;
}

.info-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-link-card {
  min-width: 0;
  min-height: 100%;
}

.info-link-card > a {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(213, 226, 225, 0.95);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(63, 65, 77, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.info-link-card > a:hover {
  border-color: rgba(126, 175, 181, 0.72);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.info-link-card img,
.info-link-placeholder {
  width: 100%;
  aspect-ratio: 1 / 0.48;
  object-fit: cover;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 236, 230, 0.72), transparent 28%),
    linear-gradient(135deg, var(--brand-slate), var(--brand-teal-dark));
}

.info-link-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.info-link-body .eyebrow {
  margin: 0;
}

.info-link-body strong {
  color: var(--ink);
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
}

.info-link-body > span:last-child {
  color: var(--muted);
}

.molecule-grid,
.medical-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 44px;
}

.molecule-card {
  display: grid;
  gap: 14px;
  align-items: end;
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(126, 175, 181, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(216, 236, 230, 0.78), rgba(251, 254, 253, 0.9));
}

.molecule-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.molecule-card strong {
  color: var(--ink);
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
}

.molecule-card span {
  color: var(--brand-teal-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.medical-pillars {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.medical-pillars div {
  min-height: 180px;
  padding: 24px;
  background: var(--brand-slate);
  color: var(--paper);
}

.medical-pillars div:nth-child(2) {
  background: var(--brand-teal-dark);
}

.medical-pillars div:nth-child(3) {
  background: var(--brand-teal);
}

.medical-pillars div:nth-child(4) {
  background: #6aa392;
}

.medical-pillars strong,
.medical-pillars span {
  display: block;
}

.medical-pillars strong {
  margin-bottom: 18px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 20px;
}

.medical-pillars span {
  color: rgba(251, 254, 253, 0.82);
}

.medical-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.medical-sources li {
  margin: 0;
}

.medical-sources a {
  display: block;
  min-height: 76px;
  padding: 18px;
  border: 1px solid rgba(126, 175, 181, 0.22);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.medical-sources a:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-dark);
}

.tech-system-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: none;
  margin: 34px 0;
}

.tech-system-logos img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 92px;
  height: 92px;
  align-self: center;
  justify-self: center;
  object-fit: contain;
}

.tech-system-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 24px;
  min-height: 154px;
  align-content: center;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--paper);
  text-align: left;
  box-shadow: 0 14px 34px rgba(63, 65, 77, 0.06);
}

.tech-system-card > br {
  display: none;
}

.tech-system-card strong {
  grid-column: 2;
  align-self: end;
  color: var(--ink);
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  line-height: 1.3;
}

.tech-system-card > span:not(.tech-logo-mask) {
  grid-column: 2;
  align-self: start;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.tech-logo-mask {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 92px;
  height: 92px;
  align-self: center;
  justify-self: center;
  background: var(--brand-teal-dark);
  mask: url("assets/data-matrix-logo.png") center / contain no-repeat;
  -webkit-mask: url("assets/data-matrix-logo.png") center / contain no-repeat;
}

.tech-logo-green {
  background: #4f9f6f;
}

.workable-jobs {
  max-width: 980px;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--paper);
}

.workable-jobs #whr_embed_hook ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workable-jobs #whr_embed_hook li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.workable-jobs #whr_embed_hook a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.entry-content a {
  color: var(--brand-teal-dark);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .genetics-carousel-track .genetic-card {
    flex-basis: calc((100% - 20px) / 2);
  }

  .nav-lock {
    overflow: hidden;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
    padding: 14px 0;
    min-height: 82px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(182px, 62vw);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    width: 100%;
  }

  .nav-is-open .primary-navigation {
    display: block;
  }

  .nav-menu {
    display: grid;
    justify-content: stretch;
    gap: 5px;
    width: 100%;
    max-height: calc(100vh - 118px);
    overflow-y: auto;
    border-radius: 18px;
    padding: 10px;
    background: rgba(251, 254, 253, 0.98);
    box-shadow: 0 22px 54px rgba(63, 65, 77, 0.14);
    scrollbar-width: thin;
  }

  .nav-menu li {
    position: static;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    min-height: 46px;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
  }

  .nav-menu .menu-item-has-children > a {
    padding-right: 42px;
  }

  .nav-menu .menu-item-has-children > a::after {
    right: 18px;
  }

  .nav-menu .sub-menu,
  .nav-menu .sub-menu .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    gap: 4px;
    margin: 4px 0 7px;
    border-color: rgba(213, 226, 225, 0.72);
    border-radius: 14px;
    padding: 7px;
    background: rgba(238, 246, 244, 0.7);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu .sub-menu::before {
    display: none;
  }

  .nav-menu li.is-open > .sub-menu {
    display: grid;
  }

  .nav-menu .sub-menu a {
    min-height: 42px;
    padding: 11px 12px;
    font-size: 13px;
  }

  .nav-menu .sub-menu .sub-menu {
    margin-left: 8px;
    width: calc(100% - 8px);
  }

  .nav-menu .sub-menu .menu-item-has-children > a::after {
    transform: translateY(-65%) rotate(45deg);
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .hero .section-inner {
    min-height: 760px;
  }

  .metrics,
  .split,
  .split.reverse,
  .medical-hero-inner,
  .medical-intro-grid,
  .value-grid,
  .genetic-grid,
  .news-grid,
  .process,
  .contact-panel,
  .funding-inner,
  .tech-content,
  .contact-location-grid,
  .molecule-grid,
  .medical-pillars,
  .medical-sources,
  .info-link-grid,
  .single-genetic-grid,
  .newsletter-cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .tech-system-logos {
    grid-template-columns: 1fr;
  }

  .tech-content::after {
    grid-column: 1;
    min-height: 360px;
  }

  .photo-band,
  .photo-band-inner {
    min-height: 560px;
  }

  .photo-band,
  .photo-process,
  .tech-image-band {
    background-attachment: scroll;
  }

  .hero-strip {
    position: static;
  }

  .hero .section-inner {
    padding-bottom: 72px;
  }

  .section {
    padding: 72px 0;
  }

  .genetics-archive-intro {
    padding-bottom: 20px;
  }

  .genetics-archive-intro + .section {
    padding-top: 28px;
  }

  .section-heading {
    display: grid;
  }

  .process-step {
    border-right: 0;
    border-bottom: 1px solid rgba(63, 65, 77, 0.22);
  }
}

@media (max-width: 560px) {
  :root {
    --content: min(100vw - 28px, 1180px);
  }

  .brand {
    font-size: 14px;
  }

  .metric,
  .contact-panel > div {
    padding: 22px;
  }

  .genetic-specs {
    grid-template-columns: 1fr;
  }

  .genetic-card-specs .genetic-origin {
    grid-column: 1;
    grid-row: auto;
  }

  .genetics-carousel-track .genetic-card {
    flex-basis: min(88%, 360px);
  }

  .newsletter-cta {
    padding: 64px 0;
  }

  .curity-newsletter-form {
    grid-template-columns: 1fr;
  }

  .curity-newsletter-form .tnp-field-email,
  .curity-newsletter-form .tnp-field-button,
  .curity-newsletter-form .tnp-field-privacy {
    grid-column: 1;
    grid-row: auto;
  }

  .curity-newsletter-form input.tnp-submit {
    width: 100%;
  }

  .tech-system-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 7px 16px;
    min-height: 128px;
    padding: 22px 20px;
  }

  .tech-system-logos img,
  .tech-logo-mask {
    width: 64px;
    height: 64px;
  }
}
