/* ─────────────────────────────────────────────
   STUDIO · the stage · technical specs
   X3D Studio — Technical Control Surface
   ───────────────────────────────────────────── */

/* ── TECH SECTION — alternating image + data ── */

.tech-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--s-8) var(--page-pad);
  border-bottom: 1px solid var(--rule);
}

.tech-section:last-of-type {
  border-bottom: none;
}

.tech-section__head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.tech-section__ref {
  font-family: var(--font-mono);
  font-size: var(--t-spec-sm);
  color: var(--accent);
  letter-spacing: var(--tracking-mono);
  flex-shrink: 0;
}

.tech-section__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.tech-section__label {
  font-family: var(--font-mono);
  font-size: var(--t-spec-sm);
  color: var(--text-mute);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}

/* layout: image + content side by side */
.tech-section__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}

.tech-section--flip .tech-section__body {
  direction: rtl;
}

.tech-section--flip .tech-section__body > * {
  direction: ltr;
}

/* image container */
.tech-section__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.tech-section__media img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tech-section__media-ref {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-3);
  font-family: var(--font-mono-data);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: var(--tracking-mono);
  background: rgba(17, 18, 20, 0.75);
  padding: 2px 8px;
}

/* content side */
.tech-section__content {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.tech-section__title {
  font-family: var(--font-serif);
  font-size: var(--t-display-sm);
  font-weight: 400;
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-display);
  color: var(--text);
}

.tech-section__desc {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  color: var(--text-soft);
  line-height: var(--leading-body);
}

.tech-section__desc p {
  margin: 0 0 var(--s-4);
}

.tech-section__desc p:last-child {
  margin-bottom: 0;
}

/* ── SPEC TABLE — inline tech data ──────────── */

.spec-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--rule);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row__key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-data);
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: center;
}

.spec-row__val {
  font-family: var(--font-mono-data);
  font-size: var(--t-body-sm);
  color: var(--text);
  letter-spacing: var(--tracking-mono);
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
}

.spec-row__val .accent {
  color: var(--accent);
  font-weight: 500;
}

/* ── TEXT-ONLY SECTION (no image) ───────────── */

.tech-section--text-only .tech-section__body {
  grid-template-columns: 1fr;
  max-width: 760px;
}

/* ── WHY IT MATTERS — callout within section ── */

.tech-why {
  padding: var(--s-4) var(--s-5);
  background: var(--surface-data);
  border: 1px solid var(--rule);
  margin-top: var(--s-2);
}

.tech-why__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

.tech-why__text {
  font-family: var(--font-sans);
  font-size: var(--t-body-sm);
  color: var(--text-soft);
  line-height: var(--leading-body);
  margin: 0;
}

/* ── RESPONSIVE ─────────────────────────────── */

@media (max-width: 900px) {
  .tech-section__body {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .tech-section--flip .tech-section__body {
    direction: ltr;
  }

  .spec-row {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 768px) {
  .tech-section {
    padding: var(--s-6) var(--s-4);
  }

  .spec-row {
    grid-template-columns: 1fr;
  }

  .spec-row__key {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: var(--s-2) var(--s-3);
  }

  .spec-row__val {
    padding: var(--s-2) var(--s-3);
  }
}
