/* ============================================================
   OUR TECHNOLOGY PAGE — Sastena
   Loaded AFTER styles.css. All classes are .t-* prefixed to avoid
   collisions with the home (.s-*) and about (.a-*) pages. Reuses
   :root tokens, .s-container / .s-h2 / .is-accent / .s-btn*, and the
   [data-reveal] IntersectionObserver hook from script.js.
   Expand/collapse (accordion) behaviour lives in our-tech.js.
   ============================================================ */

/* ------------------------------------------------------------
   1. HERO  (full-screen aerial, centered)
   ------------------------------------------------------------ */
.t-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--deep);
}
.t-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
}
/* darken top (floating navbar) + bottom (scroll cue) while keeping the
   middle of the image readable behind white text */
.t-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(11, 20, 14, 0.92) 0%,
    rgba(15, 26, 18, 0.40) 28%,
    rgba(15, 26, 18, 0.42) 62%,
    rgba(15, 26, 18, 0.88) 100%);
  pointer-events: none;
}
.t-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(150px, 22vh, 250px);
  padding-bottom: clamp(120px, 16vh, 180px);
}
.t-hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 24px;
  max-width: 17ch;
  text-wrap: balance;
}
.t-hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 58ch;
  margin: 0 auto 38px;
}
.t-hero-actions { display: flex; justify-content: center; }

/* scroll-down cue */
.t-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 44px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
}
.t-scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.t-scroll-mouse span {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: #fff;
  animation: t-scroll-wheel 1.8s ease-in-out infinite;
}
.t-scroll-chev {
  display: block;
  width: 14px;
  height: 8px;
  animation: t-scroll-bounce 1.8s ease-in-out infinite;
}
.t-scroll-chev svg { width: 14px; height: 8px; display: block; }
.t-scroll-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
@keyframes t-scroll-wheel {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(7px); }
}
@keyframes t-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ------------------------------------------------------------
   Shared: plain (non-pill) eyebrow used by the MRV head + banners
   ------------------------------------------------------------ */
.t-eyebrow-plain {
  display: inline-block;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ------------------------------------------------------------
   Shared: Expand / Close button (label stacked over a chevron)
   ------------------------------------------------------------ */
.t-expand-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 150px;
  padding: 13px 30px 11px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
.t-expand-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-2px); }
.t-expand-arrow svg { width: 16px; height: 10px; display: block; transition: transform 0.3s ease; }
.t-expand-btn.is-open .t-expand-arrow svg { transform: rotate(180deg); }

/* ------------------------------------------------------------
   Shared: collapsible panel (JS animates inline height)
   ------------------------------------------------------------ */
.t-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-panel-pad { padding: clamp(40px, 5vw, 70px) 0 clamp(8px, 1vw, 16px); }

/* ------------------------------------------------------------
   2. DIGITAL MRV  (dark, faint grid, expandable 3 cards)
   ------------------------------------------------------------ */
.t-mrv {
  position: relative;
  background: var(--deep-2);
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.t-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 110% at 82% 8%, #000, transparent 72%);
          mask-image: radial-gradient(120% 110% at 82% 8%, #000, transparent 72%);
  pointer-events: none;
}
.t-mrv-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.t-mrv-head .s-h2 {
  margin: 0 auto 16px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}
.t-mrv-sub {
  color: var(--body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  margin: 0 auto 32px;
  max-width: 52ch;
}

.t-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 34px);
  position: relative;
  z-index: 1;
}
.t-card { display: flex; flex-direction: column; }
.t-card-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--deep-3);
  box-shadow: var(--shadow);
}
.t-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.t-card:hover .t-card-media img { transform: scale(1.05); }
.t-card-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin: 22px 0 8px;
}
.t-card-desc { color: var(--body); font-size: 0.98rem; line-height: 1.55; max-width: 38ch; }

/* ------------------------------------------------------------
   3. FEATURE BANNERS  (accordion)
   ------------------------------------------------------------ */
.t-banners {
  background: var(--deep-2);
  padding: clamp(10px, 2vw, 24px) 0 clamp(80px, 10vw, 130px);
}
.t-feature { margin-bottom: clamp(20px, 3vw, 34px); }
.t-feature:last-child { margin-bottom: 0; }

