/* intro v27 — Evangelion cascade: organic blob, wide banner, diagonal steps, slide-in L/R, word reveal */

/* Organic blob */
.intro-eva__blob {
    width: 24rem;
    height: 24rem;
    filter: blur(60px);
    opacity: 0.4;
    border-radius: 38% 62% 55% 45% / 55% 42% 58% 45%;
    animation: intro-eva-morph 12s ease-in-out infinite;
}
@keyframes intro-eva-morph {
    50% { border-radius: 55% 45% 42% 58% / 42% 58% 45% 55%; }
}

/* Single wide banner */
.intro-eva__banner-img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}
@media (min-width: 768px) {
    .intro-eva__banner-img { height: 16rem; }
}

/* Stepped diagonal cascade + asymmetric mixed sizes */
.intro-eva__row { margin-left: 0; }
.intro-eva__cell { max-width: 46rem; }
@media (min-width: 768px) {
    .intro-eva__row:nth-child(1) .intro-eva__cell { margin-left: 0;    max-width: 40rem; }
    .intro-eva__row:nth-child(2) .intro-eva__cell { margin-left: 3rem; max-width: 34rem; }
    .intro-eva__row:nth-child(3) .intro-eva__cell { margin-left: 6rem; max-width: 44rem; }
    .intro-eva__row:nth-child(4) .intro-eva__cell { margin-left: 9rem; max-width: 30rem; }
}

/* Slide-in from L / R on scroll — hidden only once JS arms it (no-JS content stays visible) */
.intro-eva.is-armed .intro-eva__row {
    opacity: 0;
    transition: opacity 560ms ease, transform 560ms ease;
}
.intro-eva.is-armed .intro-eva__row:nth-child(odd)  { transform: translateX(-2.5rem); }
.intro-eva.is-armed .intro-eva__row:nth-child(even) { transform: translateX(2.5rem); }
.intro-eva.is-armed .intro-eva__row.is-in { opacity: 1; transform: translateX(0); }

/* Letterpress-ish press using the element's own colour */
.intro-eva__press { text-shadow: 0 1px 0 currentColor; }

/* Word-by-word reveal */
.intro-eva__word { display: inline-block; }
.intro-eva.is-armed .intro-eva__word {
    opacity: 0;
    transform: translateY(0.6em);
    transition: opacity 420ms ease, transform 420ms ease;
}
.intro-eva.is-armed .intro-eva__reveal.is-in .intro-eva__word { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .intro-eva__blob { animation: none; }
    .intro-eva__row { opacity: 1; transform: none; }
    .intro-eva__word { opacity: 1; transform: none; }
}

.memo-number-hover,
.memo-box-hover,
.memo-cta-shadow,
.memo-cta-hover {
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.memo-title-rule {
    border-bottom: 4px solid var(--bs-primary);
}

.memo-principle-rule {
    border-top: 2px solid rgba(var(--bs-emphasis-color-rgb), 0.2);
}

.memo-principle-group:hover .memo-number-hover {
    color: var(--bs-primary) !important;
}

.memo-principle-group:hover .memo-box-hover {
    border-top-color: rgba(var(--bs-primary-rgb), 0.4) !important;
}

.memo-cta-shadow {
    transform: translate(0.375rem, 0.375rem);
}

.memo-cta-group:hover .memo-cta-shadow {
    transform: translate(0, 0);
}

.memo-cta-hover:hover {
    background-color: var(--bs-accent, rgb(var(--tw-accent-600, 37 99 235) / 1)) !important;
    color: #fff !important;
    border-color: var(--bs-accent, rgb(var(--tw-accent-700, 29 78 216) / 1)) !important;
}

@keyframes notion-table-timeline__row-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notion-table-timeline__row-visible {
    animation: notion-table-timeline__row-in 0.3s ease forwards;
}

.notion-table-timeline__decor-corner {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    width: 8rem;
    height: 8rem;
}

.notion-table-timeline__cell-width {
    max-width: 24rem;
}

.notion-table-timeline__line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* #scroll-container::-webkit-scrollbar {
  display: none;
} */
/* 
#scroll-container {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
} */

/* @media (pointer: fine) {
  #scroll-container {
    scroll-snap-type: x proximity;
  }
} */

.values-scroll-deck__hint-right {
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    right: 1rem;
}

.values-scroll-deck__hint-left {
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    left: 1rem;
}

.values-scroll-deck__item {
    scroll-snap-align: center;
    width: 90%;
    min-width: 280px;
}

