/* ============================================================
   CRYOWORX.CSS — CryoFlux Technologies
   CryoWorx Innovation Lab page styles
============================================================ */

/* NAV ACTIVE */
.nav-active {
  color: var(--cryo-green) !important;
}
.nav-active::after {
  transform: scaleX(1) !important;
  background: var(--cryo-green) !important;
}

/* ============================================================
   DOCTRINE OPENING
============================================================ */
.cw-opening {
  padding: 80px var(--pad) 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.cw-opening-inner {
  max-width: 860px;
  margin: 0 auto;
}
.cw-opening-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 6vw, 90px);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.0;
  margin: 0 0 16px;
}
.cw-opening-sub {
  font-family: var(--font-hero);
  font-size: clamp(16px, 1.8vw, 22px);
  font-style: italic;
  font-weight: 700;
  color: var(--cryo-blue);
  margin-bottom: 48px;
}
.cw-opening-doctrine p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.cw-opening-doctrine p:last-child { margin-bottom: 0; }

/* ============================================================
   LAB REVEAL
============================================================ */
.cw-lab-reveal {
  width: 100%;
  overflow: hidden;
}
.cw-lab-asset {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SHARED SECTION ELEMENTS
============================================================ */
.cw-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 4px;
  color: var(--cryo-green);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cw-section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.1;
  margin-bottom: 40px;
}

/* ============================================================
   THE MODEL
============================================================ */
.cw-model {
  padding: 80px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.cw-model-inner {
  max-width: 860px;
  margin: 0 auto;
}
.cw-model-body p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.cw-doctrine-pivot {
  font-family: var(--font-hero);
  font-size: clamp(20px, 2.2vw, 28px);
  font-style: italic;
  font-weight: 700;
  color: var(--cryo-blue);
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 32px;
  line-height: 1.4;
}
.cw-doctrine-pivot + .cw-doctrine-pivot {
  border-top: none;
  margin-top: -32px;
}

/* ============================================================
   FIVE FUNCTIONS
============================================================ */
.cw-functions {
  padding: 80px var(--pad);
  background: var(--off-white);
}
.cw-functions-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.cw-functions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.cw-function-card {
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--cryo-blue);
}
.cw-fn-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--cryo-blue);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.cw-fn-title {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cw-fn-body {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}
/* Fifth card spans full width of last row */
.cw-function-card:last-child {
  grid-column: 2 / 3;
}

/* ============================================================
   LICENSE ARCHITECTURE
============================================================ */
.cw-license {
  padding: 80px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.cw-license-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.cw-license-intro {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 56px;
}
.cw-license-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cw-license-card {
  padding: 32px 24px;
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-bottom: 3px solid var(--cryo-green);
  text-align: center;
}
.cw-lc-icon {
  font-size: 24px;
  color: var(--cryo-green);
  margin-bottom: 16px;
  display: block;
}
.cw-lc-title {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cw-lc-body {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   CRYOINTELLIGENCE
============================================================ */
.cw-intel {
  padding: 80px var(--pad);
  background: var(--off-white);
}
.cw-intel-inner {
  max-width: 860px;
  margin: 0 auto;
}
.cw-intel-body p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.cw-intel-pivot {
  font-family: var(--font-hero);
  font-size: clamp(20px, 2.2vw, 28px);
  font-style: italic;
  font-weight: 700;
  color: var(--cryo-blue);
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   THE INVITATION
============================================================ */
.cw-invite {
  padding: 60px var(--pad) 40px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.cw-invite-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}
.cw-pq-rule {
  flex: 1;
  height: 1px;
  background: var(--cryo-blue);
  opacity: 0.3;
}
.cw-invite-text {
  font-family: var(--font-hero);
  font-size: clamp(20px, 2.2vw, 30px);
  font-style: italic;
  font-weight: 700;
  color: var(--cryo-blue);
  text-align: center;
  max-width: 560px;
  line-height: 1.5;
  margin: 0;
  padding: 0 16px;
}
.cw-invite-cta {
  text-align: center;
  padding-bottom: 40px;
}
.cw-contact-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--cryo-blue);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 32px;
  border: none;
  transition: background 0.2s;
}
.cw-contact-btn:hover { background: var(--cryo-green); }

/* ============================================================
   RETURN
============================================================ */
.cw-return {
  padding: 48px var(--pad);
  background: var(--off-white);
  border-top: 1px solid var(--rule);
}
.cw-return-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.cw-return-link {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cryo-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.cw-return-link:hover { color: var(--cryo-green); }

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 768px) {
  .cw-opening { padding: 48px 20px; }
  .cw-model { padding: 48px 20px; }
  .cw-functions { padding: 48px 20px; }
  .cw-functions-grid { grid-template-columns: 1fr; }
  .cw-function-card:last-child { grid-column: 1; }
  .cw-license { padding: 48px 20px; }
  .cw-license-grid { grid-template-columns: repeat(2, 1fr); }
  .cw-intel { padding: 48px 20px; }
  .cw-invite { padding: 40px 20px 24px; }
  .cw-invite-inner { flex-direction: column; gap: 16px; }
  .cw-pq-rule { width: 60px; height: 1px; flex: none; }
  .cw-return { padding: 32px 20px; }
}
