/* ============================================
   Plastilose Design System — Custom CSS
   Scoped for WordPress / Elementor
   ============================================ */

/* === FORCE CONTENT VISIBLE === */
.reveal,
.reveal.revealed,
.reveal-stagger,
.reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --color-navy:       #2C3560;
  --color-navy-800:   #1E2545;
  --color-navy-600:   #4A5280;
  --color-cream:      #FBFBEB;
  --color-beige:      #e3dbcb;
  --color-beige-dark: #C4B59B;
  --color-terra:      #DA8473;
  --color-terra-dark: #823E31;
  --color-green:      #4A7C59;
  --color-blue:       #3377DE;
  --color-border:     #D1CCC3;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-card:  0.75rem;
  --radius-btn:   0.5rem;
}

/* --- Base Resets (scoped) --- */
.plastilose-page {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-navy);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Focus Visible (Accessibility) --- */
.plastilose-page *:focus-visible {
  outline: 2px solid var(--color-terra);
  outline-offset: 2px;
}

/* --- Headings --- */
.plastilose-page h1,
.plastilose-page h2,
.plastilose-page h3,
.plastilose-page h4,
.plastilose-page h5,
.plastilose-page h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* --- Selection --- */
.plastilose-page ::selection {
  background-color: var(--color-terra);
  color: white;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 500ms; }

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Stat Accordion (Section 2 — trillion claim) --- */
.stat-accordion {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.stat-accordion__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  border-bottom: 1px dashed var(--color-beige-dark);
  cursor: pointer;
  padding: 0 0 0.125rem 0;
  transition: border-color 0.2s ease;
}

.stat-accordion__trigger:hover {
  border-bottom-color: var(--color-terra);
}

.stat-accordion__trigger:hover .stat-accordion__chevron {
  color: var(--color-terra);
}

.stat-accordion__chevron {
  flex-shrink: 0;
  color: var(--color-beige-dark);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.stat-accordion__trigger[aria-expanded="true"] .stat-accordion__chevron {
  transform: rotate(180deg);
}

.stat-accordion__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.stat-accordion__panel.open {
  max-height: 400px;
  opacity: 1;
}

.stat-accordion__content {
  max-width: 36rem;
  margin: 1rem auto 0;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-align: left;
}

/* --- Card Accordions (Section 2 — problem cards) --- */
.card-accordion {
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.card-accordion__trigger {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.card-accordion__trigger:hover {
  background: rgba(227, 219, 203, 0.2);
}

.card-accordion__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  color: var(--color-beige-dark);
  transition: color 0.2s ease;
}

.card-accordion__trigger:hover .card-accordion__hint {
  color: var(--color-terra);
}

.card-accordion .card-accordion__chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.card-accordion__trigger[aria-expanded="true"] .card-accordion__chevron {
  transform: rotate(180deg);
}

.card-accordion__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.card-accordion__panel.open {
  max-height: 600px;
  opacity: 1;
}

.card-accordion__content {
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 0;
}

.card-accordion.active {
  border-color: var(--color-terra);
}

/* --- Glass Card (Technology section) --- */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-card);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* --- Tech Accordions (Section 5 — glass cards on navy) --- */
.tech-accordion {
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.tech-accordion__trigger {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 2rem 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

@media (max-width: 1023px) {
  .tech-accordion__trigger {
    padding: 2rem;
  }
}

.tech-accordion__trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tech-accordion__chevron {
  align-self: center;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.tech-accordion__trigger:hover .tech-accordion__chevron {
  color: var(--color-terra);
}

.tech-accordion__trigger[aria-expanded="true"] .tech-accordion__chevron {
  transform: rotate(180deg);
}

.tech-accordion__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.tech-accordion__panel.open {
  max-height: 600px;
  opacity: 1;
}

.tech-accordion__content {
  padding: 0 2.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

@media (max-width: 1023px) {
  .tech-accordion__content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.tech-accordion.active {
  border-color: var(--color-terra);
}

/* --- Key Fact cards (Section 3) --- */
.key-fact-card {
  background: var(--color-cream);
  border: 1px solid var(--color-beige);
  border-radius: var(--radius-card);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.key-fact-card:hover {
  background: var(--color-beige);
  border-color: var(--color-beige-dark);
}

/* --- Key Fact Accordions (Section 3 — navy bg) --- */
.keyfact-accordion {
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.keyfact-accordion__trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.keyfact-accordion__trigger:hover {
  background: rgba(218, 132, 115, 0.06);
}

.keyfact-accordion__chevron {
  margin-top: 0.5rem;
  color: var(--color-beige-dark);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.keyfact-accordion__trigger:hover .keyfact-accordion__chevron {
  color: var(--color-terra);
}

.keyfact-accordion__trigger[aria-expanded="true"] .keyfact-accordion__chevron {
  transform: rotate(180deg);
}

.keyfact-accordion__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.keyfact-accordion__panel.open {
  max-height: 500px;
  opacity: 1;
}

.keyfact-accordion__content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  text-align: left;
}

.keyfact-accordion.active {
  border-color: var(--color-terra);
}

/* --- Gallery Pan (between Healthcare & Technology) --- */
.gallery-pan {
  position: relative;
  height: 50vh;
  min-height: 320px;
  max-height: 560px;
  background: var(--color-navy);
}

.gallery-pan__track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gallery-pan__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.15);
  will-change: transform;
  transition: transform 0.05s linear;
}

/* Fade edges into surrounding sections */
.gallery-pan::before,
.gallery-pan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 5rem;
  z-index: 1;
  pointer-events: none;
}

.gallery-pan::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-cream), transparent);
}

.gallery-pan::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-navy), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-pan__image {
    transform: none;
  }
}

