/* Technology — redesigned in the x3 home design language (2026-07-20).
   Hero moved onto the Company dark hero family 2026-07-27 (centered
   Atmospheric-09 column, shared with /about/ + /careers/). Elsewhere:
   flowy gradient hovers, count-up stats,
   animated catalog panels, numbered governance rows, product-style FAQ.
   Page: /technology/  (.p-technology)
   Sections: hero · foundation models · data engine ·
   model catalog (tabs) · governance · faq · cta. */

.p-technology {
  background: var(--color-black);
  color: var(--color-white);
}

.p-technology .tech-mono {
  font-family: var(--font-sans);
}
.p-technology .tech-label {
  font-size: var(--fs-kicker);
  letter-spacing: var(--track-wide);
  color: rgba(255, 255, 255, 0.5);
}
.p-technology .tech-label--light {
  color: var(--color-kicker-on-white);
}

.p-technology .tech-models__inner,
.p-technology .tech-data__inner,
.p-technology .tech-catalog__inner,
.p-technology .tech-gov__inner {
  margin-inline: auto;
  width: 100%;
  max-width: var(--container-large);
  padding: var(--space-section-sm) var(--space-inline);
}
@media (min-width: 768px) {
  .p-technology .tech-models__inner,
  .p-technology .tech-data__inner,
    .p-technology .tech-catalog__inner,
  .p-technology .tech-gov__inner {
    padding-block: var(--space-section);
  }
}
@media (min-width: 1024px) {
  .p-technology .tech-models__inner,
.p-technology .tech-data__inner,
.p-technology .tech-catalog__inner,
.p-technology .tech-gov__inner {
    padding-inline: 32px;
  }
}

/* shared section title (display face, same scale as home sections) */
.p-technology .tech-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tighter);
  font-size: 26px;
  line-height: 1.05;
}
@media (min-width: 640px) { .p-technology .tech-title { font-size: 32px; } }
@media (min-width: 768px) { .p-technology .tech-title { font-size: 36px; } }

/* title row with a quiet underlined action (same pattern as home) */
.p-technology .tech-titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.p-technology .tech-showall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  letter-spacing: var(--track-widest);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
.p-technology .tech-showall__label {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  transition: text-decoration-color 0.2s ease;
}
.p-technology .tech-showall:hover { color: var(--color-white); }
.p-technology .tech-showall:hover .tech-showall__label { text-decoration-color: currentColor; }
.p-technology .tech-showall--light { color: var(--color-grey-on-white); }
.p-technology .tech-showall--light:hover { color: var(--color-black); }
/* variant for rows pairing a title with a button (buttons don't baseline-align) */
.p-technology .tech-titlerow--center { align-items: center; }

/* chips (dark + light variants) */
.p-technology .tech-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding-inline: 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.p-technology .tech-chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}
.p-technology .tech-chip--light {
  border-color: var(--color-border-light);
  background: var(--color-white);
  color: var(--color-grey-500);
}
.p-technology .tech-chip--light:hover {
  border-color: color-mix(in oklab, var(--color-blue) 35%, transparent);
  color: var(--color-blue);
}

/* flowy gradient hovers — the home's signature intent, dark + light
   variants (same recipe as the product template's pr-flow). */
