/* AMT — Sfera zaufania. All artwork is rendered locally, without external assets. */
.hero:has(.security-sphere) {
  background: radial-gradient(ellipse at 78% 45%, #123351 0, transparent 49%), #0d2744;
}

.hero__grid:has(.security-sphere) {
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.hero__visual.security-sphere {
  --sphere-color: #ffc58b;
  position: relative;
  isolation: isolate;
  max-width: 500px;
  aspect-ratio: auto;
  text-align: left;
}

.security-sphere::before { display: none; }
.security-sphere[data-mode="kri"] { --sphere-color: #8ee4ee; }
.security-sphere[data-mode="uoksc"] { --sphere-color: #bdcaff; }
.security-sphere [hidden] { display: none !important; }

.security-sphere__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.security-sphere__eyebrow {
  margin: 0 0 .6rem;
  color: #8faabe;
  font: 500 .58rem/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: .16em;
}

.security-sphere__header h2 {
  margin: 0;
  color: #f1f6fa;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.security-sphere__header h2 > span { color: #ef913a; }

.security-sphere__pause {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #88a6bd40;
  border-radius: 50%;
  color: #b8cddd;
  background: #15365250;
  cursor: pointer;
}

.security-sphere__pause > span {
  width: 8px;
  height: 10px;
  border-inline: 2px solid currentColor;
}

.security-sphere__pause[aria-pressed="true"] > span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 5px solid transparent;
  border-right: 0;
  border-left: 8px solid currentColor;
}

.security-sphere__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.32;
  margin-top: .4rem;
  touch-action: pan-y;
  /* A quiet, usable fallback if canvas isn't supported. */
  background: radial-gradient(ellipse at 50% 48%, #83dae414 0, transparent 62%);
}

.security-sphere__canvas {
  position: absolute;
  inset: -7% -7% 0;
  width: 114%;
  height: 114%;
  max-width: none;
  pointer-events: none;
}

.security-sphere__core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-2%);
  pointer-events: none;
}

.security-sphere__logo {
  position: relative;
  display: block;
  width: clamp(80px, 8vw, 104px);
  aspect-ratio: 104 / 36;
  overflow: hidden;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 12px #b5eaff80);
}

/* Show the original AMT wordmark from the full logo without redrawing it. */
.security-sphere__logo > img {
  position: absolute;
  left: 0;
  top: -22.222222%;
  display: block;
  width: 300%;
  max-width: none;
  height: auto;
}

.security-sphere__core small {
  margin-top: .8rem;
  font: 500 clamp(.4rem, .6vw, .5rem)/1.75 ui-monospace, Consolas, monospace;
  letter-spacing: .12em;
  text-align: center;
  color: #a4c0d4;
}

.security-sphere__coordinate {
  position: absolute;
  z-index: 1;
  font: .51rem/1 ui-monospace, Consolas, monospace;
  color: #8ba8bd;
  letter-spacing: .1em;
  pointer-events: none;
}

.security-sphere__coordinate--left { top: 28%; left: 0; }
.security-sphere__coordinate--right { bottom: 24%; right: 0; }

.security-sphere__status {
  position: absolute;
  bottom: 1%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #bed0dd;
  font-size: .66rem;
  letter-spacing: .025em;
}

.security-sphere__status > span:first-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9be0d5;
  box-shadow: 0 0 10px #9be0d580;
}

.security-sphere__modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  margin-top: 1.2rem;
  border: 1px solid #98b6d024;
  border-radius: 12px;
  background: #081b2e40;
}

.security-sphere__modes button {
  min-height: 42px;
  padding: .4rem .3rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a3bbce;
  background: transparent;
  font: 650 .82rem/1.1 var(--amt-body-font);
  letter-spacing: .03em;
  cursor: pointer;
  transition: background 250ms, color 250ms, border-color 250ms;
}

.security-sphere__modes button > span {
  margin-right: .3rem;
  font: .6rem/1 ui-monospace, Consolas, monospace;
  opacity: .6;
}

.security-sphere__modes button[aria-pressed="true"] {
  border-color: #bcd2e12b;
  background: #b8d8f013;
  color: var(--sphere-color);
  box-shadow: inset 0 -2px 0 var(--sphere-color);
}

.security-sphere__description {
  min-height: 2.1em;
  margin: 1rem 0 .7rem;
  color: #c0d1df;
  font-size: .79rem;
  line-height: 1.6;
}

.security-sphere__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding-top: .7rem;
  border-top: 1px solid #9ab4c61f;
}

.security-sphere__hint {
  color: #8fa9be;
  font-size: .63rem;
  line-height: 1.6;
}

.security-sphere button:focus-visible { outline: 2px solid #ffbb7a; outline-offset: 4px; }
.security-sphere__modes button:hover { color: #fff; background: #b8d8f018; }
.security-sphere__pause:hover { background: #b8d8f018; }

@media (max-width: 960px) and (min-width: 761px) {
  .hero__grid:has(.security-sphere) { gap: 1.5rem; }
  .security-sphere__coordinate { display: none; }
  .security-sphere__eyebrow { font-size: .5rem; }
}

@media (max-width: 760px) {
  .hero__grid:has(.security-sphere) { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual.security-sphere { max-width: 450px; }
  .security-sphere__core small { font-size: .46rem; }
}

@media print { .hero__visual.security-sphere { display: none; } }