@media (min-width: 768px) {
    .values-scroll-deck__item {
        width: 70%;
    }
}

@media (min-width: 992px) {
    .values-scroll-deck__item {
        width: 55%;
    }
}

.values-scroll-deck__card {
    min-height: 380px;
}

.values-scroll-deck__thumb {
    width: 6rem;
    height: 6rem;
}

.values-scroll-deck__overlay {
    height: 6rem;
}

/* team v25 — compact grid + animated background */
.team-catalog__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.team-catalog__blob {
  border-radius: 35% 65% 60% 40% / 45% 35% 65% 55%;
  animation: team-catalog-blob-morph 10s ease-in-out infinite;
  transform-origin: center;
}

.team-catalog__blob--tl {
  top: -5rem;
  left: -4rem;
  width: 16rem;
  height: 16rem;
}

.team-catalog__blob--br {
  bottom: -6rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  animation-duration: 12s;
  animation-delay: 1.5s;
}

.team-catalog__glow {
  top: 50%;
  left: 50%;
  width: 24rem;
  height: 24rem;
  animation: team-catalog-glow-pulse 8s ease-in-out infinite;
  transform-origin: center;
}

.team-catalog__ring--1 {
  top: 2rem;
  right: 2.5rem;
  width: 8rem;
  height: 8rem;
  animation: team-catalog-spin 26s linear infinite;
  transform-origin: center;
}

.team-catalog__ring--2 {
  bottom: 3rem;
  left: 1.5rem;
  width: 6rem;
  height: 6rem;
  animation: team-catalog-pulse-ring 6s ease-in-out infinite;
  transform-origin: center;
}

.team-catalog__spark {
  animation: team-catalog-spark-float 4s ease-in-out infinite;
}

.team-catalog__spark--1 {
  top: 20%;
  left: 15%;
  width: 0.5rem;
  height: 0.5rem;
  animation-delay: 0s;
}

.team-catalog__spark--2 {
  top: 35%;
  right: 20%;
  width: 0.75rem;
  height: 0.75rem;
  animation-delay: 0.6s;
}

.team-catalog__spark--3 {
  bottom: 30%;
  left: 40%;
  width: 0.5rem;
  height: 0.5rem;
  animation-delay: 1.2s;
}

.team-catalog__grid-dots {
  background-image: radial-gradient(circle, var(--bs-primary) 1px, transparent 1px);
  background-size: 1.75rem 1.75rem;
  animation: team-catalog-dots-drift 18s linear infinite;
}

.team-catalog__card-media {
  height: 7rem;
}

@media (min-width: 768px) {
  .team-catalog__card-media {
    height: 8rem;
  }
}

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

.team-catalog__card:hover .team-catalog__card-img {
  transform: scale(1.08);
}

@keyframes team-catalog-blob-morph {
  0%,
  100% {
    border-radius: 35% 65% 60% 40% / 45% 35% 65% 55%;
    transform: scale(1);
  }
  50% {
    border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%;
    transform: scale(1.06);
  }
}

@keyframes team-catalog-glow-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

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

@keyframes team-catalog-pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes team-catalog-spark-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-0.5rem);
    opacity: 1;
  }
}

@keyframes team-catalog-dots-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1.75rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-catalog__blob,
  .team-catalog__glow,
  .team-catalog__ring--1,
  .team-catalog__ring--2,
  .team-catalog__spark,
  .team-catalog__grid-dots {
    animation: none;
  }
}

/* quote wireframe — typography, aurora sweep, ruler marks, celtic knots, dual-image crop */