/* --- Logo Slider (infinite marquee) --- */
.logo-slider {
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-slider__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: logo-scroll 30s linear infinite;
}

.logo-slider__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 48px;
}

.logo-slider__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-slider__item img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-slider__track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: auto;
  }
}

/* --- Timeline (Roadmap section) --- */
.timeline {
  position: relative;
}

/* Horizontal line (desktop) */
.timeline-line {
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
}

.timeline-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-beige-dark);
  border: 2px solid var(--color-border);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-dot.active {
  width: 1rem;
  height: 1rem;
  background: var(--color-terra);
  border-color: var(--color-terra);
  box-shadow: 0 0 0 4px rgba(218, 132, 115, 0.25);
}

/* Mobile: vertical timeline */
@media (max-width: 767px) {
  .timeline-line {
    top: 0;
    bottom: 0;
    left: 1.25rem;
    right: auto;
    width: 2px;
    height: auto;
  }
}

/* --- Process Flow Arrow --- */
.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-beige-dark);
}

/* --- Team Photo Hover --- */
.team-photo {
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.team-photo:hover,
.team-member:hover .team-photo {
  filter: grayscale(0%);
}

/* --- Team Specialties & Accordion --- */
.team-specialties {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-specialties li {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-navy-600, #4A5280);
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.team-specialties li:last-child {
  border-bottom: none;
}

.team-accordion__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-beige-dark);
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.team-accordion__trigger:hover {
  color: var(--color-terra);
}

.team-accordion__chevron {
  transition: transform 0.3s ease;
}

.team-accordion__trigger[aria-expanded="true"] .team-accordion__chevron {
  transform: rotate(180deg);
}

.team-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.team-accordion__panel.open {
  max-height: 300px;
}

.team-accordion__content {
  background: var(--color-cream);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  text-align: left;
}

.team-bio-list {
  margin: 0;
}

.team-bio-list dt {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-terra);
  margin-bottom: 0.125rem;
}

.team-bio-list dt:not(:first-of-type) {
  margin-top: 0.625rem;
}

.team-bio-list dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-navy-600, #4A5280);
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-beige-dark);
  transition: color 0.2s ease;
}

