/* Holograms-first R1 stylesheet: hero sweep, specimens, static Optical Lab & pipeline,
   four-step accessible configurator, and hologram intake fieldset emphasis. */

figure.solution-visual {
  margin: 0;
  position: relative;
}

figure.solution-visual .media-caption {
  display: block;
}

.holo-hero-media .hero-img {
  background: #0b1220;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 699px) {
  .holo-hero-media .hero-img {
    aspect-ratio: 3 / 4;
  }
}

/* Subtle bank-grade holographic colour sweep overlay */
.hero-sheen.holo-sweep {
  background: linear-gradient(
    112deg,
    transparent 30%,
    rgba(103, 232, 249, 0.08) 41%,
    rgba(229, 213, 173, 0.12) 48%,
    rgba(165, 180, 252, 0.09) 55%,
    transparent 66%
  );
  animation: holoSweep 11s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes holoSweep {
  0% {
    transform: translate3d(-18%, 0, 0);
  }
  100% {
    transform: translate3d(18%, 0, 0);
  }
}

/* Specimen showcase on holograms.html */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.specimen-card {
  margin: 0;
  background: linear-gradient(180deg, #fffaf3 0%, #f3ece1 100%);
  border: 1px solid rgba(30, 42, 52, 0.14);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(14, 22, 28, 0.12);
  display: flex;
  flex-direction: column;
}

.dark-panel .specimen-card {
  background: linear-gradient(180deg, #fffaf3 0%, #f1eae0 100%);
  color: #121b25;
}

.specimen-frame {
  position: relative;
  background: #070d15;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 42, 52, 0.14);
}

.specimen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.specimen-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.specimen-caption {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: #e7e2d8;
  border: 1px solid rgba(36, 54, 64, 0.16);
  color: #1e313b !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.35;
  align-self: flex-start;
}

.specimen-body h3 {
  margin: 4px 0 2px;
  font-size: 1.04rem;
  line-height: 1.25;
  font-weight: 850;
  color: #111923 !important;
}

.specimen-body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #354352 !important;
}

/* Static Optical Lab & Brief-to-Supply Pipeline cards */
.optical-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.lab-card {
  background: linear-gradient(180deg, #fffaf2 0%, #f1eae0 100%);
  border: 1px solid rgba(28, 40, 50, 0.16);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 52px rgba(10, 16, 20, 0.15);
  color: #121b25;
}

.lab-card h3 {
  margin: 4px 0 10px;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.25;
  color: #121b25 !important;
}

.lab-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.62;
  color: #354352 !important;
}

.lab-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5ebe9;
  color: #243842 !important;
  border: 1px solid rgba(36, 56, 66, 0.15);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hologram brief policy layout */
.brief-policy-shell {
  background: linear-gradient(180deg, #fffdf9 0%, #f4ede2 100%);
  border: 1px solid rgba(30, 42, 52, 0.16);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 22px 60px rgba(14, 22, 28, 0.10);
}

.brief-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.brief-policy-card {
  background: #ffffff;
  border: 1px solid rgba(30, 42, 52, 0.12);
  border-radius: 20px;
  padding: 24px;
}

.brief-policy-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 850;
  color: #111923;
}

.brief-policy-card p,
.brief-policy-card li {
  font-size: 0.88rem;
  line-height: 1.64;
  color: #334150;
}

.brief-policy-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

.brief-policy-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 42, 52, 0.12);
  font-size: 0.9rem;
  line-height: 1.65;
  color: #283644;
}

.brief-policy-footer a,
.brief-policy-card a {
  color: #203943;
  font-weight: 800;
  text-decoration: underline;
}

/* Four-step accessible configurator */
.holo-config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 26px;
  align-items: start;
}

.holo-config-form {
  background: linear-gradient(180deg, #fffdf9 0%, #f4ede3 100%);
  color: #121b25;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(8, 12, 16, 0.22);
  display: grid;
  gap: 22px;
}

.holo-step-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(30, 42, 52, 0.12);
}

