.tech-home, .technology-hero {
  border-bottom: 1px solid #33363d;
  background: radial-gradient(ellipse at 82% 38%, #2b1d23 0, #16171c 38%, #0c0d0f 70%);
  overflow: hidden;
}
.tech-home .hero-in, .technology-hero-in {
  display: grid;
  grid-template-columns: 1fr .94fr;
  align-items: center;
  gap: clamp(22px, 6vw, 92px);
  padding-block: clamp(34px, 5vw, 65px);
}
.tech-home h1, .technology-hero h1 {
  font-size: clamp(2.9rem, 5.2vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.067em;
  text-wrap: initial;
}
.tech-home h1 em, .technology-hero h1 em { font-style: normal; color: #f2383f; }
.technology-hero .lead { margin-top: 20px; }
.tech-hero-scan { margin: 0; min-width: 0; }
.scan-field {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  min-height: 385px;
  padding: 28px 30px;
  border: 1px solid #65646c;
  background: repeating-linear-gradient(0deg, transparent 0 30px, #898b9233 30px 31px),
    repeating-linear-gradient(90deg, #181b21 0 30px, #353740 30px 31px);
}
.scan-field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse, #26222cf0 9%, transparent 75%);
}
.scan-ticks {
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid #464851;
  clip-path: polygon(0 0, 22% 0, 22% 3%, 78% 3%, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% 97%, 22% 97%, 22% 100%, 0 100%);
}
.scan-object { position: relative; width: min(58%, 275px); box-shadow: 0 12px 38px #000b; }
.scan-object img { width: 100%; }
.scan-beam {
  position: absolute;
  height: 2px;
  inset: 9% -7% auto;
  background: #ff303d;
  box-shadow: 0 0 12px #f12b38;
  animation: cgi-scan 3.6s ease-in-out 1 both;
}
@keyframes cgi-scan {
  0% { top: 8%; opacity: .5; }
  80% { top: 93%; opacity: .8; }
  100% { top: 93%; opacity: .2; }
}
.scan-framing {
  position: absolute;
  inset: -5px;
  border: 1px solid #e5e5e8;
  clip-path: polygon(0 0, 17% 0, 17% 1%, 83% 1%, 83% 0, 100% 0, 100% 100%, 83% 100%, 83% 99%, 17% 99%, 17% 100%, 0 100%);
}
.scan-tag { position: absolute; bottom: 13px; left: 14px; background: #121318; border: 1px solid #787b84; padding: 5px 8px; color: white; font-size: .68rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.tech-hero-scan figcaption, .inspection-stage figcaption, .edge-crop figcaption { text-transform: none; }
.tech-strip { border-bottom: 1px solid #3e4148; background: #14161a; }
.tech-strip ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin-block: 0; }
.tech-strip li { display: flex; align-items: center; gap: clamp(7px, 1.6vw, 19px); padding: 12px clamp(6px, 2.2vw, 32px); border-right: 1px solid #3e4148; }
.tech-strip li:first-child { padding-left: 0; }
.tech-strip li:last-child { border-right: 0; }
.tech-strip strong { color: #fcfcfc; font: 750 clamp(1.65rem, 3vw, 2.7rem)/1 "Segoe UI", system-ui, sans-serif; letter-spacing: -.08em; }
.tech-strip span { color: #c9cbd0; font-size: .85rem; font-weight: 660; }
.tech-review-note { margin-block: 10px 15px; color: #e0cace; font-size: .85rem; }
.tech-empty { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: center; }
.inspection-console {
  border: 1px solid #464951;
  border-radius: 5px;
  overflow: hidden;
  background: #111318;
  box-shadow: 0 16px 38px #0004;
}
.console-header, .console-controls, .side-toolbar, .console-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(10px, 2vw, 24px);
}
.console-header { background: #1d2027; border-bottom: 1px solid #40434c; }
.console-header h3 { font-size: 1.45rem; }
.console-header p { font-size: .87rem; margin-top: 3px; }
.console-status { color: #e9e8e8; font-size: .72rem; font-weight: 740; text-transform: uppercase; letter-spacing: .08em; }
.console-status::before { content: ""; display: inline-block; margin-right: 5px; border-radius: 50%; width: 6px; height: 6px; background: #f13b41; vertical-align: .15em; }
.console-controls label { font-size: .76rem; width: min(46%, 390px); }
.console-controls select { display: block; min-height: 40px; font-size: .87rem; margin-top: 4px; }
.mode-buttons, .side-toolbar [role="group"] { display: flex; gap: 4px; }
.mode-buttons button, .side-toolbar button, .corner-choice {
  border: 1px solid #555863;
  background: #1c1f25;
  color: #f3f3f4;
  cursor: pointer;
  border-radius: 3px;
}
.mode-buttons button, .side-toolbar button { min-height: 41px; padding: 5px 12px; font-size: .86rem; font-weight: 700; }
.mode-buttons button:hover, .side-toolbar button:hover, .corner-choice:hover { border-color: #a1a3ad; }
.mode-buttons button[aria-pressed="true"], .side-toolbar button[aria-pressed="true"] { background: #b61423; border-color: #e03a45; }
.side-toolbar { border-block: 1px solid #393b43; }
.side-toolbar p { font-size: .87rem; }
.side-toolbar button { min-height: 37px; }
.inspection-side { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.inspection-stage { background: #171b22; border-right: 1px solid #40434c; padding: 14px; text-align: center; }
.inspection-figure { margin: 0; }
.scan-frame {
  position: relative;
  width: min(100%, 330px);
  margin-inline: auto;
  outline: 1px solid #646974;
}
.inspection-compact .scan-frame { width: min(100%, 255px); }
.scan-frame img { width: 100%; height: auto; }
.inspection-stage > a { display: inline-block; margin-top: 6px; }
.reference-layer, .perimeter-outline, .corner-outline { position: absolute; inset: 0; pointer-events: none; }
.reference-layer { display: none; }
[data-current-mode="centering"] .reference-layer { display: block; }
.reference-line { position: absolute; opacity: .88; border-color: #ff505b; filter: drop-shadow(0 1px 1px black); }
.reference-line.axis-lr { top: 0; bottom: 0; border-left: 2px solid #ff4e56; }
.reference-line.axis-tb { left: 0; right: 0; border-top: 2px solid #ff4e56; }
.reference-line.ref-estimated { border-style: dashed; }
.perimeter-outline, .corner-outline { display: none; }
[data-current-mode="edges"] .perimeter-outline { display: block; inset: 2%; border: 2px dashed #ff4650; }
[data-current-mode="corners"] .corner-outline { display: block; width: 25%; height: 25%; border: 2px solid #ff4650; box-shadow: 0 0 0 1px #35161a; inset: auto; }
[data-highlight="top_left"] .corner-outline { top: 2%; left: 2%; }
[data-highlight="top_right"] .corner-outline { top: 2%; right: 2%; }
[data-highlight="bottom_left"] .corner-outline { bottom: 2%; left: 2%; }
[data-highlight="bottom_right"] .corner-outline { bottom: 2%; right: 2%; }
.inspection-detail { min-width: 0; padding: clamp(13px, 2.3vw, 27px); }
.inspection-detail p { margin-block: 6px 10px; }
.ratio-stack { display: grid; gap: 7px; margin-top: 11px; }
.ratio-stack article { display: grid; grid-template-columns: 1fr auto; gap: 2px 9px; align-items: baseline; padding: 8px 10px; border: 1px solid #3b404a; background: #191c23; }
.ratio-stack article > span:first-child { color: #d0d2d7; font-size: .83rem; }
.ratio-stack strong { letter-spacing: -.02em; font-size: clamp(1.05rem, 1.8vw, 1.38rem); }
.ratio-stack small { color: #c2c4cc; font-size: .72rem; }
.method { color: #f8f8f8; font-size: .73rem; font-weight: 680; }
.method-estimated { color: #ffd0a7; }
.method-unavailable { color: #c7c8cc; }
.inspection-note { font-size: .81rem; }
.corner-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.corner-choice { min-width: 0; overflow: hidden; padding: 0; font-size: .76rem; text-align: left; }
.corner-choice img { width: 100%; max-height: 126px; aspect-ratio: 4 / 3; object-fit: contain; background: #2a2e36; }
.corner-choice span { display: block; padding: 3px 7px; }
.corner-choice[aria-pressed="true"] { outline: 2px solid #f04851; outline-offset: -2px; }
.corner-choice:focus-visible { outline: 3px solid #ffc7ac; outline-offset: 2px; }
.corner-observation h4 { font-size: 1rem; margin: 12px 0 5px; text-transform: capitalize; }
.edge-crop { margin-top: 10px; max-width: 200px; }
.edge-crop img { border: 1px solid #767b85; }
.surface-guide { max-width: 290px; margin-top: 12px; }
.surface-guide figcaption { text-transform: none; }
.evidence-note { margin: 12px 0 10px; background: #1c2028; border-left: 2px solid #df2936; padding: 10px 12px; }
.evidence-note p { margin-top: 5px; }
.console-footer { border-top: 1px solid #40434c; font-size: .74rem; color: #c9cbd3; background: #1a1d23; }
.tech-analysis, .tech-calculation, .tech-finish, .tech-close { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 5vw, 62px); }
.tech-analysis p, .tech-calculation p, .tech-finish p { margin: 8px 0 12px; }
.tech-analysis-grid article { padding: 13px 0; border-top: 1px solid #a3a6ad; }
.tech-analysis-grid article p { margin-bottom: 0; }
.tech-subgrades details { border-block-start: 1px solid #515560; padding: 10px 0; }
.tech-subgrades summary strong { float: right; margin-right: 4px; }
.tech-cases { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.tech-case { background: #15181e; border: 1px solid #393e47; min-width: 0; }
.case-photo { padding: 10px; background: #21252d; border-bottom: 1px solid #393e47; }
.case-photo img { width: 100%; max-height: 205px; object-fit: contain; }
.case-photo p { text-align: center; font-size: .76rem; padding-top: 6px; }
.case-copy { padding: clamp(12px,2vw,24px); }
.case-copy h3 { font-size: clamp(1.55rem,2.4vw,2.25rem); }
.case-copy p { margin-block: 6px; }
.case-result { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #20232c; border-left: 2px solid #dc2432; padding: 8px 9px; }
.case-result span { display: block; color: #d3d5dc; font-size: .75rem; }
.case-result strong { font-size: 1.28rem; }
.tech-close { align-items: center; }
.tech-close .actions { margin: 0; }
.report-subgrades { display: flex; gap: 6px 12px; align-items: baseline; flex-wrap: wrap; justify-content: space-between; }
.report-subgrades .text-link { font-size: .78rem; }
.score-meter-grid meter { display: block; width: 100%; height: 10px; accent-color: #e52738; }
.score-meter-grid meter::-webkit-meter-optimum-value { background: #f04551; }
.score-meter-grid meter::-webkit-meter-bar { background: #363942; border: 0; }
.score-meter-grid meter::-moz-meter-bar { background: #f04551; }
.standards-evidence { margin-block: 12px; }
.sr-only { width: 1px; height: 1px; position: absolute; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 820px) {
  .console-controls { flex-wrap: wrap; }
  .console-controls label { width: 100%; }
}
@media (max-width: 750px) {
  .tech-home .hero-in, .technology-hero-in, .tech-empty, .tech-analysis, .tech-calculation,
  .tech-finish, .tech-close, .tech-cases, .inspection-side { grid-template-columns: minmax(0, 1fr); }
  .scan-field { min-height: 260px; padding: 20px 22px; }
  .scan-object { width: min(51%, 235px); }
  .tech-strip ul { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tech-strip li { border-bottom: 1px solid #3e4148; padding: 8px; }
  .tech-strip li:first-child { padding-left: 8px; }
  .tech-strip li:nth-child(2) { border-right: 0; }
  .console-status { text-align: end; }
  .mode-buttons { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); width: 100%; }
  .mode-buttons button { padding: 5px 2px; font-size: .76rem; min-height: 44px; }
  .inspection-stage { border-right: 0; border-bottom: 1px solid #40434c; }
  .scan-frame { width: min(100%, 228px); }
  .side-toolbar { flex-wrap: wrap; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-beam { animation: none; opacity: 0; }
}
