/* Hero v3 Animation Styles */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(6deg); }
    50% { transform: translateY(-20px) rotate(6deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(15px) scale(1.1); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(0.9); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

.hero-v3-btn-ghost {
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-v3-btn-ghost:hover,
.hero-v3-btn-ghost:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: #fff !important;
}

/* -- Button hover states -- */
.hero-btn-primary {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hero-btn-outline-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-secondary:hover,
.hero-btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
    transform: translateY(-1px);
}

.hero-btn-outline-primary-light {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-primary-light:hover,
.hero-btn-outline-primary-light:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
}
/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* advantages editorial — decorative corner orb (size/position only, no colors) */
.advantages-editorial__orb {
    width: 22rem;
    height: 22rem;
    top: -6rem;
    right: -7rem;
}

/* whyus v20 — fluid parametric backdrop, glitch/scroll reveals */
/* No colors here: `currentColor` reads the Tailwind text-color class already applied on each node. */

/* ── Left-half backdrop: fluid swooping edge instead of a straight 50% cut ── */
.whyus-parametric__bg-half {
    overflow: hidden;
    clip-path: polygon(0 0, 92% 0, 100% 18%, 94% 40%, 100% 62%, 90% 100%, 0 100%);
}

/* ── Mesh-gradient blobs — radial gradient from currentColor, slow organic drift ── */
.whyus-parametric__blob {
    background-image: radial-gradient(circle at 50% 50%, currentColor 0%, transparent 70%);
    will-change: transform;
}

.whyus-parametric__blob--a {
    animation: whyus-parametric-drift-a 22s ease-in-out infinite;
}

.whyus-parametric__blob--b {
    animation: whyus-parametric-drift-b 28s ease-in-out infinite;
}

.whyus-parametric__blob--c {
    animation: whyus-parametric-drift-c 34s ease-in-out infinite;
}

@keyframes whyus-parametric-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2rem, 3rem) scale(1.08); }
}

@keyframes whyus-parametric-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3rem, -2rem) scale(0.95); }
}

@keyframes whyus-parametric-drift-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(1.5rem, -2.5rem) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .whyus-parametric__blob--a,
    .whyus-parametric__blob--b,
    .whyus-parametric__blob--c {
        animation: none;
    }
}

/* ── Film-perforation edge strip ── */
.whyus-parametric__perf-strip {
    background-image: repeating-linear-gradient(to bottom, currentColor 0, currentColor 6px, transparent 6px, transparent 18px);
}

/* ── Row / card containers ── */
.whyus-parametric__row {
    position: relative;
}

.whyus-parametric__card {
    transition: transform 200ms ease;
}

.whyus-parametric__card:hover {
    transform: translateY(-0.25rem);
}

.whyus-parametric__note {
    transition: transform 200ms ease;
}

.whyus-parametric__note:hover {
    transform: translateX(0.25rem);
}

/* ── Skewed swoop divider between rows (Zaha-Hadid-style dynamic line) ── */
.whyus-parametric__divider {
    display: block;
    height: 0.375rem;
    margin-top: 2.5rem;
    clip-path: polygon(0 40%, 20% 60%, 40% 20%, 60% 70%, 80% 30%, 100% 55%, 100% 100%, 0 100%);
}

.whyus-parametric__divider--lg {
    height: 0.5rem;
    margin-top: 3rem;
}

/* ── Appearance animation: glitch flicker on load, then settle ── */
.whyus-parametric__glitch {
    animation: whyus-parametric-glitch 900ms steps(2, end) 1 both;
}

@keyframes whyus-parametric-glitch {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: 1; transform: translate(-6px, 2px); }
    20% { opacity: 0.2; transform: translate(4px, -3px); }
    30% { opacity: 1; transform: translate(-3px, 0); }
    45% { opacity: 0.4; transform: translate(3px, 2px); }
    60% { opacity: 1; transform: translate(0, -2px); }
    80% { opacity: 0.8; transform: translate(-1px, 1px); }
    100% { opacity: 1; transform: translate(0, 0); }
}

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

/* ── Scroll-driven reveal for the micro-ring rows ──
   Static, fully visible fallback for browsers without scroll-timeline support. */
.whyus-parametric__row--micro {
    opacity: 1;
    transform: none;
}

@supports (animation-timeline: view()) {
    .whyus-parametric__row--micro {
        opacity: 0;
        animation: whyus-parametric-reveal linear both;
        animation-timeline: view();
        /* entry-based range: cover-N% never completes for bottom-of-section cards */
        animation-range: entry 0% entry 100%;
    }
}

@keyframes whyus-parametric-reveal {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}

.masonry-offset-cards-quote__track {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 2rem;
}

@media (min-width: 768px) {
    .masonry-offset-cards-quote__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .masonry-offset-cards-quote__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem 1.5rem;
    }
}

.masonry-offset-cards-quote__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.masonry-offset-cards-quote__surface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .masonry-offset-cards-quote__surface {
        gap: 1.25rem;
    }
}

.broadsheet-wide-strip__media {
  width: 100%;
  max-width: 20rem;
}

.broadsheet-wide-strip__img {
    object-fit: cover;
}
.broadsheet-wide-strip__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* cta slice — diagonal bottom edge + cover image */
.cta-slice__section {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 93%);
  padding-bottom: 5rem;
}

.cta-slice__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-slice__title-track {
  letter-spacing: 0.28em;
}

.cta-slice__tagline-track {
  letter-spacing: 0.14em;
}

.cta-slice__signature-track {
  letter-spacing: 0.22em;
}

@media (max-width: 767px) {
  .cta-slice__section {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 97%);
    padding-bottom: 3rem;
  }

  .cta-slice__title-track {
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-slice__section {
    clip-path: none;
    padding-bottom: 0;
  }
}