.team-linkedin:hover {
  color: #0A66C2;
}

/* --- Contact Form --- */
.contact-form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.375rem;
}

.contact-form__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--color-terra);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form select option {
  background: var(--color-navy-800, #1E2545);
  color: #fff;
}

/* Light-background overrides (contact page on cream) */
.bg-cream .contact-form__label {
  color: var(--color-navy, #2C3560);
  opacity: 0.5;
}
.bg-cream .contact-form__input {
  background-color: #fff;
  border-color: var(--color-border, #D1CCC3);
  color: var(--color-navy, #2C3560);
}
.bg-cream .contact-form__input::placeholder {
  color: rgba(44, 53, 96, 0.3);
}
.bg-cream .contact-form__input:focus {
  background-color: #fff;
  border-color: var(--color-terra);
}
.bg-cream .contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(44,53,96,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.bg-cream .contact-form select option {
  background: #fff;
  color: var(--color-navy, #2C3560);
}

/* --- Blockquote --- */
.plastilose-page blockquote {
  border-left: 3px solid var(--color-terra);
  padding-left: 1.5rem;
  font-style: italic;
}

/* --- Gradient Overlays --- */
.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(44, 53, 96, 0.95) 0%,
    rgba(44, 53, 96, 0.8) 50%,
    rgba(44, 53, 96, 0.7) 100%
  );
}

.hero-fade {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-cream) 100%
  );
}

/* --- Smooth Section Transitions --- */
.section-transition-dark {
  background: linear-gradient(to bottom, var(--color-cream), var(--color-navy));
}

/* --- Button Hover Transitions --- */
.btn-primary {
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

/* --- Placeholder Image Blocks --- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-beige);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder span {
  color: var(--color-beige-dark);
  font-family: var(--font-heading);
  font-size: 0.875rem;
}

/* --- Checklist Style --- */
.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-green);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
}

/* --- Starry background for solution section --- */
.plastilose-page .pl-solution {
  --star-scroll: 0px;
  overflow: hidden;
}

/* Layer 1 — small, slow drift */
.plastilose-page .pl-solution::before {
  content: '';
  position: absolute;
  inset: -10% -30% -10% -30%;
  background-image: url('https://plastilose.nl/wp-content/uploads/2026/02/Sterren_Patroon.png');
  background-repeat: repeat;
  background-size: 18% auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  animation: starfield-drift-slow 360s linear infinite;
  transform: translateX(calc(var(--star-scroll) * 0.6));
}

/* Layers 2 & 3 — medium + large, faster drift */
.plastilose-page .pl-solution::after {
  content: '';
  position: absolute;
  inset: -10% -30% -10% -30%;
  background-image:
    url('https://plastilose.nl/wp-content/uploads/2026/02/Sterren_Patroon.png'),
    url('https://plastilose.nl/wp-content/uploads/2026/02/Sterren_Patroon.png');
  background-repeat: repeat;
  background-size: 26% auto, 12% auto;
  background-position: 40% 25%, 15% 60%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  animation: starfield-drift-fast 200s linear infinite;
  transform: translateX(var(--star-scroll));
}

@keyframes starfield-drift-slow {
  from { background-position: 0 0; }
  to   { background-position: 100% 0; }
}

@keyframes starfield-drift-fast {
  from { background-position: 40% 25%, 15% 60%; }
  to   { background-position: 140% 25%, 115% 60%; }
}

.plastilose-page .pl-solution > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   Circular Process Diagram
   ============================================ */

/* --- Container --- */
.cycle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cycle-container {
  position: relative;
  width: 500px;
  height: 500px;
  max-width: 90vw;
  max-height: 90vw;
  margin: 0 auto;
  overflow: visible;
}

/* --- SVG Ring --- */
.cycle-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cycle-ring__circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
  stroke-dasharray: 18 10;
  stroke-dashoffset: 0;
  animation: cycle-flow 12s linear infinite;
}

