.side-rail__title { letter-spacing: -0.03em; text-wrap: balance; }
.side-rail__micro { font-size: 0.75rem; line-height: 1rem; }
.side-rail__dot { width: 0.5rem; height: 0.5rem; }
.side-rail__wide { letter-spacing: 0.12em; }

.side-rail__viewport {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.side-rail__track {
    width: max-content;
    animation: side-rail-scroll 40s linear infinite;
}

@keyframes side-rail-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.side-rail__slot { margin: 0 0.75rem; }

.side-rail__phone {
    width: 12rem;
    height: 22rem;
    overflow: hidden;
    border-radius: 2.25rem !important;
}
.side-rail__phone > div { border-radius: 1.75rem !important; overflow: hidden; }
.side-rail__notch { width: 4rem; height: 0.9rem; }
.side-rail__tile { border-radius: 0.75rem !important; }

.side-rail__photo { width: 11rem; }
.side-rail__img { object-fit: cover; height: 16rem; }
.side-rail__img--h1 { height: 18rem; }
.side-rail__img--h2 { height: 14rem; }
.side-rail__img--h3 { height: 16rem; }

.side-rail__chart { width: 12rem; height: 16rem; }
.side-rail__bars { height: 5rem; }
.side-rail__bar { height: 45%; }
.side-rail__bar--b2 { height: 70%; }
.side-rail__bar--b3 { height: 100%; }
.side-rail__bar--b4 { height: 40%; }
.side-rail__bar--b5 { height: 60%; }

@media (prefers-reduced-motion: reduce) {
    .side-rail__track { animation: none; }
}

/* phone mock content must fit the narrow screen: amounts shrink, labels wrap instead of running past the frame */
.side-rail__phone > div > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.side-rail__phone > div > :nth-child(4) { font-size: 1.375rem !important; line-height: 1.15; }
.side-rail__tile { min-width: 0; overflow-wrap: anywhere; }
.side-rail__tile > * { font-size: .75rem !important; line-height: 1.2; }
@media (max-width: 767.98px) {
    .side-rail__phone > div > :nth-child(4) { font-size: 1.125rem !important; }
}

/* Grid + gap: @sem may obfuscate Tailwind grid/gap */
.compact-manifesto-grid {
    display: grid;
    width: 100%;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .compact-manifesto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .compact-manifesto-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Badge: w-12 = 3rem — align with v4 (bs had top-0) */
.philosophy-v5-badge-decor {
    top: -2.25rem;
}

.philosophy-compact-badge {
    width: 3rem;
    height: 3rem;
}

.philosophy-bg__img {
    object-fit: cover;
}

/* ethos-mosaic — layout, sizes and motion only (colours live in the template) */

.ethos-mosaic__eyebrow {
    letter-spacing: 0.2em;
}

.ethos-mosaic__statement,
.ethos-mosaic__figure {
    letter-spacing: -0.03em;
}

.ethos-mosaic__micro {
    font-size: 0.75rem;
    line-height: 1rem;
}

.ethos-mosaic__photo {
    aspect-ratio: 16 / 9;
}

.ethos-mosaic__img {
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.ethos-mosaic__card {
    min-height: 13rem;
}

.ethos-mosaic__dot {
    width: 0.375rem;
    height: 0.375rem;
}

.ethos-mosaic__rule {
    border-top-style: dashed;
}

/* abstract looping donut — decorative only */
.ethos-mosaic__ring {
    max-width: 9rem;
    overflow: visible;
}

.ethos-mosaic__arc {
    transform: rotate(-90deg);
    transform-box: fill-box;
    transform-origin: center;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ethos-mosaic-sweep 5s ease-in-out infinite;
}

.ethos-mosaic__orbit {
    transform-box: fill-box;
    transform-origin: center;
    animation: ethos-mosaic-spin 14s linear infinite;
}

.ethos-mosaic__core {
    transform-box: fill-box;
    transform-origin: center;
    animation: ethos-mosaic-beat 5s ease-in-out infinite;
}

@keyframes ethos-mosaic-sweep {
    0% { stroke-dashoffset: 100; opacity: 1; }
    60% { stroke-dashoffset: 22; opacity: 1; }
    82% { stroke-dashoffset: 22; opacity: 1; }
    95% { stroke-dashoffset: 22; opacity: 0; }
    100% { stroke-dashoffset: 100; opacity: 0; }
}

@keyframes ethos-mosaic-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ethos-mosaic-beat {
    0%, 55% { transform: scale(1); }
    65% { transform: scale(1.6); }
    80%, 100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ethos-mosaic__arc,
    .ethos-mosaic__orbit,
    .ethos-mosaic__core {
        animation: none;
    }

    .ethos-mosaic__arc { stroke-dashoffset: 22; }
}

@media (min-width: 768px) {
    .ethos-mosaic__card {
        min-height: 17rem;
    }

    .ethos-mosaic__ring {
        max-width: 11rem;
    }
}

/* values split v16 - layout/size only, no colors */
.values-split__decor-circle {
    aspect-ratio: 1 / 1;
}

.values-split__numeral {
    line-height: 0.85;
    letter-spacing: -0.04em;
}

.values-split__row {
    will-change: transform;
}

/* team v27 — alternating rows + morphing decor shapes */
.team-zigzag__scene {
  overflow: hidden;
}

.team-zigzag__morph {
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  transform-origin: center center;
  animation: team-zigzag-morph 11s ease-in-out infinite;
}

.team-zigzag__morph--a {
  animation-duration: 9s;
}

.team-zigzag__morph--b {
  animation-duration: 12s;
  animation-delay: 1.5s;
}

.team-zigzag__morph--c {
  animation-duration: 10s;
  animation-delay: 3s;
}

.team-zigzag__morph--d {
  animation-duration: 13s;
  animation-delay: 0.5s;
}

.team-zigzag__morph--e {
  animation-duration: 14s;
  animation-delay: 2s;
}

@keyframes team-zigzag-morph {
  0%,
  100% {
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    transform: scale(1) rotate(0deg);
  }
  33% {
    border-radius: 65% 35% 45% 55% / 42% 58% 38% 62%;
    transform: scale(1.06) rotate(4deg);
  }
  66% {
    border-radius: 52% 48% 62% 38% / 58% 42% 55% 45%;
    transform: scale(0.94) rotate(-3deg);
  }
}

/* Ambient layer — spin, float, pulse (distinct from morph blobs) */
.team-zigzag__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-zigzag__orbit {
  transform-origin: center center;
  animation: team-zigzag-orbit-spin 22s linear infinite;
}

.team-zigzag__orbit--rev {
  animation-direction: reverse;
  animation-duration: 30s;
}

.team-zigzag__orbit--lg {
  width: 11rem;
  height: 11rem;
  animation-duration: 26s;
}

.team-zigzag__orbit--sm {
  width: 7rem;
  height: 7rem;
}

.team-zigzag__spark {
  animation: team-zigzag-spark-float 5.5s ease-in-out infinite;
}

.team-zigzag__spark--b {
  animation-delay: 0.8s;
  animation-duration: 4.5s;
}

.team-zigzag__spark--c {
  animation-delay: 1.6s;
  animation-duration: 6s;
}

.team-zigzag__prism {
  width: 2.5rem;
  height: 2.5rem;
  transform-origin: center center;
  animation: team-zigzag-prism-pulse 7s ease-in-out infinite;
}

.team-zigzag__sweep {
  transform-origin: center center;
  width: 8rem;
  height: 2px;
  animation: team-zigzag-sweep-drift 9s ease-in-out infinite;
}

.team-zigzag__sweep--alt {
  width: 6rem;
  animation-delay: 2s;
  animation-duration: 11s;
}

@keyframes team-zigzag-orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes team-zigzag-spark-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-0.75rem) scale(1.35);
    opacity: 1;
  }
}

@keyframes team-zigzag-prism-pulse {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: rotate(52deg) scale(1.2);
    opacity: 0.85;
  }
}

@keyframes team-zigzag-sweep-drift {
  0%,
  100% {
    transform: rotate(-14deg) translateX(-0.5rem) scaleX(0.8);
    opacity: 0.2;
  }
  50% {
    transform: rotate(6deg) translateX(0.75rem) scaleX(1.15);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-zigzag__morph,
  .team-zigzag__orbit,
  .team-zigzag__spark,
  .team-zigzag__prism,
  .team-zigzag__sweep {
    animation: none;
  }
}

.team-zigzag__portrait {
  width: 5.5rem;
  height: 5.5rem;
}

.team-zigzag__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-zigzag__min-shrink {
  min-width: 0;
}

