/* ========================================
   Yohann Escher — Design System CSS
   ======================================== */

/* Base Typography */
body {
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-shell {
    --hero-pointer-x: 50%;
    --hero-pointer-y: 34%;
    --hero-shift-x: 0px;
    --hero-shift-y: 0px;
    --hero-cursor-opacity: 0;
}

h1, h2, h3 {
    font-family: 'Noto Serif', serif;
    font-style: italic;
}

/* Glass Navigation */
.glass-nav {
    background: rgba(239, 231, 219, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-nav-over-hero {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.site-nav-over-hero .site-logo {
    filter: brightness(0) invert(1);
}

.site-nav-over-hero .site-nav-link,
.site-nav-over-hero .site-nav-toggle {
    color: rgba(255, 255, 255, 0.92);
}

.site-nav-over-hero .site-nav-link:hover,
.site-nav-over-hero .site-nav-link.is-active,
.site-nav-over-hero .site-nav-toggle:hover {
    color: #f0dfbb;
}

.site-nav-over-hero.is-scrolled {
    background: rgba(239, 231, 219, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-nav-over-hero.is-scrolled .site-logo {
    filter: none;
}

.site-nav-over-hero.is-scrolled .site-nav-link,
.site-nav-over-hero.is-scrolled .site-nav-toggle {
    color: #434841;
}

.site-nav-over-hero.is-scrolled .site-nav-link:hover,
.site-nav-over-hero.is-scrolled .site-nav-link.is-active,
.site-nav-over-hero.is-scrolled .site-nav-toggle:hover {
    color: #6f582d;
}

.site-nav-link {
    color: #434841;
    letter-spacing: 0.18em;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: #6f582d;
}

.site-nav-toggle {
    color: #6f582d;
    transition: color 0.3s ease;
}

.site-nav-toggle .material-symbols-outlined {
    color: currentColor;
}

/* Masthead Label */
.masthead-label {
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Ambient Shadow */
.shadow-ambient {
    box-shadow: 0 12px 40px rgba(27, 28, 26, 0.05);
}

.hero-bg-media {
    transform: scale(1);
}

.hero-bg-media--home {
    object-position: center center;
}

.hero-bg-media--interactive {
    transform: scale(1.08) translate3d(var(--hero-shift-x), var(--hero-shift-y), 0);
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(28, 28, 22, 0.7) 0%, rgba(28, 28, 22, 0.34) 32%, rgba(28, 28, 22, 0.5) 100%);
}

.hero-overlay--light {
    background:
        linear-gradient(180deg, rgba(28, 28, 22, 0.3) 0%, rgba(28, 28, 22, 0.12) 32%, rgba(28, 28, 22, 0.22) 100%);
}

.hero-ambient-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.55;
    mix-blend-mode: screen;
}

.hero-ambient-orb-left {
    top: 10%;
    left: -4%;
    width: 18rem;
    height: 18rem;
    background: rgba(212, 184, 132, 0.18);
    animation: hero-orb-float 14s ease-in-out infinite;
}

.hero-ambient-orb-right {
    right: 4%;
    bottom: 12%;
    width: 16rem;
    height: 16rem;
    background: rgba(126, 102, 53, 0.16);
    animation: hero-orb-float 18s ease-in-out infinite reverse;
}

.hero-cursor-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: var(--hero-cursor-opacity);
    background:
        radial-gradient(circle 210px at var(--hero-pointer-x) var(--hero-pointer-y), rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 26%, rgba(255, 255, 255, 0.02) 46%, rgba(255, 255, 255, 0) 72%);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    mask-image: radial-gradient(circle 210px at var(--hero-pointer-x) var(--hero-pointer-y), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.98) 35%, rgba(0, 0, 0, 0.25) 58%, rgba(0, 0, 0, 0) 76%);
    -webkit-mask-image: radial-gradient(circle 210px at var(--hero-pointer-x) var(--hero-pointer-y), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.98) 35%, rgba(0, 0, 0, 0.25) 58%, rgba(0, 0, 0, 0) 76%);
    transition: opacity 0.35s ease;
}

.hero-kicker-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    box-shadow:
        0 22px 54px rgba(18, 18, 14, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: hero-kicker-float 7s ease-in-out infinite;
}

.hero-kicker-shell::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    opacity: 0.9;
}

.hero-kicker-shell::after {
    content: '';
    position: absolute;
    top: -35%;
    left: -22%;
    width: 36%;
    height: 170%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-180%) rotate(18deg);
    animation: hero-kicker-glint 15s ease-in-out infinite;
}