.quote-wire__heading-serif {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.quote-wire__body-sans {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* horizontal aurora wave — translate only; gradient colors live in template classes */
@keyframes quoteWireAuroraSweep {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

.quote-wire__aurora {
    width: 60%;
    height: 140%;
    top: -20%;
    left: 20%;
    filter: blur(4rem);
    animation: quoteWireAuroraSweep 14s linear infinite;
    will-change: transform;
}

/* ruler measurement marks — tick pattern via transparent gaps, color from currentColor */
.quote-wire__ruler {
    height: 1.25rem;
    background-image:
        repeating-linear-gradient(
            90deg,
            currentColor 0,
            currentColor 1px,
            transparent 1px,
            transparent 6px
        ),
        repeating-linear-gradient(
            90deg,
            currentColor 0,
            currentColor 1px,
            transparent 1px,
            transparent 24px
        );
    background-size: 6px 40%, 24px 100%;
    background-position: left bottom, left top;
    background-repeat: repeat-x;
}

.quote-wire__ruler--vertical {
    width: 1.25rem;
    height: 100%;
    min-height: 8rem;
    background-image:
        repeating-linear-gradient(
            180deg,
            currentColor 0,
            currentColor 1px,
            transparent 1px,
            transparent 6px
        ),
        repeating-linear-gradient(
            180deg,
            currentColor 0,
            currentColor 1px,
            transparent 1px,
            transparent 24px
        );
    background-size: 40% 6px, 100% 24px;
    background-position: right top, left top;
    background-repeat: repeat-y;
}

/* wireframe corner brackets */
.quote-wire__bracket {
    width: 1.5rem;
    height: 1.5rem;
    border-style: solid;
    border-width: 0;
}

.quote-wire__bracket--tl {
    top: 0.5rem;
    left: 0.5rem;
    border-top-width: 2px;
    border-left-width: 2px;
}

.quote-wire__bracket--br {
    bottom: 0.5rem;
    right: 0.5rem;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* celtic-knot corner accents — interlaced L-shapes, distinct from deck overlap variant */
.quote-wire__knot {
    width: 1.75rem;
    height: 1.75rem;
    pointer-events: none;
}

.quote-wire__knot--tl {
    top: 0.35rem;
    left: 0.35rem;
    clip-path: polygon(0 0, 100% 0, 100% 28%, 28% 28%, 28% 100%, 0 100%, 0 55%, 55% 55%, 55% 0);
}

.quote-wire__knot--tr {
    top: 0.35rem;
    right: 0.35rem;
    clip-path: polygon(0 0, 100% 0, 100% 55%, 72% 55%, 72% 100%, 45% 100%, 45% 28%, 0 28%);
}

.quote-wire__knot--bl {
    bottom: 0.35rem;
    left: 0.35rem;
    clip-path: polygon(0 45%, 28% 45%, 28% 0, 55% 0, 55% 72%, 100% 72%, 100% 100%, 0 100%);
}

.quote-wire__knot--br {
    bottom: 0.35rem;
    right: 0.35rem;
    clip-path: polygon(72% 0, 100% 0, 100% 100%, 0 100%, 0 72%, 45% 72%, 45% 45%, 72% 45%);
}

/* featured card — diagonal crop dual-image overlap */
.quote-wire__dual-media {
    position: relative;
    height: 9rem;
    overflow: hidden;
}

.quote-wire__dual-media img {
    position: absolute;
    top: 0;
    width: 78%;
    height: 100%;
    object-fit: cover;
}

.quote-wire__dual-media img:first-child {
    left: 0;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
}

.quote-wire__dual-media img:last-child {
    right: 0;
    z-index: 2;
    clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}

/* wireframe grid crosshair overlay */
.quote-wire__crosshair {
    background-image:
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
}

/* slot group spacing — vertical rhythm between named slots */
.quote-wire__slot-stack > [data-slot] + [data-slot] {
    margin-top: 1rem;
}

.quote-wire__card-slot > [data-slot="attribution"] {
    margin-top: auto;
    padding-top: 0.75rem;
}

.quote-wire__panel-body {
    min-width: 0;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-wire-root [role="listitem"]:hover,
    .quote-wire-root article:hover,
    .quote-wire-root [class*="quote-wire__card"]:hover,
    .quote-wire-root .quote-wire__book:hover,
    .quote-wire-root .quote-wire__step:hover,
    .quote-wire-root .quote-wire__index-card:hover,
    .quote-wire-root .quote-wire__pill:hover,
    .quote-wire-root .quote-wire__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-wire-root [role="listitem"],
.quote-wire-root article,
.quote-wire-root [class*="quote-wire__card"],
.quote-wire-root .quote-wire__book,
.quote-wire-root .quote-wire__step,
.quote-wire-root .quote-wire__index-card,
.quote-wire-root .quote-wire__pill {
    transition: transform 200ms ease;
}

.quote-wire-root a:focus-visible,
.quote-wire-root button:focus-visible,
.quote-wire-root [tabindex="0"]:focus-visible,
.quote-wire-root input:focus-visible,
.quote-wire-root summary:focus-visible,
.quote-wire-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-wire-root button:hover,
    .quote-wire-root a:hover,
    .quote-wire-root summary:hover {
        opacity: 0.92;
    }
}

