.tech-page {
  --tech-accent: #cfb2f4;
  --tech-line: #8e76a9;
}

.tech-hero {
  padding-block: clamp(52px, 6.7vw, 92px);
  background: radial-gradient(ellipse at 77% 27%, #201a2b, transparent 62%);
}

.tech-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5.2vw, 72px);
  align-items: center;
}

.tech-page .eyebrow { margin-bottom: 14px; }

.tech-hero h1 {
  max-width: 15ch;
  font-size: clamp(44px, 5.4vw, 73px);
  line-height: 1.035;
  letter-spacing: -.052em;
}

.tech-hero p {
  max-width: 47ch;
  margin: 21px 0 0;
  font-size: clamp(15px, 1.35vw, 17px);
}

.tech-floor {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #39363e;
  border-radius: 8px;
  background: #292a2e;
}
.tech-floor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px clamp(12px, 1.15vw, 18px);
  background: #222227;
  border-bottom: 1px solid #39383f;
  font-size: 12px;
  color: #c6c5cc;
}
.tech-floor-brand { display: inline-flex; align-items: center; gap: 7px; color: #f1eff5; font-size: 14px; font-weight: 600; }
.tech-floor-brand img { width: 25px; height: auto; }
.tech-floor-scene { position: relative; isolation: isolate; aspect-ratio: 1.9; background: #292a2e; }
.tech-floor-model {
  position: absolute;
  width: 78%;
  aspect-ratio: 790 / 520;
  left: 1%;
  bottom: 2%;
  background: url('/assets/geminarium-cras-feup.jpg') 32.6% 69.8% / 212.658% 201.923% no-repeat;
  mask-image: linear-gradient(to right, transparent, black 5%, black 94%, transparent), linear-gradient(to bottom, transparent, black 7%, black 93%, transparent);
  mask-composite: intersect;
}
.tech-floor-plan {
  position: absolute;
  top: 6%;
  right: 3%;
  width: 18%;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #d1cfd5;
  font-size: 12px;
  line-height: 1.3;
}
.tech-floor-plan img { display: block; width: 100%; height: auto; }
.tech-floor-mode {
  position: absolute;
  left: 3%;
  bottom: 4%;
  font-size: 12px;
  color: #d1cfd5;
}
.tech-section[id] {
  padding-block: clamp(48px, 6.2vw, 84px);
  scroll-margin-top: 0;
}

.tech-section h2 {
  font-size: clamp(31px, 3.9vw, 54px);
  line-height: 1.07;
  letter-spacing: -.043em;
}

.tech-capture-layout, .tech-reference-layout, .tech-review-grid {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  gap: clamp(26px, 5vw, 71px);
  align-items: center;
}

.tech-copy > p {
  margin: 16px 0 0;
  max-width: 51ch;
}

.tech-copy > p strong, .tech-review p strong { color: var(--text); }

.tech-methods { margin: 22px 0 0; }
.tech-methods div { border-top: 1px solid var(--line); padding: 10px 0; }
.tech-methods dt { font-size: 15px; font-weight: 700; }
.tech-methods dd { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

.tech-capture-photo img, .tech-comparison img {
  width: 100%;
  height: auto;
}

.tech-capture-photo figcaption { margin-top: 8px; }

.tech-comparison {
  margin-top: clamp(34px, 6vw, 76px);
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.tech-comparison-heading h3 { font-size: clamp(22px, 2.6vw, 34px); }
.tech-comparison-heading p { margin: 5px 0 17px; font-size: 14px; }

.tech-comparison-grid, .tech-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(17px, 2.6vw, 35px);
}

.tech-comparison-grid figcaption { margin: 14px 0 0; }
.tech-comparison-grid h4 { color: var(--text); font-size: clamp(19px, 2vw, 28px); }
.tech-comparison-grid p { margin: 7px 0 0; font-size: 14px; line-height: 1.55; }

.tech-reference-layout {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
}

.tech-graph { min-width: 0; margin: 0; }
.tech-graph img, .tech-info-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.tech-graph figcaption { margin-top: 0; }

.tech-lineage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  text-align: center;
  list-style: none;
}

.tech-lineage::before {
  position: absolute;
  inset: 4px calc(100% / 6) auto;
  content: "";
  height: 1px;
  background: var(--tech-line);
}

.tech-lineage li {
  position: relative;
  min-width: 0;
  padding: 17px 6px 0;
  color: var(--text);
}

.tech-lineage li::before {
  position: absolute;
  inset: 0 auto auto 50%;
  content: "";
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  background: var(--tech-accent);
  border-radius: 50% !important;
}

.tech-lineage strong { display: block; font-size: 14px; line-height: 1.35; }
.tech-lineage small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.tech-info-grid {
  margin-top: clamp(18px, 3vw, 36px);
  gap: clamp(25px, 4.4vw, 58px);
}

.tech-info-figure {
  min-width: 0;
  margin: 0;
}

.tech-info-figure figcaption { margin-top: 13px; }
.tech-info-figure h3 {
  color: var(--text);
  font-size: clamp(21px, 2.3vw, 31px);
  line-height: 1.19;
}

.tech-checklist {
  padding: 0;
  list-style: none;
  margin: 12px 0 0;
}

.tech-checklist li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.tech-checklist li + li { margin-top: 6px; }
.tech-checklist li::before { content: "✓"; color: var(--tech-accent); }

.tech-review-grid { align-items: start; }
.tech-review p { margin: 0 0 10px; }
.tech-page .cta-actions .button { min-width: auto; }

@media (max-width: 950px) {
  .tech-hero-grid, .tech-reference-layout, .tech-capture-layout, .tech-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tech-hero h1 { max-width: 19ch; }
  .tech-floor { width: 100%; max-width: 720px; }
}

@media (max-width: 625px) {
  .tech-hero h1 { max-width: 15ch; font-size: clamp(39px, 10.3vw, 54px); }
  .tech-comparison-grid, .tech-info-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 500px) {
  .tech-lineage {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 3px;
    text-align: left;
  }
  .tech-lineage::before { display: none; }
  .tech-lineage li { padding: 0 0 14px 20px; }
  .tech-lineage li:last-child { padding-bottom: 0; }
  .tech-lineage li::before { top: 5px; left: 0; transform: none; }
  .tech-lineage li:not(:last-child)::after {
    position: absolute;
    inset: 14px auto -5px 4px;
    content: "";
    width: 1px;
    background: var(--tech-line);
  }
}
