/* Final visual pass. Kept separate so the original component styles remain readable. */
:root,
html[data-theme="dark"] {
    --bg-band: #11100d;
    --bg-inset: #0f0e0b;
    --hero-disc: #2a2412;
    --line-strong: rgba(255, 255, 255, 0.14);
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.24);
    --link-blue: #54baf0;
    --shape-color: rgba(244, 196, 68, 0.09);
}

html[data-theme="light"] {
    --bg-band: #ede8dd;
    --bg-inset: #f3efe6;
    --hero-disc: #eadfbf;
    --line-strong: rgba(26, 25, 23, 0.16);
    --shadow-soft: 0 16px 40px rgba(50, 38, 13, 0.1);
    --link-blue: #17658b;
    --shape-color: rgba(104, 72, 0, 0.08);
}

body {
    line-height: 1.5;
}

::selection {
    background: var(--accent-gold);
    color: #17130a;
}

.shell {
    max-width: 1200px;
}

main:focus {
    outline: none;
}

.section:focus,
.cta-section:focus {
    outline: none;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.navbar-pill {
    position: relative;
    box-shadow: var(--shadow-soft);
}

.brand-link {
    min-height: 44px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
}

.mobile-nav-toggle,
.mobile-nav-panel {
    display: none;
}

.mobile-nav-panel[hidden] {
    display: none !important;
}

.section {
    padding-block: clamp(5rem, 8vw, 7.5rem);
}

#cases,
#process,
#contacts {
    background: var(--bg-band);
}

/* A small selection of the original shapes keeps the page playful without covering content. */
.section-bg-shapes {
    display: block;
    pointer-events: none;
    z-index: 0;
}

.section-bg-shapes .bg-interactive-shape {
    display: none;
    pointer-events: none;
    animation-duration: 76s;
}

.hero-backdrop .hero-shape-one,
.hero-backdrop .hero-shape-two,
#cases .section-bg-shapes .bg-interactive-shape:nth-child(1),
#cases .section-bg-shapes .bg-interactive-shape:nth-child(3),
#approach .section-bg-shapes .bg-interactive-shape:nth-child(1),
#approach .section-bg-shapes .bg-interactive-shape:nth-child(3),
#process .section-bg-shapes .bg-interactive-shape:nth-child(1),
#process .section-bg-shapes .bg-interactive-shape:nth-child(3),
#stack .section-bg-shapes .bg-interactive-shape:nth-child(1),
#stack .section-bg-shapes .bg-interactive-shape:nth-child(3),
#contacts .section-bg-shapes .bg-interactive-shape:nth-child(1) {
    display: block;
}

.hero-shape-one {
    left: 2.5rem;
    bottom: 1.5rem;
    opacity: 0.7;
}

.hero-shape-two {
    right: 2.5rem;
    top: 1.5rem;
    opacity: 0.65;
}

.hero-shape-one svg {
    width: 9.5rem;
    height: 9.5rem;
}

.hero-shape-two svg {
    width: 8rem;
    height: 8rem;
}

#cases .section-bg-shapes .bg-interactive-shape:nth-child(1),
#approach .section-bg-shapes .bg-interactive-shape:nth-child(1),
#process .section-bg-shapes .bg-interactive-shape:nth-child(1),
#stack .section-bg-shapes .bg-interactive-shape:nth-child(1),
#contacts .section-bg-shapes .bg-interactive-shape:nth-child(1) {
    left: 2rem !important;
}

#cases .section-bg-shapes .bg-interactive-shape:nth-child(3),
#approach .section-bg-shapes .bg-interactive-shape:nth-child(3),
#process .section-bg-shapes .bg-interactive-shape:nth-child(3),
#stack .section-bg-shapes .bg-interactive-shape:nth-child(3) {
    left: auto !important;
    right: 2rem;
}

#cases .section-bg-shapes .bg-interactive-shape:nth-child(3) { top: 52% !important; }
#approach .section-bg-shapes .bg-interactive-shape:nth-child(3) { top: 68% !important; }
#process .section-bg-shapes .bg-interactive-shape:nth-child(3) { top: 52% !important; }
#stack .section-bg-shapes .bg-interactive-shape:nth-child(3) { top: 42% !important; }

/* Keep one water-like separator after the hero and remove the repeated copies. */
main > .wavy-divider {
    display: none;
}