.hero-kicker {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.98) 38%,
        #ead6a8 50%,
        rgba(255, 255, 255, 0.98) 62%,
        rgba(255, 255, 255, 0.98) 100%
    );
    background-size: 240% 100%;
    background-position: 120% center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.26em;
    filter: drop-shadow(0 1px 10px rgba(12, 11, 8, 0.18));
    animation: hero-kicker-tone 15s ease-in-out infinite;
}

.hero-home-highlight {
    color: #d9c29e;
}

.home-intro-section {
    isolation: isolate;
}

.home-intro-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.home-intro-glow-left {
    top: 8%;
    left: 8%;
    width: 14rem;
    height: 14rem;
    background: rgba(166, 139, 91, 0.12);
}

.home-intro-glow-right {
    right: 10%;
    bottom: 10%;
    width: 16rem;
    height: 16rem;
    background: rgba(111, 88, 45, 0.08);
}

.home-intro-panel {
    position: relative;
    z-index: 1;
    padding: 3.5rem 2rem;
    border-radius: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 231, 219, 0.9));
    border: 1px solid rgba(208, 197, 182, 0.5);
    box-shadow:
        0 30px 80px rgba(28, 28, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-intro-panel::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(208, 197, 182, 0.28);
    pointer-events: none;
}

.home-intro-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.home-intro-eyebrow .masthead-label {
    margin: 0;
}

.home-intro-rule {
    width: 3.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(111, 88, 45, 0.45), transparent);
}

.home-typewriter-line {
    display: inline-flex;
    align-items: baseline;
    color: #6f582d;
}

.home-typewriter-slot {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    min-width: calc(var(--typewriter-width, 11ch) + 0.35em);
    white-space: nowrap;
}

.home-typewriter {
    display: inline-block;
    color: #7d6231;
}

.home-typewriter-punctuation {
    display: inline-block;
}

.home-typewriter-cursor {
    display: inline-block;
    width: 1px;
    height: 0.95em;
    background: currentColor;
    animation: caret-blink 1s steps(1) infinite;
    margin-left: 0.04em;
    transform: translateY(0.08em);
}

.home-intro-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.75rem;
}