.p-technology .tech-flow,
.p-technology .tech-flow-light {
  position: relative;
  overflow: hidden;
}
.p-technology .tech-flow > *,
.p-technology .tech-flow-light > * {
  position: relative;
  z-index: 1;
}
.p-technology .tech-flow::before,
.p-technology .tech-flow-light::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: transform, opacity;
}
.p-technology .tech-flow::before {
  background:
    radial-gradient(42% 60% at 18% 30%, color-mix(in oklab, var(--color-x3-blue-deep) 60%, transparent), transparent 62%),
    radial-gradient(36% 55% at 78% 18%, color-mix(in oklab, var(--color-blue) 45%, transparent), transparent 60%),
    radial-gradient(52% 72% at 62% 85%, color-mix(in oklab, var(--color-x3-indigo) 50%, transparent), transparent 65%),
    radial-gradient(28% 42% at 38% 68%, color-mix(in oklab, var(--color-blue-200) 16%, transparent), transparent 60%);
  filter: blur(28px) saturate(130%);
}
.p-technology .tech-flow-light::before {
  background:
    radial-gradient(42% 60% at 18% 30%, color-mix(in oklab, var(--color-blue) 22%, transparent), transparent 62%),
    radial-gradient(36% 55% at 78% 18%, color-mix(in oklab, var(--color-blue-200) 50%, transparent), transparent 60%),
    radial-gradient(52% 72% at 62% 85%, color-mix(in oklab, var(--color-x3-blue-deep) 16%, transparent), transparent 65%),
    radial-gradient(28% 42% at 38% 68%, color-mix(in oklab, var(--color-blue-100) 60%, transparent), transparent 60%);
  filter: blur(24px) saturate(120%);
}
.p-technology .tech-flow:hover::before,
.p-technology .tech-flow-light:hover::before {
  opacity: 1;
  animation: tech-flow-drift 7s ease-in-out infinite;
}
@keyframes tech-flow-drift {
  0%, 100% { transform: translate(0%, 0%) rotate(0deg) scale(1); }
  33% { transform: translate(6%, -5%) rotate(7deg) scale(1.1); }
  66% { transform: translate(-5%, 4%) rotate(-5deg) scale(1.05); }
}

/* ---------- chapter seams — the home's rounded-curtain motif (x3.css,
   ported to /about/ 2026-07-28, here 2026-07-28): every change of ground
   (bright ⇄ dark) opens on rounded top corners sliding over the closing
   chapter — hero→models, models→data, data→graph, graph→catalog,
   catalog→gov. Tone-adjacent neighbors (gov→faq, faq→cta) stay flush
   with a hairline. ---------- */
.p-technology .tech-models,
.p-technology .tech-data,
.p-technology .tech-catalog,
.p-technology .tech-gov {
  position: relative;
  margin-top: -20px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
@media (min-width: 768px) {
  .p-technology .tech-models,
  .p-technology .tech-data,
    .p-technology .tech-catalog,
  .p-technology .tech-gov {
    margin-top: -32px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
  }
}

/* ---------- hero: the shared Company dark hero — components/
   company-hero.css (.co-hero via CompanyHero.astro; the per-page
   .tech-hero twin retired in the 2026-07-27 unification) ---------- */

/* ---------- foundation models (bright rows) ---------- */
.p-technology .tech-models {
  background: var(--color-background);
  color: var(--color-foreground);
}
.p-technology .tech-models .tech-title { color: var(--color-black); }
.p-technology .tech-models__rows {
  margin-top: 48px;
  border-top: 1px solid var(--color-border-light);
}
.p-technology .tech-model {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--color-border-light);
  cursor: default;
}
@media (min-width: 900px) {
  .p-technology .tech-model {
    grid-template-columns: 90px minmax(0, 1.6fr) auto;
    gap: 32px;
    padding: 32px 28px;
  }
}
.p-technology .tech-model__tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--track-widest);
  color: var(--color-blue);
}
.p-technology .tech-model__name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  font-size: var(--fs-2xl);
  line-height: 1.15;
  color: var(--color-black);
}
@media (min-width: 768px) { .p-technology .tech-model__name { font-size: 24px; } }
.p-technology .tech-model__line {
  margin-top: 6px;
  max-width: 560px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--color-grey-on-white);
}
/* ---------- data engine (dark: count-up stat grid + infra cards) ---------- */
.p-technology .tech-data {
  background:
    radial-gradient(60% 80% at 90% -10%, color-mix(in oklab, var(--color-x3-blue-deep) 14%, transparent), transparent 62%),
    var(--color-black);
}
.p-technology .tech-data__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 768px) { .p-technology .tech-data__grid { grid-template-columns: repeat(3, 1fr); } }
.p-technology .tech-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  /* opaque so the 1px hairline gap doesn't bleed through */
  background: var(--color-black);
}
.p-technology .tech-stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tighter);
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .p-technology .tech-stat__value { font-size: 46px; } }
.p-technology .tech-stat__label {
  font-size: var(--fs-xs);
  letter-spacing: var(--track-widest);
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}
.p-technology .tech-stat:hover .tech-stat__label { color: rgba(255, 255, 255, 0.8); }
/* the engine's three pillars: plain columns leading the section — icon
   tile, title, line; no card chrome (Sofia, 2026-07-26) */