main > .wavy-divider:first-of-type {
    display: block;
    height: 30px;
    margin: 0;
    opacity: 0.9;
}

/* Hero */
.hero-section {
    min-height: 100svh;
    padding-block: clamp(6.5rem, 12vh, 8.5rem) clamp(3rem, 7vh, 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-backdrop-ring {
    position: absolute;
    width: clamp(27rem, 36vw, 32rem);
    aspect-ratio: 1;
    right: max(1rem, calc((100vw - 1240px) / 2 + 1rem));
    top: 50%;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transform: translateY(-50%);
}

.hero-backdrop-line {
    position: absolute;
    width: min(46vw, 42rem);
    height: 1px;
    right: 0;
    top: 50%;
    background: var(--line-strong);
}

.hero-section > .shell {
    max-width: 1240px;
    padding-inline: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(23rem, 0.88fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4.5rem);
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow > span {
    width: 0.65rem;
    height: 0.65rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-gold);
}

.hero-title {
    max-width: 12ch;
    margin-bottom: 1.35rem;
    font-size: clamp(3.15rem, 5.2vw, 5rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 37rem;
    margin-bottom: 2rem;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.65;
}

.hero-bottom-row {
    gap: 0.75rem;
}

.btn-primary-gold,
.btn-secondary-dark,
.btn-nav-gold,
.theme-toggle-btn,
.btn-arrow {
    min-height: 44px;
}

.btn-primary-gold,
.btn-secondary-dark {
    padding: 0.88rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary-gold,
.btn-secondary-dark,
.btn-nav-gold,
.theme-toggle-btn,
.carousel-tab-btn,
.btn-arrow,
.slide-action-btn {
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.hero-note::before {
    content: "";
    width: 1.8rem;
    height: 1px;
    background: var(--accent-gold);
}

.duck-stage {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 32rem);
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    transform: none;
    touch-action: pan-y;
    isolation: isolate;
}

.duck-stage::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 86%;
    aspect-ratio: 1;
    left: 50%;
    top: 47%;
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    background: var(--hero-disc);
    transform: translate(-50%, -50%);
}

.duck-stage::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 52%;
    height: 1.35rem;
    left: 50%;
    bottom: 12%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    filter: blur(8px);
    transform: translateX(-50%);
}

.duck-stage-light {
    position: absolute;
    z-index: 1;
    width: 19rem;
    height: 19rem;
    left: -20%;
    top: -16%;
    border-radius: 50%;
    background: rgba(244, 196, 68, 0.16);
    filter: blur(72px);
    pointer-events: none;
}

html[data-theme="light"] .duck-stage-light {
    background: rgba(198, 142, 8, 0.12);
}

html[data-theme="light"] .duck-stage::after {
    background: rgba(58, 43, 10, 0.2);
}

.duck-stage canvas {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
}

.duck-stage-label {
    position: absolute;
    z-index: 4;
    top: 13%;
    right: 2%;
    padding: 0.38rem 0.62rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.55rem;
    color: var(--text-muted);
    background: var(--bg-main);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.duck-stage:focus-visible {
    outline-offset: 0.35rem;
}

/* Headings */
.display-title {
    max-width: 18ch;
    font-size: clamp(2.45rem, 4.3vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.section-desc {
    max-width: 42rem;
    margin-bottom: 2.25rem;
    font-size: 1.05rem;
}

.reveal-scroll {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
    transition:
        opacity 480ms ease-out,
        transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-scroll.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* Project carousel */
.carousel-tabs-row {
    display: flex;
    grid-template-columns: none;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.carousel-tab-btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.carousel-tab-btn.active {
    box-shadow: none;
}

.carousel-viewport,
.carousel-slide {
    border-radius: 1.4rem;
}

.carousel-slide {
    min-height: 31rem;
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: var(--shadow-soft);
}

.slide-preview-panel {
    min-height: 20rem;
    padding: 2rem 1.5rem;
    border-radius: 1.1rem;
    background: var(--bg-inset);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.slide-preview-panel:hover {
    border-color: var(--border-hover);
    box-shadow: none;
    transform: translateY(-2px);
}

.slide-title {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.12;
}

.slide-narrative {
    max-width: 39rem;
    margin-bottom: 1.4rem;
    line-height: 1.65;
}

.slide-chip {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 650;
}

.rail-card-body .slide-top-meta > div:first-child {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
}

.rail-card-body .slide-chip i {
    width: 1.05em;
    color: var(--accent-gold);
    text-align: center;
}

.project-features {
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 650;
}

.preview-title,
.project-wordmark {
    margin-bottom: 0.35rem;
    color: var(--accent-gold);
    font-family: var(--font-sans);
    font-size: clamp(1.65rem, 3vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.slide-action-btn {
    min-height: 44px;
    padding-block: 0.7rem;
}

html[data-theme="light"] .slide-index {
    color: #684800;
}

html[data-theme="light"] :is(#cases, #process, #contacts) .eyebrow {
    color: #684800;
}

.carousel-controls {
    margin-top: 1rem;
}

/* Approach rail */
.golden-rail-container {
    max-width: 67rem;
    margin-top: 2rem;
}

.rail-item-node {
    margin-bottom: 1.35rem;
}

.rail-card-body,
.rail-item-node.active .rail-card-body {
    padding: clamp(1.7rem, 3vw, 2.4rem);
    border-radius: 1.35rem;
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.rail-item-node.active .rail-card-body {
    border-color: var(--border-hover);
}

.rail-track-line {
    background: var(--border-color);
}

.rail-glow-progress {
    height: calc(100% - 4rem) !important;
    background: var(--accent-gold);
    box-shadow: none;
    transform: scaleY(0);
    transform-origin: center top;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.rail-item-node.active .rail-node-dot {
    box-shadow: none;
}

.rail-card-body .slide-preview-panel {
    min-height: 13.5rem;
}

/* Keep the hand-drawn process rhythm, but calm down the cards. */
.arthouse-pipeline-container {
    min-height: 52rem;
    margin-top: 2.5rem;
}

.arthouse-arrow-path {
    stroke-width: 2.2;
    opacity: 0.68;
    filter: none;
}

.arthouse-card {
    width: 46%;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.arthouse-card-1 { left: 1%; top: 1rem; transform: rotate(-0.7deg); }
.arthouse-card-2 { right: 1%; top: 8rem; transform: rotate(0.8deg); }
.arthouse-card-3 { left: 4%; top: 27rem; transform: rotate(-0.55deg); }
.arthouse-card-4 { right: 2%; top: 34rem; transform: rotate(0.75deg); }

.arthouse-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px) rotate(0deg) !important;
}

/* Stack content is useful information, so it stays visible without hover. */
.stack-hover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-block: 2.5rem 0;
}

.stack-hover-card {
    display: block;
    height: auto;
    min-height: 17rem;
    padding: 1.6rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-soft);
    cursor: default;
}

.stack-hover-card:hover,
.stack-hover-card:focus {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.card-default-content,
.stack-hover-card:hover .card-default-content,
.stack-hover-card:focus .card-default-content {
    align-items: flex-start;
    text-align: left;
    opacity: 1;
    transform: none;
}

.card-hover-content,
.stack-hover-card:hover .card-hover-content,
.stack-hover-card:focus .card-hover-content {
    position: relative;
    inset: auto;
    justify-content: flex-start;
    margin-top: 1.2rem;
    padding: 1.15rem 0 0;
    border-top: 1px solid var(--border-color);
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.card-tools-grid {
    justify-content: flex-start;
}

/* Contact card becomes a compact desktop panel instead of a long phone mockup. */
.cta-section {
    margin-bottom: 0;
    padding-block: clamp(5rem, 8vw, 7rem);
    overflow: hidden;
}

.tg-profile-container {
    max-width: 54rem;
    margin-top: 2rem;
}

.tg-profile-card {
    display: grid;
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
    border-radius: 1.4rem;
    box-shadow: var(--shadow-soft);
}

.tg-profile-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.tg-profile-banner {
    min-height: 100%;
    padding: 2.75rem 1.75rem;
    border-right: 1px solid var(--border-color);
}

.tg-profile-banner::before {
    width: 11rem;
    height: 11rem;
    top: 2rem;
    bottom: auto;
    border-radius: 50%;
    background: var(--accent-gold-light);
    animation: none;
}

.tg-avatar-wrapper {
    width: 7.5rem;
    height: 7.5rem;
}

.tg-profile-body {
    justify-content: center;
    padding: 2rem;
}

.tg-info-label {
    color: var(--text-muted);
}

.tg-info-value {
    color: var(--link-blue);
}

.tg-bottom-sticker {
    width: 4rem;
    height: 4rem;
    margin-top: 0;
}

footer {
    padding-block: 2.25rem;
    background: var(--bg-band);
    color: var(--text-muted);
}

.footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 1000px) {
    .hero-section > .shell {
        grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
        padding-right: 1.5rem;
        gap: 1rem;
    }

    .hero-title {
        font-size: clamp(2.75rem, 5.7vw, 4rem);
    }

    .duck-stage {
        width: min(100%, 27rem);
    }

    .stack-hover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 700px) and (min-width: 769px) {
    .hero-section {
        padding-block: 5.4rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.8rem, 4.3vw, 4rem);
    }

    .hero-subtitle {
        margin-bottom: 1.4rem;
    }

    .hero-note {
        display: none;
    }

    .hero-shape-one {
        left: 47%;
    }

    .duck-stage {
        width: min(100%, 24rem);
    }

}

@media (max-width: 768px) {
    .section {
        padding-block: 4.5rem !important;
    }

    #cases .section-bg-shapes .bg-interactive-shape:nth-child(3),
    #approach .section-bg-shapes .bg-interactive-shape:nth-child(3),
    #process .section-bg-shapes .bg-interactive-shape:nth-child(3),
    #stack .section-bg-shapes .bg-interactive-shape:nth-child(3) {
        display: none;
    }

    .hero-shape-one {
        left: 1rem;
        bottom: 1rem;
    }

    .hero-shape-two {
        right: 1rem;
        top: 5rem;
    }

    .hero-shape-one svg,
    .hero-shape-two svg {
        transform: scale(0.72) !important;
    }

    .navbar-pill {
        padding: 0.35rem 0.5rem !important;
    }

    .nav-collapsible {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        color: var(--text-main);
        background: var(--bg-card);
    }

    .mobile-nav-toggle:hover {
        border-color: var(--border-hover);
        color: var(--accent-gold);
    }

    .mobile-nav-panel {
        position: absolute;
        top: calc(100% + 0.6rem);
        inset-inline: 0;
        display: grid;
        gap: 0.25rem;
        padding: 0.5rem;
        border: 1px solid var(--line-strong);
        border-radius: 1rem;
        background: var(--bg-card);
        box-shadow: var(--shadow-soft);
    }

    .mobile-nav-panel a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding-inline: 0.85rem;
        border-radius: 0.7rem;
        color: var(--text-muted);
        font-size: 0.9rem;
        font-weight: 700;
    }

    .mobile-nav-panel a:hover,
    .mobile-nav-panel a:focus-visible {
        color: var(--text-main);
        background: var(--accent-gold-light);
    }

    .btn-nav-gold,
    .theme-toggle-btn {
        min-height: 44px;
    }

    .theme-toggle-btn {
        width: 44px !important;
        height: 44px !important;
    }

    .hero-section {
        min-height: auto !important;
        padding-top: 6.25rem !important;
        padding-bottom: 2.5rem !important;
    }

    .hero-section > .shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
        padding-inline: 1rem;
        padding-right: 1rem;
    }

    .hero-backdrop-ring {
        width: min(82vw, 20rem);
        right: 9%;
        top: 72%;
    }

    .hero-backdrop-line {
        width: 82%;
        right: 9%;
        top: 72%;
    }

    .hero-eyebrow {
        margin-bottom: 0.9rem;
        font-size: 0.7rem;
    }

    .hero-title {
        max-width: 100%;
        margin-bottom: 1rem !important;
        font-size: clamp(2.2rem, 10.5vw, 3.2rem) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.05em !important;
    }

    .hero-title > span {
        white-space: nowrap;
    }

    .hero-subtitle {
        max-width: 34rem;
        margin-bottom: 1.3rem !important;
        font-size: 0.96rem !important;
    }

    .hero-bottom-row {
        gap: 0.6rem !important;
    }

    .hero-note {
        margin-top: 1rem;
    }

    .duck-stage {
        position: relative;
        order: initial;
        top: auto;
        right: auto;
        width: min(100%, 25rem);
        margin-top: 0;
        transform: none;
    }

    .duck-stage::before {
        width: 79%;
        top: 45%;
    }

    .duck-stage::after {
        bottom: 14%;
    }

    .duck-stage-label {
        top: 12%;
        right: 5%;
    }


    main > .wavy-divider:first-of-type {
        height: 20px;
    }

    .display-title {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .section-desc {
        margin-bottom: 1.8rem;
        font-size: 0.98rem;
    }

    .carousel-tabs-row {
        margin-inline: -1rem;
        padding-inline: 1rem;
        scroll-padding-inline: 1rem;
    }

    .carousel-tab-btn {
        min-height: 44px;
        padding: 0.65rem 0.85rem !important;
        font-size: 0.78rem !important;
    }

    .carousel-slide {
        min-height: 0;
        padding: 1.5rem 1.15rem !important;
        gap: 1rem !important;
    }

    .slide-preview-panel {
        min-height: 12rem;
        padding: 1rem !important;
    }

    .slide-preview-lottie {
        width: 6rem;
        height: 6rem;
        margin-bottom: 0.5rem;
    }

    .golden-rail-container {
        padding-left: 2rem !important;
    }

    .rail-track-line,
    .rail-glow-progress {
        left: 0.55rem;
    }

    .rail-node-dot {
        left: -2rem !important;
        transform: translateX(calc(0.55rem - 50%));
    }

    .rail-item-node.active .rail-node-dot {
        transform: translateX(calc(0.55rem - 50%)) scale(1.3);
    }

    .rail-card-body,
    .rail-item-node.active .rail-card-body {
        padding: 1.25rem 1rem !important;
        gap: 0.75rem !important;
    }

    .rail-card-body .slide-preview-panel {
        min-height: 0;
        display: grid;
        grid-template-columns: 4rem minmax(0, 1fr);
        column-gap: 0.85rem;
        text-align: left;
    }

    .rail-card-body .slide-preview-lottie {
        width: 4rem;
        height: 4rem;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .arthouse-pipeline-container {
        min-height: auto;
        gap: 1rem !important;
        margin-top: 2rem;
    }

    .arthouse-card {
        min-height: 0;
        padding: 1.35rem 1.15rem !important;
        box-shadow: var(--shadow-soft);
    }

    .stack-hover-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.85rem !important;
        margin-top: 2rem;
    }

    .stack-hover-card {
        display: block;
        height: auto !important;
        min-height: 0;
        padding: 1.35rem 1.15rem !important;
    }

    .stack-hover-card .card-hover-content {
        position: relative !important;
        inset: auto !important;
        margin-top: 1rem !important;
        padding: 1rem 0 0 !important;
    }

    .tg-profile-container {
        max-width: 34rem;
    }

    .tg-profile-card {
        display: block;
        padding: 0 !important;
        border-radius: 1.25rem !important;
    }

    .tg-profile-banner {
        min-height: auto;
        padding: 2.3rem 1.25rem 1.8rem;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .tg-avatar-wrapper {
        width: 6.5rem;
        height: 6.5rem;
    }

    .tg-profile-body {
        padding: 1.25rem 1rem;
    }

    .tg-channel-box {
        min-height: 58px;
    }

    .cta-section {
        margin-bottom: 0;
        padding-block: 4.5rem !important;
    }
}

@media (max-width: 480px) {
    .brand-link {
        gap: 0.42rem;
    }

    .btn-nav-gold {
        padding-inline: 0.7rem !important;
    }

    .hero-bottom-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .btn-primary-gold,
    .btn-secondary-dark {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-note {
        font-size: 0.74rem;
    }

    .duck-stage {
        height: clamp(18.5rem, 96vw, 22rem);
    }

    .slide-top-meta {
        align-items: flex-start;
        gap: 0.5rem;
    }

    .slide-lottie-box {
        width: 3.5rem;
        height: 3.5rem;
    }

    .project-wordmark {
        overflow-wrap: anywhere;
    }
}

@media (hover: none) {
    .btn-primary-gold:hover,
    .btn-secondary-dark:hover,
    .btn-nav-gold:hover,
    .slide-preview-panel:hover,
    .arthouse-card:hover,
    .stack-hover-card:hover,
    .tg-profile-card:hover {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-scroll {
        opacity: 1;
        transform: none;
        will-change: auto;
    }

    .rail-glow-progress {
        transition: none;
        will-change: auto;
    }
}