@keyframes cycle-flow {
  to {
    stroke-dashoffset: -280;
  }
}

/* --- Center Logo --- */
.cycle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 144px;
  height: 144px;
  z-index: 1;
}

.cycle-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Step Nodes --- */
.cycle-step {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  outline: none;
  overflow: visible;
  width: 5.5rem;
  height: 5.5rem;
  margin-left: -2.75rem;
  margin-top: -2.75rem;
}

.cycle-step__icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--color-cream);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cycle-step__label {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

/* Hover */
.cycle-step:hover .cycle-step__icon {
  border-color: var(--color-terra);
  background: var(--color-beige);
}

/* Active */
.cycle-step.active .cycle-step__icon {
  border-color: var(--color-terra);
  box-shadow: 0 0 0 4px rgba(218, 132, 115, 0.25);
  background: var(--color-beige);
}

.cycle-step.active .cycle-step__label {
  color: var(--color-terra);
}

/* --- Stakeholder tag (below label) --- */
.cycle-step__stakeholder {
  position: absolute;
  bottom: -2.75rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* --- Plastilose-owned steps highlight --- */
.cycle-step--ours .cycle-step__icon {
  background: var(--color-cream);
  border-color: var(--color-terra);
  box-shadow: 0 0 0 3px rgba(218, 132, 115, 0.2);
}

.cycle-step--ours .cycle-step__stakeholder {
  color: var(--color-terra);
  font-weight: 600;
}

/* --- Non-Plastilose steps — transparent background --- */
.cycle-step--other .cycle-step__icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.cycle-step--other:hover .cycle-step__icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.cycle-step--other.active .cycle-step__icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-terra);
  box-shadow: 0 0 0 3px rgba(218, 132, 115, 0.2);
}


/* --- Orbiting step positions --- */
.cycle-step[data-step="0"] { animation: orbit-0 80s linear infinite; }
.cycle-step[data-step="1"] { animation: orbit-1 80s linear infinite; }
.cycle-step[data-step="2"] { animation: orbit-2 80s linear infinite; }
.cycle-step[data-step="3"] { animation: orbit-3 80s linear infinite; }
.cycle-step[data-step="4"] { animation: orbit-4 80s linear infinite; }
.cycle-step[data-step="5"] { animation: orbit-5 80s linear infinite; }

@keyframes orbit-0 {
  from { transform: rotate(0deg)   translateY(-210px) rotate(0deg); }
  to   { transform: rotate(360deg) translateY(-210px) rotate(-360deg); }
}
@keyframes orbit-1 {
  from { transform: rotate(60deg)  translateY(-210px) rotate(-60deg); }
  to   { transform: rotate(420deg) translateY(-210px) rotate(-420deg); }
}
@keyframes orbit-2 {
  from { transform: rotate(120deg) translateY(-210px) rotate(-120deg); }
  to   { transform: rotate(480deg) translateY(-210px) rotate(-480deg); }
}
@keyframes orbit-3 {
  from { transform: rotate(180deg) translateY(-210px) rotate(-180deg); }
  to   { transform: rotate(540deg) translateY(-210px) rotate(-540deg); }
}
@keyframes orbit-4 {
  from { transform: rotate(240deg) translateY(-210px) rotate(-240deg); }
  to   { transform: rotate(600deg) translateY(-210px) rotate(-600deg); }
}
@keyframes orbit-5 {
  from { transform: rotate(300deg) translateY(-210px) rotate(-300deg); }
  to   { transform: rotate(660deg) translateY(-210px) rotate(-660deg); }
}

/* Pause orbit when a step is expanded */
.cycle-container.paused .cycle-step {
  animation-play-state: paused;
}

/* --- Extending detail label (pill behind icon) --- */
.cycle-step__detail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-terra);
  border-radius: 1.75rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: clip-path 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
}

/* Right-extending (steps 0, 1, 2) */
.cycle-step--extend-right .cycle-step__detail {
  left: 1.5rem;
  padding-left: 4.5rem;
  clip-path: inset(0 100% 0 0);
}

