/* industry-healthtech.html — page-specific styles */

/* ══════════════════════════════════════════════
       HEALTHTECH PAGE  (prefix: ht-)
    ══════════════════════════════════════════════ */

    /* ── Hero (dark) ── */
    .ht-hero {
      background: var(--dark);
      min-height: 100vh;
      padding: 0;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }
    .ht-hero::before {
      content: '';
      position: absolute; top: 0; right: 0;
      width: 55%; height: 100%;
      background: radial-gradient(ellipse at 85% 35%, rgba(60,234,199,0.09) 0%, transparent 62%);
      pointer-events: none;
    }
    .ht-hero::after {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
      background: linear-gradient(to bottom, transparent, rgba(0,26,21,0.55));
      pointer-events: none;
    }
    .ht-hero > .container {
      padding-top: calc(var(--nav-h, 80px) + 2.5rem);
      padding-bottom: 3rem;
      width: 100%;
      position: relative; z-index: 1;
    }
    .ht-hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 5rem;
      align-items: center;
    }
    .ht-hero .section-label {
      background: rgba(60,234,199,0.1);
      color: var(--teal-bright);
      border-color: rgba(60,234,199,0.2);
    }
    .ht-hero h1 {
      font-family: var(--font-display);
      font-size: 62px;
      font-weight: 800;
      line-height: 1.08;
      color: var(--cream);
      margin: 0.85rem 0 0;
    }
    .ht-hero-sub {
      font-size: 1.1rem;
      line-height: 1.8;
      color: rgba(246,246,242,0.62);
      margin: 1.15rem 0 0;
      max-width: 46ch;
    }
    .ht-hero-sub2 {
      font-size: 0.9rem;
      line-height: 1.75;
      color: rgba(246,246,242,0.38);
      margin: 0.75rem 0 0;
      max-width: 50ch;
    }
    .ht-hero-cta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 2.25rem;
    }
    .ht-hero-cta .btn-ghost {
      color: var(--teal-light);
      border-color: rgba(60,234,199,0.25);
    }

    /* Trust pills */
    .ht-trust {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      margin-top: 2rem;
    }
    .ht-trust-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.3rem 0.85rem;
      border-radius: 999px;
      border: 1px solid rgba(60,234,199,0.18);
      font-size: 0.78rem;
      font-weight: 600;
      font-family: var(--font-mono);
      color: rgba(168,240,227,0.65);
      letter-spacing: 0.03em;
    }
    .ht-trust-pill::before {
      content: '';
      width: 5px; height: 5px;
      border-radius: 50%;
      background: var(--teal-bright);
      opacity: 0.7;
      flex-shrink: 0;
    }

    /* Illustration wrapper */
    .ht-ill-wrap {
      position: relative;
      filter: drop-shadow(0 0 60px rgba(60,234,199,0.1)) drop-shadow(0 32px 64px rgba(0,0,0,0.4));
    }
    .ht-ill-svg { display: block; width: 100%; height: auto; }

    /* ── SVG Animations ── */
    @keyframes htPanelIn {
      from { opacity: 0; transform: translateX(-16px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes htCardIn {
      from { opacity: 0; transform: translateX(16px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes htFadeUp {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes htFadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    /* ECG waveform draws itself via stroke-dashoffset */
    @keyframes htEcgDraw {
      from { stroke-dashoffset: 440; }
      to   { stroke-dashoffset: 0; }
    }
    /* Pulse dot at end of ECG */
    @keyframes htDotIn {
      from { transform: scale(0); opacity: 0; }
      to   { transform: scale(1); opacity: 0.9; }
    }
    @keyframes htDotPulse {
      0%, 100% { transform: scale(1);   opacity: 0.85; }
      50%       { transform: scale(2.2); opacity: 0.15; }
    }
    @keyframes htFlowDash {
      0%   { stroke-dashoffset: 40; opacity: 0; }
      10%  { opacity: 1; }
      90%  { opacity: 1; }
      100% { stroke-dashoffset: 0; opacity: 0; }
    }
    @keyframes htFlowPulse {
      0%, 100% { opacity: 0.15; }
      50%       { opacity: 0.65; }
    }
    @keyframes htGlow {
      0%, 100% { opacity: 0.07; }
      50%       { opacity: 0.18; }
    }
    @keyframes htShieldPulse {
      0%, 88%, 100% { opacity: 0.7; }
      94%            { opacity: 1; }
    }

    .ht-anim-panel  { animation: htPanelIn 0.6s var(--ease-spring) 0.4s both; }
    .ht-anim-c1     { animation: htCardIn 0.45s var(--ease-spring) 1.0s both; }
    .ht-anim-c2     { animation: htCardIn 0.45s var(--ease-spring) 1.25s both; }
    .ht-anim-c3     { animation: htCardIn 0.45s var(--ease-spring) 1.5s both; }

    /* Patient info fades in */
    .ht-patient     { animation: htFadeIn 0.4s ease-out 0.75s both; }

    /* ECG draws itself */
    .ht-ecg {
      stroke-dasharray: 440;
      animation: htEcgDraw 1.8s ease-out 0.9s both;
    }

    /* BPM value + rhythm label appear after ECG */
    .ht-bpm         { animation: htFadeIn 0.4s ease-out 2.55s both; }
    .ht-rhythm      { animation: htFadeUp 0.4s ease-out 2.75s both; }

    /* Pulse dot at end of ECG line */
    .ht-ecg-dot {
      transform-box: fill-box; transform-origin: center;
      animation: htDotIn 0.3s ease-out 2.8s both, htDotPulse 1.8s ease-in-out 3.2s infinite;
    }

    /* Access log entries appear sequentially */
    .ht-log-lbl     { animation: htFadeIn 0.35s ease-out 2.2s both; }
    .ht-log-1       { animation: htFadeUp 0.35s ease-out 2.4s both; }
    .ht-log-2       { animation: htFadeUp 0.35s ease-out 2.55s both; }
    .ht-log-3       { animation: htFadeUp 0.35s ease-out 2.7s both; }

    /* HIPAA badge */
    .ht-hipaa       { animation: htFadeUp 0.5s ease-out 2.9s both; }
    .ht-shield-dot  { animation: htShieldPulse 3s ease-in-out 3.5s infinite; }

    /* Connector flows */
    .ht-flow-1  { animation: htFlowDash 2.5s linear 2.2s infinite; }
    .ht-flow-2  { animation: htFlowDash 2.5s linear 2.7s infinite; }
    .ht-flow-3  { animation: htFlowDash 2.5s linear 3.2s infinite; }
    .ht-pulse-1 { animation: htFlowPulse 2.5s ease-in-out 2.2s infinite; }
    .ht-pulse-2 { animation: htFlowPulse 2.5s ease-in-out 2.7s infinite; }
    .ht-pulse-3 { animation: htFlowPulse 2.5s ease-in-out 3.2s infinite; }
    .ht-glow    { animation: htGlow 3.5s ease-in-out infinite; }

    /* ── Why Healthtech Is Different (cream-soft) ── */
    .ht-why {
      background: var(--cream-soft);
      padding: 6.5rem 0;
    }
    .ht-why-header { max-width: 720px; margin-bottom: 3rem; }
    .ht-why .section-label {
      background: rgba(24,15,6,0.055);
      color: var(--ink-60);
      border-color: rgba(24,15,6,0.1);
    }

    .ht-section-h2 {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 3.5vw, 2.5rem);
      font-weight: 800;
      line-height: 1.15;
      color: var(--ink);
      margin-top: 0.75rem;
    }
    .ht-section-p {
      font-size: 1.05rem;
      line-height: 1.875;
      color: var(--ink-60);
      margin-top: 1rem;
    }

    /* Numbered rows */
    .ht-numbered-row {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 2rem;
      padding: 2rem 0;
      border-bottom: 1px solid rgba(24,15,6,0.07);
      align-items: start;
      transition: background 0.25s, padding-left 0.25s;
      border-radius: 4px;
    }
    .ht-numbered-row:first-of-type { border-top: 1px solid rgba(24,15,6,0.07); }
    .ht-numbered-row:hover { background: rgba(0,133,125,0.03); padding-left: 0.5rem; }
    .ht-row-num {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 800;
      color: rgba(0,133,125,0.2);
      line-height: 1;
      padding-top: 0.1rem;
    }
    .ht-row-content h3 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 0.45rem;
    }
    .ht-row-content p {
      font-size: 1.05rem;
      line-height: 1.78;
      color: var(--ink-60);
      margin: 0;
    }

    /* ── What We Build (dark) ── */
    .ht-build {
      background: var(--dark);
      padding: 6.5rem 0;
      position: relative;
      overflow: hidden;
    }
    .ht-build::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(60,234,199,0.15), transparent);
    }
    .ht-build::after {
      content: '';
      position: absolute; bottom: 0; right: 0;
      width: 40%; height: 60%;
      background: radial-gradient(ellipse at 85% 80%, rgba(60,234,199,0.05), transparent 65%);
      pointer-events: none;
    }
    .ht-build-header { max-width: 680px; margin-bottom: 3.5rem; position: relative; z-index: 1; }
    .ht-build-header .section-label {
      background: rgba(60,234,199,0.1);
      color: var(--teal-bright);
      border-color: rgba(60,234,199,0.2);
    }
    .ht-build-header h2 {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 3.5vw, 2.5rem);
      font-weight: 800;
      line-height: 1.15;
      color: var(--cream);
      margin-top: 0.75rem;
    }
    .ht-build-header p {
      font-size: 1.05rem;
      line-height: 1.875;
      color: rgba(246,246,242,0.58);
      margin-top: 1rem;
    }
    .ht-build-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      position: relative; z-index: 1;
    }
    .ht-build-card {
      background: var(--dark-card);
      border-radius: 14px;
      padding: 2rem;
      border-left: 3px solid var(--teal);
      position: relative;
      overflow: hidden;
      transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    }
    .ht-build-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 44px rgba(0,0,0,0.3);
    }
    .ht-build-card::before {
      content: '';
      position: absolute; top: 0; right: 0;
      width: 90px; height: 90px;
      background: radial-gradient(circle at top right, rgba(60,234,199,0.06), transparent 70%);
      pointer-events: none;
    }
    .ht-build-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px; height: 44px;
      background: rgba(60,234,199,0.1);
      border: 1px solid rgba(60,234,199,0.2);
      border-radius: 10px;
      margin-bottom: 1.1rem;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.06em;
      color: var(--teal-bright);
    }
    .ht-build-card h3 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--cream);
      line-height: 1.35;
      margin-bottom: 0.7rem;
    }
    .ht-build-card p {
      font-size: 0.9rem;
      line-height: 1.75;
      color: rgba(246,246,242,0.52);
      margin: 0;
    }

    /* ── Proof (cream) ── */
    .ht-proof {
      background: var(--cream);
      padding: 6.5rem 0;
    }
    .ht-proof-header { max-width: 640px; margin-bottom: 3rem; }
    .ht-proof .section-label {
      background: rgba(24,15,6,0.055);
      color: var(--ink-60);
      border-color: rgba(24,15,6,0.1);
    }
    .ht-proof-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0;
      border: 1px solid rgba(24,15,6,0.08);
      border-radius: 16px;
      overflow: hidden;
    }
    .ht-proof-stat {
      padding: 3rem;
      background: var(--cream-soft);
      border-right: 1px solid rgba(24,15,6,0.08);
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 2rem;
      align-items: start;
    }
    .ht-proof-stat:last-child { border-right: none; }
    .ht-stat-number {
      font-family: var(--font-display);
      font-size: clamp(2.8rem, 5vw, 4rem);
      font-weight: 800;
      color: var(--ink);
      line-height: 1;
    }
    .ht-stat-number span { color: var(--teal); }
    .ht-stat-label {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: var(--ink-40);
      font-family: var(--font-mono);
      margin-top: 0.65rem;
    }
    .ht-stat-body { align-self: center; }
    .ht-stat-body p {
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--ink-60);
      margin: 0;
    }

    /* ── Healthtech at Scale / Beyond Launch (cream-soft) ── */
    .ht-scale {
      background: var(--cream-soft);
      padding: 6.5rem 0;
    }
    .ht-scale-header { max-width: 680px; margin-bottom: 3rem; }
    .ht-scale .section-label {
      background: rgba(24,15,6,0.055);
      color: var(--ink-60);
      border-color: rgba(24,15,6,0.1);
    }
    .ht-scale-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
    .ht-scale-card {
      background: var(--cream);
      border-radius: 14px;
      padding: 2rem;
      border-left: 3px solid var(--teal);
      position: relative;
      overflow: hidden;
      transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    }
    .ht-scale-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 44px rgba(0,26,21,0.09);
    }
    .ht-scale-card::before {
      content: '';
      position: absolute; top: 0; right: 0;
      width: 90px; height: 90px;
      background: radial-gradient(circle at top right, rgba(0,133,125,0.05), transparent 70%);
      pointer-events: none;
    }
    .ht-scale-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px; height: 36px;
      background: var(--teal);
      border-radius: 9px;
      margin-bottom: 1.1rem;
    }
    .ht-scale-icon svg { width: 18px; height: 18px; color: #fff; }
    .ht-scale-card h3 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 0.7rem;
    }
    .ht-scale-card p {
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--ink-60);
      margin: 0;
    }

    /* ── Close (dark) ── */
    .ht-close {
      background: var(--dark);
      padding: 7rem 0;
      position: relative;
      overflow: hidden;
    }
    .ht-close::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(60,234,199,0.15), transparent);
    }
    .ht-close::after {
      content: '';
      position: absolute; bottom: 0; right: 0;
      width: 45%; height: 70%;
      background: radial-gradient(ellipse at 85% 80%, rgba(60,234,199,0.06), transparent 65%);
      pointer-events: none;
    }
    .ht-close-inner {
      position: relative; z-index: 1;
      max-width: 800px;
    }
    .ht-close-inner .section-label {
      background: rgba(60,234,199,0.1);
      color: var(--teal-bright);
      border-color: rgba(60,234,199,0.2);
      display: inline-block;
    }
    .ht-close-inner h2 {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 3.5vw, 2.5rem);
      font-weight: 800;
      line-height: 1.12;
      color: var(--cream);
      margin-top: 0.75rem;
    }
    .ht-close-inner p {
      font-size: 1.05rem;
      line-height: 1.85;
      color: rgba(246,246,242,0.6);
      margin-top: 1.25rem;
      max-width: 62ch;
    }
    .ht-close-cta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 2.5rem;
    }
    .ht-close-cta .btn-ghost {
      color: var(--teal-light);
      border-color: rgba(60,234,199,0.25);
    }

    /* ── Responsive ── */
    @media (max-width: 900px) {
      .ht-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
      .ht-hero > .container { padding-top: calc(var(--nav-h, 80px) + 1.5rem); }
      .ht-build-grid { grid-template-columns: 1fr; }
      .ht-scale-grid { grid-template-columns: 1fr; }
      .ht-proof-grid { grid-template-columns: 1fr; }
      .ht-proof-stat { grid-template-columns: 1fr; border-right: none; border-bottom: 1px solid rgba(24,15,6,0.08); gap: 1rem; }
      .ht-proof-stat:last-child { border-bottom: none; }
    }
    @media (max-width: 600px) {
      .ht-numbered-row { grid-template-columns: 44px 1fr; gap: 1.25rem; }
      .ht-row-num { font-size: 1.5rem; }
    }