.holo-step-tab {
  appearance: none;
  border: 1px solid rgba(36, 54, 64, 0.18);
  background: #f5f0e7;
  color: #243640;
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.holo-step-tab:hover {
  border-color: #243640;
  background: #ece5d8;
}

.holo-step-tab.is-current {
  background: #203943;
  color: #ffffff;
  border-color: #203943;
}

.holo-step-tab.is-complete:not(.is-current) {
  background: #e4efec;
  border-color: rgba(32, 57, 67, 0.35);
  color: #183038;
}

.holo-step-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(36, 54, 64, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.holo-step-tab.is-current .holo-step-num {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.holo-step {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(30, 42, 52, 0.14);
  border-radius: 20px;
  background: #ffffff;
  min-width: 0;
}

.holo-step[hidden] {
  display: none !important;
}

.holo-step legend {
  padding: 0 8px;
  font-size: 1.02rem;
  font-weight: 850;
  color: #111923;
  line-height: 1.3;
}

.holo-step-hint {
  margin: 4px 0 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #485665 !important;
}

.holo-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.holo-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(30, 42, 52, 0.16);
  background: #fcfaf6;
  color: #14202b;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.holo-option:hover {
  border-color: #34505c;
  background: #f6f1e7;
}

.holo-option input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #203943;
  flex: 0 0 auto;
  box-shadow: none !important;
}

.holo-option:has(input[type="radio"]:checked) {
  border-color: #203943;
  background: #eaf2f0;
  box-shadow: inset 0 0 0 1px #203943;
}

.holo-option:has(input[type="radio"]:focus-visible),
.holo-step-tab:focus-visible,
.holo-nav-btn:focus-visible {
  outline: 3px solid #203943;
  outline-offset: 2px;
}

.holo-option-text {
  display: grid;
  gap: 3px;
}

.holo-option-text strong {
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.3;
  color: #111923 !important;
}

.holo-option-text small {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #465462 !important;
}

.holo-config-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.holo-step-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.holo-nav-btn {
  appearance: none;
  border: 1px solid rgba(32, 57, 67, 0.28);
  background: #ffffff;
  color: #182b33;
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 46px;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.holo-nav-btn:hover:not(:disabled) {
  background: #edf2f0;
  border-color: #203943;
}

.holo-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.holo-config-summary {
  background: linear-gradient(180deg, #fffaf2 0%, #efe7db 100%);
  color: #121b25;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 54px rgba(8, 12, 16, 0.18);
  position: sticky;
  top: 104px;
}

.holo-config-summary h3 {
  margin: 0 0 12px;
  font-size: 1.04rem;
  font-weight: 850;
  color: #111923 !important;
}

.holo-summary-list {
  margin: 0;
  padding: 0;
}

.holo-summary-list dt {
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #516170;
}

.holo-summary-list dd {
  margin: 3px 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(30, 42, 52, 0.10);
  font-size: 0.88rem;
  font-weight: 750;
  color: #121b25;
}

.holo-summary-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #384756 !important;
}

/* Contact form: "For security hologram enquiries" seam fieldset */
.holo-intake-fieldset {
  margin: 4px 0;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(36, 54, 64, 0.18);
  background: #f8f6f1;
  display: grid;
  gap: 14px;
  min-width: 0;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.holo-intake-fieldset legend {
  padding: 0 10px;
  font-size: 0.98rem;
  font-weight: 900;
  color: #182832;
}

.holo-intake-fieldset.is-emphasised {
  border: 2px solid #203943;
  background: linear-gradient(180deg, #fffdf8 0%, #f1f6f5 100%);
  box-shadow: 0 14px 36px rgba(32, 57, 67, 0.14);
}

.holo-fieldset-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.holo-fieldset-note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.58;
  color: #3a4756;
}

.holo-fieldset-note a {
  color: #203943;
  font-weight: 800;
  text-decoration: underline;
}

.holo-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #e6e3dc;
  color: #32444e;
}

.holo-intake-fieldset.is-emphasised .holo-status-badge {
  background: #203943;
  color: #ffffff;
}

.holo-intake-fieldset.is-unmarked [data-holo-mark-field] {
  opacity: 0.72;
}

.holo-role-hint {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #24434e;
}

/* Responsive breakpoints for 1120px, 760px, and 390x844 mobile */
@media (max-width: 1120px) {
  .specimen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .optical-lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .holo-config-layout {
    grid-template-columns: 1fr;
  }
  .holo-config-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .specimen-grid,
  .optical-lab-grid,
  .brief-policy-grid,
  .holo-option-grid {
    grid-template-columns: 1fr;
  }
  .holo-step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .holo-config-form,
  .brief-policy-shell {
    padding: 20px 16px;
  }
  .holo-step {
    padding: 16px 14px;
  }
  .holo-intake-fieldset {
    padding: 16px 12px;
  }
}

/* Reduced motion & save-data: stop holographic sweep and transitions */
@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
  .hero-sheen.holo-sweep {
    animation: none !important;
    transform: none !important;
  }
  .holo-step-tab,
  .holo-option,
  .holo-intake-fieldset {
    transition: none !important;
  }
}

html[data-save-data="true"] .hero-sheen.holo-sweep {
  animation: none !important;
  transform: none !important;
  display: none !important;
}