/* Left-extending (steps 3, 4, 5) */
.cycle-step--extend-left .cycle-step__detail {
  right: 1.5rem;
  padding-right: 4.5rem;
  text-align: right;
  clip-path: inset(0 0 0 100%);
}


/* Active: reveal the pill */
.cycle-step.active {
  z-index: 3;
}

.cycle-step.active .cycle-step__detail {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Circular Process — Mobile Vertical Layout
   ============================================ */
@media (max-width: 767px) {
  .cycle-container {
    display: none;
  }

  .cycle-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .cycle-mobile__logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
  }

  .cycle-mobile__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .cycle-mobile__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 100%;
  }

  .cycle-mobile__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .cycle-mobile__label {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.375rem;
  }

  .cycle-mobile__stakeholder {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.125rem;
  }

  .cycle-mobile__step--ours .cycle-mobile__icon {
    background: var(--color-cream);
    border-color: var(--color-terra);
    box-shadow: 0 0 0 3px rgba(218, 132, 115, 0.2);
  }

  .cycle-mobile__step--ours .cycle-mobile__stakeholder {
    color: var(--color-terra);
    font-weight: 600;
  }

  .cycle-mobile__step.active .cycle-mobile__icon {
    border-color: var(--color-terra);
    box-shadow: 0 0 0 3px rgba(218, 132, 115, 0.25);
  }

  .cycle-mobile__step.active .cycle-mobile__label {
    color: var(--color-terra);
  }

  .cycle-mobile__arrow {
    color: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0;
  }

  .cycle-mobile__detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    width: 100%;
  }

  .cycle-mobile__detail.open {
    max-height: 200px;
    opacity: 1;
  }

  .cycle-mobile__detail-inner {
    padding: 1rem 1.25rem;
    margin: 0.5rem 0;
    border-left: 3px solid var(--color-terra);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    color: rgba(255, 255, 255, 0.7);
  }

  .cycle-mobile__detail-inner p {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* Desktop: hide mobile layout */
@media (min-width: 768px) {
  .cycle-mobile {
    display: none;
  }
}

/* --- Reduced Motion: stop all cycle animations --- */
@media (prefers-reduced-motion: reduce) {
  .cycle-ring__circle {
    animation: none;
  }
  .cycle-step {
    animation: none !important;
  }
  .cycle-step[data-step="0"] { transform: rotate(0deg)   translateY(-210px) rotate(0deg); }
  .cycle-step[data-step="1"] { transform: rotate(60deg)  translateY(-210px) rotate(-60deg); }
  .cycle-step[data-step="2"] { transform: rotate(120deg) translateY(-210px) rotate(-120deg); }
  .cycle-step[data-step="3"] { transform: rotate(180deg) translateY(-210px) rotate(-180deg); }
  .cycle-step[data-step="4"] { transform: rotate(240deg) translateY(-210px) rotate(-240deg); }
  .cycle-step[data-step="5"] { transform: rotate(300deg) translateY(-210px) rotate(-300deg); }
}

/* ============================================
   Spec List (Technology page — key-value data rows)
   ============================================ */
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.spec-list__row dt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-navy-600, #4A5280);
}

.spec-list__row dd {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
  text-align: right;
}

/* ============================================
   Comparison Table (Technology page — navy bg)
   ============================================ */