.p-technology .tech-data__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 768px) { .p-technology .tech-data__cols { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.p-technology .tech-infra__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-blue-200);
}
.p-technology .tech-infra__icon .ds-icon { width: 18px; height: 18px; }
.p-technology .tech-infra__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  font-size: var(--fs-xl);
}
.p-technology .tech-infra__line {
  margin-top: 10px;
  max-width: 38ch;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}


/* ---------- model catalog (dark, tabs) ---------- */
.p-technology .tech-catalog {
  /* the home's dark-band recipe: ink with a corner blue aurora */
  background:
    radial-gradient(80% 60% at 88% 0%, color-mix(in oklab, var(--color-x3-blue-deep) 30%, transparent), transparent 62%),
    var(--color-black);
}
.p-technology .tech-catalog__tabs { margin-top: 40px; }
.p-technology .tech-catalog__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-technology .tech-catalog__tab {
  height: 38px;
  padding-inline: 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.p-technology .tech-catalog__tab:hover { color: var(--color-white); border-color: rgba(255, 255, 255, 0.4); }
.p-technology .tech-catalog__tab.is-active {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-black);
}
.p-technology .tech-catalog__panel {
  display: none;
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
.p-technology .tech-catalog__panel.is-active {
  display: grid;
  grid-template-columns: 1fr;
  animation: tech-fade-up 0.55s var(--ease-out-expo);
}
@keyframes tech-fade-up {
  from { opacity: 0; transform: translateY(10px); }
}
@media (min-width: 900px) {
  .p-technology .tech-catalog__panel.is-active {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}
.p-technology .tech-catalog__main { padding: 32px; }
.p-technology .tech-catalog__line {
  max-width: 560px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  font-size: var(--fs-2xl);
  line-height: 1.35;
}
@media (min-width: 768px) { .p-technology .tech-catalog__line { font-size: 24px; } }
.p-technology .tech-catalog__models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.p-technology .tech-catalog__validation {
  padding: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: color-mix(in oklab, var(--color-x3-blue-deep) 12%, var(--color-black));
}
@media (min-width: 900px) {
  .p-technology .tech-catalog__validation {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
}
.p-technology .tech-catalog__vlabel {
  font-size: var(--fs-xs);
  letter-spacing: var(--track-widest);
  color: rgba(255, 255, 255, 0.5);
}
.p-technology .tech-catalog__validation ul {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p-technology .tech-catalog__validation li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-sm);
  line-height: var(--leading-snug);
  color: rgba(255, 255, 255, 0.85);
}
.p-technology .tech-catalog__validation li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-x3-blue-bright);
}

/* ---------- governance (bright, numbered 2-col rows) ---------- */
.p-technology .tech-gov {
  background: var(--color-background);
  color: var(--color-foreground);
}
.p-technology .tech-gov .tech-title { color: var(--color-black); }
.p-technology .tech-gov__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 48px;
  margin-top: 40px;
  border-top: 1px solid var(--color-border-light);
}
@media (min-width: 768px) { .p-technology .tech-gov__grid { grid-template-columns: repeat(2, 1fr); } }
.p-technology .tech-gov__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--color-border-light);
}
@media (min-width: 640px) {
  .p-technology .tech-gov__row {
    grid-template-columns: 36px minmax(0, 0.72fr) minmax(0, 1.28fr);
  }
}
.p-technology .tech-gov__num {
  padding-top: 3px;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-widest);
  color: var(--color-grey-300);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.p-technology .tech-gov__row:hover .tech-gov__num { color: var(--color-blue); }
.p-technology .tech-gov__row-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  font-size: var(--fs-body);
  color: var(--color-black);
}
.p-technology .tech-gov__row-line {
  grid-column: 2 / -1;
  font-size: var(--fs-sm);
  line-height: var(--leading-snug);
  color: var(--color-grey-on-white);
}
@media (min-width: 640px) {
  .p-technology .tech-gov__row-line { grid-column: auto; }
}

/* faq retired 2026-08-03 — the page uses the unified FaqSection (components/faq-section.css) */
/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .p-technology .tech-flow::before,
  .p-technology .tech-flow-light::before {
    animation: none !important;
    transition: none !important;
    opacity: 0 !important;
  }
  .p-technology .tech-catalog__panel.is-active { animation: none; }
}