.home-intro-tag {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(208, 197, 182, 0.55);
    background: rgba(255, 255, 255, 0.42);
    color: #5d563f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Primary Buttons */
.btn-refined {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(133, 105, 54, 0.36);
    background: linear-gradient(135deg, #6d5428 0%, #866736 48%, #9a7a44 100%);
    background-size: 150% 150%;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1;
    text-decoration: none;
    box-shadow:
        0 16px 38px rgba(54, 40, 16, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(82, 60, 24, 0.24);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-position 0.45s ease,
        border-color 0.35s ease,
        filter 0.35s ease;
}

.btn-refined::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -18%;
    width: 34%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-220%) rotate(18deg);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.btn-refined::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.btn-refined:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    border-color: rgba(154, 122, 68, 0.58);
    box-shadow:
        0 22px 48px rgba(54, 40, 16, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(82, 60, 24, 0.28);
    filter: saturate(1.03);
}

.btn-refined:hover::before {
    transform: translateX(340%) rotate(18deg);
}

.btn-refined:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(239, 231, 219, 0.78),
        0 0 0 6px rgba(111, 88, 45, 0.26),
        0 20px 44px rgba(54, 40, 16, 0.22);
}

.btn-refined--sm {
    padding: 0.95rem 1.8rem;
    font-size: 0.66rem;
}

.btn-refined--md {
    padding: 1.05rem 2.4rem;
    font-size: 0.7rem;
}

.btn-refined--lg {
    padding: 1.1rem 2.6rem;
    font-size: 0.72rem;
}

.site-nav-over-hero .site-nav-cta {
    box-shadow:
        0 16px 38px rgba(20, 18, 12, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(82, 60, 24, 0.24);
}

/* Scroll Padding for Fixed Nav */
html {
    scroll-padding-top: 5rem;
}

/* Selection Color */
::selection {
    background-color: rgba(111, 88, 45, 0.15);
    color: #1c1c16;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 1;
    transform: none;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Smooth Image Hover */
.img-hover {
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-preview-image {
    object-position: center top;
    transform-origin: center top;
}

.group:hover .img-hover {
    transform: scale(1.05);
}

/* Ghost Border for Inputs */
.input-editorial {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(208, 197, 182, 0.4);
    border-radius: 0;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    color: #1c1c16;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-editorial:focus {
    border-bottom-color: #6f582d;
}

.input-editorial::placeholder {
    color: rgba(67, 72, 65, 0.4);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    background: rgba(239, 231, 219, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Step Number Decoration */
.step-number {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-weight: 700;
    color: rgba(111, 88, 45, 0.08);
    line-height: 1;
    user-select: none;
}

/* Pillar Card Gradient */
.pillar-gradient {
    background: linear-gradient(to top, rgba(28, 28, 22, 0.92) 0%, rgba(28, 28, 22, 0.3) 50%, transparent 100%);
}

/* Prose-like line height for long text */
.prose-editorial {
    line-height: 1.85;
    letter-spacing: 0.005em;
}

/* CTA underline animation */
.cta-underline {
    position: relative;
    display: inline-block;
}

.cta-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-underline:hover::after {
    width: 100%;
}

@keyframes hero-kicker-glint {
    0%, 6%, 100% {
        transform: translateX(-180%) rotate(18deg);
    }

    18% {
        transform: translateX(420%) rotate(18deg);
    }
}

@keyframes hero-kicker-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes hero-kicker-tone {
    0%, 6%, 100% {
        background-position: 120% center;
    }

    18% {
        background-position: -18% center;
    }
}

@keyframes hero-orb-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(10px, -12px, 0);
    }
}

@keyframes caret-blink {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

.method-video-shell {
    position: relative;
}

.method-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 2.4rem;
    overflow: hidden;
    border: 1px solid rgba(111, 88, 45, 0.12);
    background: #d8cebf;
    box-shadow:
        0 34px 90px rgba(30, 24, 16, 0.14),
        0 10px 24px rgba(30, 24, 16, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.method-video-frame::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: 2;
}

.method-video-preview {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    z-index: 3;
    transition: opacity 0.35s ease;
}

.method-video-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 16, 12, 0.18) 0%, rgba(17, 16, 12, 0.08) 35%, rgba(17, 16, 12, 0.4) 100%);
}

.method-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
}

.method-video-preview:hover .method-video-poster,
.method-video-preview:focus-visible .method-video-poster {
    transform: scale(1.03);
    filter: saturate(1.04);
}

.method-video-sheen {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

.method-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.75rem;
    height: 5.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    box-shadow:
        0 22px 54px rgba(14, 13, 10, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translate(-50%, -50%);
    transition: transform 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.method-video-preview:hover .method-video-play,
.method-video-preview:focus-visible .method-video-play {
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

.method-video-play-icon {
    width: 0;
    height: 0;
    margin-left: 0.25rem;
    border-top: 0.82rem solid transparent;
    border-bottom: 0.82rem solid transparent;
    border-left: 1.3rem solid #fbf8f2;
    filter: drop-shadow(0 3px 10px rgba(10, 10, 8, 0.18));
}

.method-video-preview:focus-visible {
    outline: none;
}

.method-video-preview:focus-visible .method-video-play {
    box-shadow:
        0 22px 54px rgba(14, 13, 10, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 4px rgba(240, 223, 187, 0.22);
}

.method-video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    background: #000;
    transition: opacity 0.35s ease;
}

.method-video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.method-video-frame.is-loaded .method-video-preview {
    opacity: 0;
    pointer-events: none;
}

.method-video-frame.is-loaded .method-video-player {
    opacity: 1;
    pointer-events: auto;
    z-index: 4;
}

.home-final-cta-section {
    padding: 6rem 0;
}

.home-final-cta-copy {
    max-width: 56rem;
}

@media (max-width: 768px) {
    .btn-refined--sm {
        padding: 0.9rem 1.55rem;
        font-size: 0.64rem;
    }

    .btn-refined--md,
    .btn-refined--lg {
        padding: 1rem 2.1rem;
        font-size: 0.68rem;
    }

    .hero-bg-media--home {
        /* object-position removed to match desktop framing */
    }

    .hero-bg-media--home.hero-bg-media--interactive {
        transform: scale(1.025);
    }

    .home-intro-panel {
        padding: 2.5rem 1.35rem;
        border-radius: 1.6rem;
    }

    .home-intro-panel::before {
        inset: 0.8rem;
        border-radius: 1.2rem;
    }

    .home-intro-eyebrow {
        gap: 0.7rem;
    }

    .home-intro-rule {
        width: 2.2rem;
    }

    .home-typewriter {
        min-width: 0;
    }

    .home-typewriter-slot {
        min-width: calc(var(--typewriter-width, 9ch) + 0.35em);
    }

    .home-intro-tags {
        gap: 0.6rem;
    }

    .hero-kicker-shell {
        padding: 0.72rem 0.95rem;
        max-width: calc(100vw - 3rem);
    }

    .hero-kicker {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        white-space: nowrap;
    }

    .hero-cursor-aura {
        display: none;
    }

    .method-video-frame {
        border-radius: 1.8rem;
    }

    .method-video-frame::before {
        inset: 0.7rem;
        border-radius: 1rem;
    }

    .method-video-play {
        width: 4.8rem;
        height: 4.8rem;
    }

    .ticker-track {
        padding-inline: 1.15rem;
    }

    .ticker-item {
        width: min(17.5rem, calc(100vw - 4.5rem));
        margin-right: 1rem;
    }

    .home-final-cta-section {
        min-height: auto;
        align-items: stretch;
        padding: 5rem 0 5.5rem;
    }

    .home-final-cta-copy {
        max-width: 22rem;
    }

    .home-final-cta-copy .masthead-label {
        margin-bottom: 1rem;
    }

    .home-final-cta-copy h2 {
        font-size: clamp(3rem, 11.5vw, 4.3rem);
        line-height: 0.98;
        margin-bottom: 1.35rem;
    }

    .home-final-cta-copy p {
        font-size: 1.02rem;
        line-height: 1.58;
        margin-bottom: 1.9rem;
        max-width: 19rem;
    }

    .home-final-cta-actions {
        gap: 1rem;
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }

    .home-final-cta-link {
        margin-top: 0.35rem !important;
        padding-bottom: 0.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-media--interactive,
    .hero-kicker,
    .hero-kicker-shell,
    .hero-kicker-shell::after,
    .hero-ambient-orb,
    .home-typewriter-cursor,
    .method-video-poster,
    .method-video-play {
        animation: none;
        transition: none;
        transform: none;
    }
}
/* Ticker Animation */
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-slide 60s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    flex-shrink: 0;
    width: 320px;
    margin-right: 2rem;
}

.diagonal-pill {
    transform: skew(-8deg);
}
.diagonal-pill > * {
    transform: skew(8deg);
}

/* Scribed Text Focus */
.scribed-highlight {
    background: linear-gradient(120deg, rgba(217, 194, 158, 0.3) 0%, rgba(217, 194, 158, 0.45) 100%);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary);
}

.scribed-underline {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: var(--on-surface);
}

.scribed-underline::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 1px;
    height: 6px;
    background: var(--secondary-container);
    opacity: 0.45;
    z-index: -1;
    transform: rotate(-0.5deg);
    border-radius: 2px;
}

/* Page Transitions */
.page-transition {
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, filter;
}

.page-transition.is-visible {
    opacity: 1;
    filter: blur(0);
}

.page-transition.is-exiting {
    opacity: 0;
    filter: blur(8px);
}

.scribed-highlight--light {
    background: linear-gradient(120deg, rgba(239, 231, 219, 0.15) 0%, rgba(239, 231, 219, 0.25) 100%);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
}

.blog-rich-content > * + * {
    margin-top: 1.75rem;
}

.blog-rich-content h2,
.blog-rich-content h3 {
    color: #6f582d;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    line-height: 1.15;
}

.blog-rich-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.blog-rich-content h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.blog-rich-content a {
    color: #6f582d;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.blog-rich-content ul,
.blog-rich-content ol {
    padding-left: 1.4rem;
}

.blog-rich-content ul {
    list-style: disc;
}

.blog-rich-content ol {
    list-style: decimal;
}

.blog-rich-content li + li {
    margin-top: 0.65rem;
}

.blog-rich-content blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.4rem;
    border-left: 3px solid rgba(111, 88, 45, 0.3);
    background: rgba(255, 255, 255, 0.38);
    color: #6f582d;
    border-radius: 1rem;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.6;
}

.blog-rich-content .blog-media {
    margin: 2.2rem 0;
}

.blog-rich-content .blog-media img {
    width: 100%;
    display: block;
    border-radius: 1.9rem;
    box-shadow: 0 22px 60px rgba(28, 28, 22, 0.08);
}

.blog-rich-content .blog-video-embed {
    position: relative;
    margin: 2.2rem 0;
    aspect-ratio: 16 / 9;
    border-radius: 2rem;
    overflow: hidden;
    background: #11100c;
    box-shadow: 0 22px 60px rgba(28, 28, 22, 0.12);
}

.blog-rich-content .blog-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