.comparison-table {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table table {
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table__header {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.comparison-table__header.comparison-table__highlight {
  color: var(--color-terra);
  background: rgba(218, 132, 115, 0.06);
}

.comparison-table__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table__row:last-child {
  border-bottom: none;
}

.comparison-table__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.875rem 1.25rem;
  white-space: nowrap;
}

.comparison-table__cell {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.875rem 1.25rem;
}

.comparison-table__cell.comparison-table__highlight {
  background: rgba(218, 132, 115, 0.06);
}

/* ============================================
   TRL Gauge (Technology page — readiness indicator)
   ============================================ */
.trl-gauge {
  width: 100%;
  overflow-x: auto;
}

.trl-gauge__track {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-width: 600px;
  padding: 0 1rem;
}

/* Connecting line behind dots */
.trl-gauge__track::before {
  content: '';
  position: absolute;
  top: 0.875rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.trl-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.trl-step__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-beige-dark);
  border: 2px solid var(--color-border);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.trl-step__number {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-beige-dark);
  margin-bottom: 0.25rem;
}

.trl-step__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--color-navy-600, #4A5280);
  text-align: center;
  max-width: 5.5rem;
  line-height: 1.3;
}

/* Completed steps */
.trl-step--completed .trl-step__dot {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.trl-step--completed .trl-step__number {
  color: var(--color-navy);
}

/* Active step */
.trl-step--active .trl-step__dot {
  width: 1rem;
  height: 1rem;
  background: var(--color-terra);
  border-color: var(--color-terra);
  box-shadow: 0 0 0 4px rgba(218, 132, 115, 0.25);
}

.trl-step--active .trl-step__number {
  color: var(--color-terra);
  font-size: 0.9375rem;
}

.trl-step--active .trl-step__label {
  color: var(--color-navy);
  font-weight: 500;
}


/* --- Impact Calculator --- */
.impact-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 5px;
  background: var(--color-beige);
  outline: none;
  cursor: pointer;
}
.impact-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-terra), var(--color-terra-dark));
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: grab;
}
.impact-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.impact-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-terra), var(--color-terra-dark));
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: grab;
}
.impact-slider::-moz-range-thumb:active { cursor: grabbing; }

.impact-card-light {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.impact-card-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 53, 96, 0.08);
}

.impact-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--color-terra);
}

.scenario-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--color-beige);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.scenario-btn:hover {
  background: var(--color-beige-dark);
}
.scenario-btn.active {
  background: var(--color-terra);
  color: #fff;
}

/* --- Milestone Achievement Track --- */
.milestone-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 580px;
  padding: 0 0.5rem;
}

.milestone-track__bar {
  position: absolute;
  top: 13px;
  left: 0.5rem;
  right: 0.5rem;
  height: 3px;
  background: var(--color-beige);
  border-radius: 2px;
  z-index: 0;
  overflow: hidden;
}

.milestone-track__fill {
  height: 100%;
  background: var(--color-terra);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 5rem;
}

.milestone-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-beige);
  border: 2px dashed var(--color-beige-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.milestone-dot.unlocked {
  background: rgba(218, 132, 115, 0.12);
  border: 2px solid var(--color-terra);
}

.milestone-dot.unlocked::after {
  content: '';
  display: block;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--color-terra);
  border-bottom: 2px solid var(--color-terra);
  transform: rotate(-45deg);
  margin-top: -2px;
}

.milestone-dot.pop {
  animation: milestone-pop 0.35s ease;
}

@keyframes milestone-pop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.25); }
  100%{ transform: scale(1); }
}

.milestone-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-beige-dark);
  text-align: center;
  margin-top: 0.5rem;
  max-width: 5.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.milestone-node.unlocked .milestone-label {
  color: var(--color-navy);
}

.milestone-fact {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-terra-dark);
  background: rgba(218, 132, 115, 0.08);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  transition: opacity 0.3s ease;
}

/* --- Impact Card Progress Rings --- */
.impact-ring {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.impact-ring__bg {
  fill: none;
  stroke: var(--color-beige);
  stroke-width: 3;
}

.impact-ring__fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Elementor Collision Overrides
   ============================================ */
.plastilose-page .elementor-widget-heading .elementor-heading-title,
.plastilose-page .elementor-widget-text-editor,
.plastilose-page .elementor-widget-text-editor p,
.plastilose-page .elementor-button {
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.plastilose-page .elementor-widget-html { padding: 0; }
.plastilose-page { font-size: 1.0625rem; line-height: 1.7; }