.t-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(280px, 34vw, 370px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.t-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 16, 11, 0.42), rgba(8, 16, 11, 0.6));
}
.t-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 920px;
}
.t-banner-content .t-eyebrow-plain { color: rgba(255, 255, 255, 0.9); letter-spacing: 0.04em; text-transform: none; font-size: clamp(0.95rem, 1.4vw, 1.25rem); font-weight: 500; margin-bottom: 8px; }
.t-banner-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 26px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* Security banner: CSS-built dark circuit background + glowing padlock */
.t-banner.is-security {
  background:
    radial-gradient(120% 150% at 82% 35%, #15271b 0%, #0a120c 62%),
    var(--deep-2);
}
.t-banner-tech {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(93, 204, 93, 0.1) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(93, 204, 93, 0.06) 0 1px, transparent 1px 28px);
  -webkit-mask-image: radial-gradient(120% 120% at 86% 45%, #000, transparent 72%);
          mask-image: radial-gradient(120% 120% at 86% 45%, #000, transparent 72%);
}
.t-banner.is-security .t-banner-overlay {
  background: linear-gradient(90deg, rgba(8, 16, 11, 0.55) 30%, rgba(8, 16, 11, 0) 80%);
}
.t-lock {
  position: absolute;
  right: clamp(24px, 8vw, 130px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--leaf);
}
.t-lock svg {
  width: clamp(72px, 12vw, 150px);
  height: auto;
  filter: drop-shadow(0 0 26px rgba(93, 204, 93, 0.55));
}

/* ------------------------------------------------------------
   Expanded panel content (intro + 2-col / 3-col)
   ------------------------------------------------------------ */
.t-panel-intro {
  text-align: center;
  max-width: 840px;
  margin: 0 auto clamp(34px, 4vw, 54px);
}
.t-panel-kicker {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--body);
  margin-bottom: 12px;
}
.t-panel-kicker b, .t-panel-kicker strong { color: #fff; font-weight: 800; }
.t-panel-h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.t-panel-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.t-panel-media-wrap { min-width: 0; }
.t-panel-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--deep-3);
  box-shadow: var(--shadow);
}
.t-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.t-panel-media.has-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.5));
}
.t-media-overlay-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.t-media-fs {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}
.t-media-fs svg { width: 16px; height: 16px; }
.t-panel-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.t-panel-text > p {
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 18px;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
}
.t-panel-text > p:last-child { margin-bottom: 0; }

/* Capability checklist (inside the SAGE 2.0 panel text) */
.t-check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.t-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
}
.t-check-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(93, 204, 93, 0.14);
  border: 1px solid rgba(93, 204, 93, 0.35);
  color: var(--leaf);
}
.t-check-icon svg { width: 14px; height: 14px; }

/* Capability stat badges (centered pill row after the feature banners) */
.t-stat-badges {
  list-style: none;
  margin: clamp(34px, 5vw, 60px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.t-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(93, 204, 93, 0.1);
  border: 1px solid rgba(93, 204, 93, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
.t-stat-badge:hover {
  background: rgba(93, 204, 93, 0.16);
  border-color: rgba(93, 204, 93, 0.6);
  transform: translateY(-2px);
}
.t-stat-badge-icon {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--leaf);
}
.t-stat-badge-icon svg { width: 15px; height: 15px; }

/* SastenaScreen full-width CTA strip (inside Remote Sensing panel) */
.t-screen-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(44px, 6vw, 80px);
  padding: clamp(54px, 7vw, 96px) 24px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--deep);
  border: 1px solid var(--line);
}
.t-screen-cta > .t-screen-cta-inner { position: relative; z-index: 1; }
.t-screen-cta-kicker {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  max-width: 62ch;
  margin: 0 auto 24px;
}
.t-screen-cta-title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

/* ------------------------------------------------------------
   4. CLOSING CTA  (dark + decorative mesh swirl)
   ------------------------------------------------------------ */
.t-final-cta {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  padding: clamp(90px, 12vw, 150px) 24px;
  text-align: center;
}
.t-final-inner { position: relative; z-index: 1; }
.t-final-icon { display: inline-flex; color: #fff; margin-bottom: 26px; }
.t-final-icon svg { width: 56px; height: 56px; }
.t-final-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}

/* ------------------------------------------------------------
   Decorative line-art meshes (inline SVG, no external asset)
   ------------------------------------------------------------ */
.t-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.t-mesh path,
.t-mesh ellipse {
  fill: none;
  stroke: rgba(93, 204, 93, 0.22);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 920px) {
  .t-cards { grid-template-columns: 1fr; gap: 26px; }
  .t-panel-2col { grid-template-columns: 1fr; gap: 28px; }
  .t-panel-media-wrap { order: -1; }
  .t-lock { opacity: 0.45; right: 14px; }
}

@media (max-width: 620px) {
  .t-banner { min-height: 240px; }
  .t-hero-inner { padding-bottom: clamp(140px, 24vh, 200px); }
}

/* ------------------------------------------------------------
   Reduced motion (height + idle animations off; reveal handled in styles.css)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .t-panel { transition: none !important; }
  .t-scroll-mouse span, .t-scroll-chev { animation: none !important; }
  .t-card:hover .t-card-media img { transform: none !important; }
  .t-expand-btn:hover { transform: none !important; }
}
