@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #070b13;
    --color-surface: #0d1524;
    --color-primary: #00f2fe;
    --color-primary-dark: #4facfe;
    --color-accent: #2f8cff;
    --color-text: #f8fbff;
    --color-text-dim: #9db1c9;
    --grad-primary: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    --glass-bg: rgba(7, 11, 19, 0.92);
    --glass-border: #243145;
    --glass-shadow: none;
    --glass-blur: blur(0);
    --radius-xl: 0;
    --radius-lg: 0;
    --radius-md: 0;
    --nav-height: 76px;
    --font-main: 'Space Grotesk', 'Inter', 'Plus Jakarta Sans', sans-serif;
    --kinetic-black: #070b13;
    --kinetic-muted: #111b2c;
    --kinetic-line: #243145;
    --kinetic-cyan: #00f2fe;
    --kinetic-blue: #4facfe;
    --kinetic-ink-on-accent: #03111c;
    --kinetic-fast: 24s;
    --kinetic-slow: 42s;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        var(--kinetic-black);
    background-size: 84px 84px;
    color: var(--color-text);
    font-family: var(--font-main);
    letter-spacing: 0;
}

body::before {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0,242,254,0.13) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(79,172,254,0.12) 0 1px, transparent 1px);
    background-size: 21px 21px, 29px 29px;
    inset: 0;
    mask-image: none;
    opacity: 0.28;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

body::after {
    background: none;
}

::selection {
    background: var(--kinetic-cyan);
    color: var(--kinetic-ink-on-accent);
}

#bio-grid-canvas,
.ambient-glow,
.parallax-bg-layer,
.med-hero-wave,
.scroll-pill {
    display: none !important;
}

.scroll-progress {
    background: var(--kinetic-cyan);
    box-shadow: none;
    height: 6px;
}

h1,
h2,
h3,
h4,
.nav-links a,
.btn-primary,
.btn-secondary,
button,
.product-section-heading span,
.blog-hero span,
.article-detail-meta span,
.filter-btn,
.view-btn {
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text);
    font-weight: 700;
    line-height: 0.88;
}

h1 {
    font-size: clamp(3rem, 9vw, 10rem);
}

h2 {
    font-size: clamp(2.6rem, 7vw, 7rem);
}

h3 {
    font-size: clamp(1.45rem, 3vw, 3rem);
}

p {
    color: var(--color-text-dim);
    font-size: clamp(1rem, 1.35vw, 1.35rem);
    line-height: 1.35;
}

a {
    color: var(--kinetic-cyan);
}

.text-gradient,
.heading-reveal.text-gradient span {
    background: none !important;
    color: var(--color-text) !important;
    -webkit-text-fill-color: var(--color-text) !important;
}

.main-nav {
    background: rgba(7, 11, 19, 0.94);
    border-bottom: 2px solid var(--kinetic-line);
    box-shadow: none;
}

.main-nav.is-scrolled {
    background: rgba(7, 11, 19, 0.98);
    border-color: var(--kinetic-cyan);
    box-shadow: none;
}

.nav-container {
    max-width: none;
    width: min(96vw, 1680px);
}

.brand-logo,
.main-nav .nav-logo {
    background: transparent !important;
    border: 0 !important;
    min-height: 58px;
    padding: 0 !important;
}

.brand-logo::before,
.brand-logo::after,
.main-nav .nav-logo::before,
.main-nav .nav-logo::after {
    content: none !important;
}

.brand-logo img,
.main-nav .nav-logo img,
footer .brand-logo img,
footer .nav-logo img {
    border: 2px solid var(--kinetic-line);
    height: 58px !important;
    max-width: 58px;
    object-fit: cover;
    width: 58px;
}

.nav-links {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 0;
    padding: 0;
}

.nav-links a,
#auth-nav-btn {
    border-left: 1px solid var(--kinetic-line);
    color: var(--color-text) !important;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 54px;
    padding: 1.05rem 1.05rem;
    transition: background 180ms linear, color 180ms linear, transform 180ms linear;
}

.nav-links a:hover,
.nav-links a.active,
#auth-nav-btn:hover {
    background: var(--kinetic-cyan);
    color: var(--kinetic-ink-on-accent) !important;
    transform: none;
}

#cart-trigger {
    background: transparent !important;
    border-left: 1px solid var(--kinetic-line);
    border-radius: 0 !important;
    color: var(--kinetic-cyan) !important;
    min-height: 54px;
    min-width: 54px;
}

#cart-count {
    background: var(--kinetic-cyan) !important;
    color: var(--kinetic-ink-on-accent) !important;
}

.kinetic-ticker {
    background: var(--kinetic-cyan);
    border-bottom: 2px solid var(--kinetic-line);
    border-top: 2px solid var(--kinetic-line);
    color: var(--kinetic-ink-on-accent);
    display: flex;
    font-size: clamp(1.25rem, 3vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.9;
    overflow: hidden;
    text-transform: uppercase;
    white-space: nowrap;
}

.kinetic-ticker span {
    animation: kineticMarquee var(--kinetic-fast) linear infinite;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2rem;
    padding: 0.7rem 1rem;
}

.kinetic-ticker.is-slow span {
    animation-duration: var(--kinetic-slow);
}

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

.page {
    max-width: none;
    padding-left: clamp(1rem, 3vw, 3rem);
    padding-right: clamp(1rem, 3vw, 3rem);
}

.med-hero-section {
    background: var(--kinetic-black);
    border-bottom: 2px solid var(--kinetic-line);
    min-height: 100vh;
}

.med-hero-section.page {
    padding-bottom: clamp(4rem, 8vw, 7rem);
    padding-top: calc(var(--nav-height) + clamp(3rem, 8vw, 7rem));
}

.med-hero-section .hero-layout {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    min-height: auto;
    overflow: visible;
    padding: 0;
    width: min(96vw, 1760px);
}

.med-hero-section .hero-layout::before {
    color: rgba(255,255,255,0.045);
    content: '2026';
    display: block;
    font-size: clamp(8rem, 24vw, 28rem);
    font-weight: 700;
    left: -2vw;
    line-height: 0.75;
    pointer-events: none;
    position: absolute;
    top: 10vh;
    z-index: -1;
}

.med-hero-section .hero-layout::after {
    background: var(--kinetic-cyan);
    content: '';
    display: block;
    height: clamp(12px, 1.5vw, 24px);
    left: 0;
    position: absolute;
    top: -2rem;
    width: clamp(140px, 18vw, 360px);
}

.med-hero-section .hero-title,
.hero-title-alt {
    display: grid;
    font-size: clamp(3.4rem, 10.5vw, 12.8rem);
    gap: 0;
    line-height: 0.78;
    margin-bottom: clamp(1.4rem, 2.2vw, 2.5rem);
    max-width: none;
    text-wrap: balance;
}

.hero-title-alt .hero-kicker-line,
.hero-title-alt .hero-brand-line,
.hero-title-alt .hero-era-line {
    color: var(--color-text) !important;
    white-space: nowrap;
}

.hero-title-alt .hero-brand-line {
    color: var(--kinetic-cyan) !important;
    font-size: 0.78em;
}

.hero-title-alt .hero-era-line {
    color: transparent !important;
    -webkit-text-stroke: 2px var(--color-text);
    -webkit-text-fill-color: transparent !important;
}

.hero-title .rubber-letter {
    line-height: 0.78;
}

.hero-copy {
    border-left: 6px solid var(--kinetic-cyan);
    color: var(--color-text-dim) !important;
    font-size: clamp(1.2rem, 1.9vw, 2rem) !important;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 2rem !important;
    max-width: 720px;
    padding-left: 1.25rem;
}

.hero-actions {
    align-items: stretch;
    flex-wrap: wrap;
}

.hero-media {
    align-self: center;
}

.hero-image-card {
    background: var(--kinetic-muted) !important;
    border: 2px solid var(--kinetic-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: clamp(360px, 56vh, 660px) !important;
    min-height: 340px;
}

.hero-image-card:hover {
    border-color: var(--kinetic-cyan) !important;
    transform: translate(-8px, -8px) !important;
}

.hero-image-card::after {
    background: linear-gradient(to top, rgba(7,11,19,0.92), transparent 45%) !important;
}

.carousel-indicators {
    background: var(--kinetic-black);
    border: 2px solid var(--kinetic-line);
    border-radius: 0;
}

.indicator-dot {
    background: var(--kinetic-line);
    border-radius: 0;
}

.indicator-dot.active {
    background: var(--kinetic-cyan);
    border-radius: 0;
    box-shadow: none;
}

.btn-primary,
.btn-secondary,
button.btn-primary,
button.btn-secondary,
.filter-btn,
.view-btn {
    align-items: center;
    border-radius: 0 !important;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 56px;
    padding: 0.95rem 1.45rem;
    transition: background 180ms linear, color 180ms linear, transform 180ms linear, border-color 180ms linear !important;
}

.btn-primary,
button.btn-primary {
    background: var(--kinetic-cyan) !important;
    border: 2px solid var(--kinetic-cyan) !important;
    box-shadow: none !important;
    color: var(--kinetic-ink-on-accent) !important;
}

.btn-primary *,
button.btn-primary * {
    color: var(--kinetic-ink-on-accent) !important;
}

.btn-primary:hover,
button.btn-primary:hover {
    background: var(--color-text) !important;
    border-color: var(--color-text) !important;
    color: var(--kinetic-ink-on-accent) !important;
    transform: scale(1.04) !important;
}

.btn-secondary,
button.btn-secondary {
    background: transparent !important;
    border: 2px solid var(--kinetic-line) !important;
    color: var(--color-text) !important;
}

.btn-secondary:hover,
button.btn-secondary:hover {
    background: var(--color-text) !important;
    border-color: var(--color-text) !important;
    color: var(--kinetic-ink-on-accent) !important;
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.95) !important;
}

.med-section {
    border-bottom: 2px solid var(--kinetic-line);
    overflow: clip;
    padding-bottom: clamp(5rem, 10vw, 9rem);
    padding-top: clamp(5rem, 9vw, 8rem) !important;
    position: relative;
}

.med-section::before {
    color: rgba(255,255,255,0.045);
    content: attr(id);
    font-size: clamp(6rem, 16vw, 18rem);
    font-weight: 700;
    left: clamp(1rem, 3vw, 3rem);
    letter-spacing: 0;
    line-height: 0.75;
    pointer-events: none;
    position: absolute;
    text-transform: uppercase;
    top: 1.5rem;
    z-index: -1;
}

.med-section > div[style*="text-align: center"],
.products-hero,
.blog-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: clamp(2rem, 5vw, 5rem) !important;
    padding: 0;
    text-align: left !important;
}

.med-section > div[style*="text-align: center"]::after,
.products-hero::after,
.blog-hero::after {
    display: none;
}

.med-section span,
.blog-hero span,
.product-section-heading span,
.product-eyebrow {
    color: var(--kinetic-cyan) !important;
    font-size: clamp(0.85rem, 1.4vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.product-section-heading h2,
.blog-hero h1,
.products-hero h1,
.med-section h2 {
    max-width: 10ch;
}

.glass-card,
.article-card,
.product-grid-item,
.featured-carousel-container,
.products-controls-bar,
.checkout-section,
.tracker-card,
.excellence-rail-grid,
.leadership-rail-grid {
    background: var(--kinetic-black) !important;
    border: 2px solid var(--kinetic-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--color-text) !important;
}

.glass-card:hover,
.article-card:hover,
.product-grid-item:hover,
.featured-carousel-container:hover,
.excellence-rail-item:hover,
.leadership-rail-item:hover {
    background: var(--kinetic-cyan) !important;
    border-color: var(--kinetic-cyan) !important;
    color: var(--kinetic-ink-on-accent) !important;
    transform: none !important;
}

.glass-card:hover *,
.article-card:hover *,
.product-grid-item:hover *,
.featured-carousel-container:hover *,
.excellence-rail-item:hover *,
.leadership-rail-item:hover * {
    color: var(--kinetic-ink-on-accent) !important;
    -webkit-text-fill-color: var(--kinetic-ink-on-accent) !important;
}

.article-card p,
.product-grid-item p,
.featured-carousel-content p,
.excellence-rail-item p,
.leadership-rail-item p {
    color: var(--color-text-dim) !important;
}

.bento-grid,
#blog-articles-grid {
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.bento-grid > *,
#blog-articles-grid > * {
    margin: -1px 0 0 -1px;
}

.article-card,
.glass-card {
    padding: clamp(1.5rem, 3vw, 3rem) !important;
}

.article-card span,
.article-detail-meta span:first-child {
    background: transparent !important;
    border: 2px solid var(--kinetic-line);
    border-radius: 0;
    color: var(--kinetic-cyan) !important;
    padding: 0.35rem 0.55rem;
}

#excellence > div[style*="grid-template-columns: 1.2fr 1fr"],
#careers > div[style*="grid-template-columns: 1fr 1fr"],
#contact > div[style*="grid-template-columns: 1fr 1.5fr"] {
    gap: clamp(2rem, 5vw, 5rem) !important;
}

#excellence .heading-reveal {
    font-size: clamp(3rem, 8vw, 9rem);
    max-width: 980px;
}

#excellence .heading-reveal span {
    display: block;
}

.ceo-portrait-container,
.leadership-avatar-wrapper {
    border: 2px solid var(--kinetic-line);
    border-radius: 0;
    box-shadow: none;
}

.ceo-portrait-container:hover,
.leadership-rail-item:hover .leadership-avatar-wrapper {
    border-color: var(--kinetic-cyan);
    box-shadow: none;
}

.ceo-details-overlay {
    background: var(--kinetic-cyan);
}

.ceo-details-overlay,
.ceo-details-overlay * {
    color: var(--kinetic-ink-on-accent) !important;
    -webkit-text-fill-color: var(--kinetic-ink-on-accent) !important;
}

.excellence-rail-grid,
.leadership-rail-grid {
    display: grid;
    gap: 0;
    overflow: visible;
}

.excellence-rail-item,
.leadership-rail-item {
    background: var(--kinetic-black);
    border-color: var(--kinetic-line) !important;
    padding: clamp(2rem, 4vw, 4rem);
}

.excellence-rail-item::before {
    background: var(--kinetic-cyan);
}

.excellence-rail-item i {
    color: var(--kinetic-cyan);
}

.leadership-avatar-wrapper {
    border-radius: 0;
}

.product-showcase {
    gap: clamp(3rem, 8vw, 8rem);
}

.product-showcase .product-feature {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 520px;
}

.product-feature::before {
    background: var(--kinetic-line);
    height: 2px;
    left: 0;
    opacity: 1;
    right: 0;
}

.product-copy h3,
.product-grid-item h3,
.featured-carousel-content h2 {
    color: var(--color-text) !important;
    font-size: clamp(2rem, 5vw, 6rem);
    letter-spacing: 0;
    line-height: 0.9;
}

.product-cutout,
.product-grid-item .grid-img-wrap,
.featured-carousel-image-wrap {
    background: var(--color-text) !important;
    border: 2px solid var(--kinetic-line);
    border-radius: 0 !important;
    box-shadow: none;
}

.product-meta span,
.product-price,
.grid-price,
.product-grid-item .grid-price,
.featured-carousel-tag {
    color: var(--kinetic-cyan) !important;
}

.products-controls-bar {
    align-items: center;
    gap: 1rem;
    padding: 1rem !important;
}

.filter-btn,
.view-btn {
    background: transparent;
    border: 2px solid var(--kinetic-line);
    color: var(--color-text);
}

.filter-btn:hover,
.filter-btn.active,
.view-btn:hover,
.view-btn.active {
    background: var(--kinetic-cyan);
    border-color: var(--kinetic-cyan);
    color: var(--kinetic-ink-on-accent);
}

.featured-carousel-arrow,
.featured-carousel-dots button {
    border-radius: 0;
}

.featured-carousel-arrow {
    background: var(--kinetic-black);
    border: 2px solid var(--kinetic-line);
    color: var(--kinetic-cyan);
}

.featured-carousel-arrow:hover {
    background: var(--kinetic-cyan);
    color: var(--kinetic-ink-on-accent);
}

.payment-input,
input,
select,
textarea {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid var(--kinetic-line) !important;
    border-radius: 0 !important;
    color: var(--color-text) !important;
    font-family: var(--font-main);
    min-height: 58px;
}

.payment-input:focus,
input:focus,
select:focus,
textarea:focus {
    background: transparent !important;
    border-bottom-color: var(--kinetic-cyan) !important;
    box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
    color: #40506a;
    text-transform: uppercase;
}

.article-page,
.blog-page,
.products-page {
    padding-top: calc(var(--nav-height) + 5rem) !important;
}

.article-detail-shell {
    max-width: min(92vw, 1120px);
}

.article-detail-shell > h1 {
    max-width: 11ch;
}

.article-detail-summary,
.article-body-text div[style*="border-left"],
.article-body-text blockquote,
.article-body-text div[style*="border: 1px"],
.article-body-text .article-note {
    background: var(--kinetic-muted) !important;
    border: 2px solid var(--kinetic-line) !important;
    border-left: 8px solid var(--kinetic-cyan) !important;
    border-radius: 0 !important;
    color: var(--color-text-dim) !important;
}

.article-body-text {
    color: var(--color-text);
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    line-height: 1.55;
    max-width: 860px;
}

.article-body-text h2,
.article-body-text h3,
.article-body-text h4 {
    color: var(--kinetic-cyan);
    letter-spacing: 0;
    text-transform: uppercase;
}

.article-body-text p,
.article-body-text li {
    color: var(--color-text-dim);
}

.article-body-text li {
    background: var(--kinetic-muted);
    border: 2px solid var(--kinetic-line);
    border-radius: 0;
}

.article-body-text li::before {
    background: var(--kinetic-cyan);
    border-radius: 0;
}

footer {
    background: var(--kinetic-cyan) !important;
    border-top: 2px solid var(--kinetic-line) !important;
    color: var(--kinetic-ink-on-accent) !important;
}

footer,
footer h4,
footer p,
footer a,
footer div {
    color: var(--kinetic-ink-on-accent) !important;
}

#ai-chat-trigger {
    background: var(--kinetic-cyan) !important;
    border: 2px solid var(--kinetic-line);
    border-radius: 0 !important;
    box-shadow: none !important;
}

#ai-chat-trigger i {
    color: var(--kinetic-ink-on-accent) !important;
}

#chatWindow,
#cart-sidebar {
    background: var(--kinetic-black) !important;
    border: 2px solid var(--kinetic-cyan) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--color-text) !important;
}

#chatWindow *,
#cart-sidebar * {
    color: var(--color-text);
}

body.admin-body {
    background: var(--kinetic-black);
    color: var(--color-text);
}

.admin-sidebar,
.admin-stat-card,
.admin-table-container,
.glass-panel,
.article-rich-editor,
.article-editor-toolbar {
    background: var(--kinetic-black) !important;
    border-color: var(--kinetic-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.admin-table tr:hover,
.nav-item:hover,
.nav-item.active {
    background: var(--kinetic-cyan) !important;
    color: var(--kinetic-ink-on-accent) !important;
}

.nav-item:hover *,
.nav-item.active * {
    color: var(--kinetic-ink-on-accent) !important;
}

.article-rich-editor {
    color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 1ms !important;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .med-hero-section .hero-layout,
    .product-feature,
    #excellence > div[style*="grid-template-columns: 1.2fr 1fr"],
    #careers > div[style*="grid-template-columns: 1fr 1fr"],
    #contact > div[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
    }

    .hero-title-alt .hero-brand-line {
        font-size: 0.68em;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: clamp(2.6rem, 16vw, 5rem);
    }

    h2 {
        font-size: clamp(2.2rem, 14vw, 4rem);
    }

    .med-hero-section .hero-title,
    .hero-title-alt {
        font-size: clamp(2.8rem, 17vw, 5.2rem);
    }

    .hero-title-alt .hero-brand-line {
        font-size: 0.56em;
    }

    .hero-actions,
    .article-detail-actions,
    .product-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .product-actions .btn-primary,
    .product-actions .btn-secondary {
        width: 100%;
    }
}

/* Requested kinetic refinement pass */
.main-nav {
    --nav-height: 92px;
}

.main-nav .nav-container {
    min-height: 92px;
}

.main-nav .brand-logo,
.main-nav .nav-logo {
    min-height: 88px;
    min-width: clamp(170px, 15vw, 260px);
}

.brand-logo img,
.main-nav .nav-logo img,
footer .brand-logo img,
footer .nav-logo img {
    background: transparent !important;
    border: 0 !important;
    height: clamp(68px, 5.8vw, 96px) !important;
    max-width: 260px !important;
    object-fit: contain !important;
    padding: 0 !important;
    width: auto !important;
}

.main-nav + .kinetic-ticker {
    margin-top: 92px;
}

#cart-trigger {
    align-items: center !important;
    align-self: stretch;
    display: inline-flex !important;
    justify-content: center !important;
    margin-left: 0 !important;
    min-height: 64px;
    min-width: 70px;
    padding: 0 1.1rem !important;
    position: relative !important;
}

#cart-trigger i {
    font-size: 1.35rem !important;
    line-height: 1;
}

#cart-count {
    border: 2px solid var(--kinetic-black);
    border-radius: 999px !important;
    height: 24px !important;
    right: 8px !important;
    top: 10px !important;
    width: 24px !important;
}

.med-hero-section.page {
    padding-top: clamp(4rem, 7vw, 7rem);
}

.med-hero-section .hero-layout {
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.72fr);
    isolation: isolate;
    max-width: 1680px;
}

.hero-text-area {
    max-width: min(820px, 54vw);
    position: relative;
    z-index: 3;
}

.med-hero-section .hero-title,
.hero-title-alt {
    font-size: clamp(3rem, 7.2vw, 8.8rem);
    max-width: 8.8ch;
    position: relative;
    z-index: 3;
}

.hero-title-alt .hero-kicker-line {
    white-space: normal;
}

.hero-title-alt .hero-brand-line {
    font-size: 0.72em;
    white-space: nowrap;
}

.hero-media {
    justify-self: end;
    max-width: min(680px, 42vw);
    position: relative;
    z-index: 1;
}

.hero-image-card {
    background: transparent !important;
}

.carousel-slide {
    background-color: transparent !important;
}

.product-cutout,
.product-grid-item .grid-img-wrap,
.featured-carousel-image-wrap {
    background: transparent !important;
    background-color: transparent !important;
}

.product-cutout::before,
.product-cutout::after,
.product-grid-item .grid-img-wrap::before,
.product-grid-item .grid-img-wrap::after,
.featured-carousel-image-wrap::before,
.featured-carousel-image-wrap::after {
    background: none !important;
}

.product-cutout img,
.product-grid-item .grid-img-wrap img,
.featured-carousel-image-wrap img {
    mix-blend-mode: normal !important;
}

#ai-chat-trigger,
#chatWindow {
    display: none !important;
}

@media (max-width: 1180px) {
    .med-hero-section .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-text-area,
    .hero-media {
        max-width: none;
        width: 100%;
    }

    .hero-media {
        justify-self: stretch;
    }

    .med-hero-section .hero-title,
    .hero-title-alt {
        max-width: 9ch;
    }
}

@media (max-width: 640px) {
    .main-nav + .kinetic-ticker {
        margin-top: 84px;
    }

    .brand-logo img,
    .main-nav .nav-logo img {
        height: 64px !important;
        max-width: 190px !important;
    }

    .main-nav .brand-logo,
    .main-nav .nav-logo {
        min-height: 82px;
        min-width: 150px;
    }

    .med-hero-section .hero-title,
    .hero-title-alt {
        font-size: clamp(2.8rem, 14vw, 5.2rem);
        max-width: 8.5ch;
    }
}

/* Hero carousel containment fix */
.med-hero-section {
    overflow-x: hidden;
}

.med-hero-section .hero-layout {
    gap: clamp(2rem, 3.2vw, 4.5rem) !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.82fr) !important;
    margin-left: auto;
    margin-right: auto;
    max-width: min(1540px, calc(100vw - clamp(2rem, 6vw, 6rem))) !important;
    width: 100% !important;
}

.hero-text-area {
    max-width: 760px !important;
    min-width: 0;
}

.hero-media {
    justify-self: stretch !important;
    max-width: none !important;
    min-width: 0;
    width: 100% !important;
}

.hero-image-card {
    aspect-ratio: 4 / 3;
    height: auto !important;
    max-height: 650px;
    min-height: 0 !important;
    width: 100% !important;
}

.hero-carousel-wrapper,
.hero-carousel-wrapper .carousel-slide {
    height: 100% !important;
    width: 100% !important;
}

@media (max-width: 1280px) {
    .med-hero-section .hero-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.74fr) !important;
    }

    .med-hero-section .hero-title,
    .hero-title-alt {
        font-size: clamp(3rem, 6.6vw, 7.4rem);
    }
}

@media (max-width: 1100px) {
    .med-hero-section .hero-layout {
        grid-template-columns: 1fr !important;
    }

    .hero-image-card {
        aspect-ratio: 16 / 10;
    }
}

/* Word-safe Medicienna hero tagline */
.med-hero-section {
    --hero-tagline-color: var(--color-text);
    --hero-tagline-muted: var(--color-text-dim);
    --hero-tagline-accent: var(--color-primary);
    --hero-tagline-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.med-hero-section .hero-tagline {
    color: var(--hero-tagline-color);
    font-size: clamp(2.15rem, 4vw, 3.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 clamp(1.4rem, 2.2vw, 2.5rem);
    max-width: min(860px, 100%);
    overflow-wrap: normal;
    position: relative;
    text-shadow: var(--hero-tagline-shadow);
    text-wrap: balance;
    word-break: normal;
    z-index: 3;
}

.med-hero-section .hero-tagline::before {
    background: var(--hero-tagline-accent);
    content: '';
    display: block;
    height: clamp(10px, 1.1vw, 18px);
    margin-bottom: clamp(1rem, 1.8vw, 1.6rem);
    width: clamp(140px, 18vw, 280px);
}

.med-hero-section .tagline-word {
    animation: taglineWordIn 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--word-delay, 0ms);
    display: inline-block;
    white-space: nowrap;
}

.med-hero-section .tagline-word-accent {
    color: var(--hero-tagline-accent);
}

.med-hero-section .hero-copy {
    color: var(--hero-tagline-muted) !important;
    text-shadow: var(--hero-tagline-shadow);
}

@keyframes taglineWordIn {
    from {
        opacity: 0;
        transform: translateY(0.55em) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .med-hero-section .hero-tagline {
        font-size: clamp(1.55rem, 7.8vw, 2.55rem);
        line-height: 1.08;
        margin-left: auto;
        margin-right: auto;
    }

    .med-hero-section .hero-tagline::before {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .med-hero-section .tagline-word {
        animation: none;
    }
}
/* Prevent decorative hero elements from creating horizontal page scroll */
html,
body,
#page-container,
.med-hero-section {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    html,
    body,
    #page-container,
    .med-hero-section {
        overflow-x: hidden;
    }
}
/* Keep decorative ambient glows from widening the page */
body > .ambient-glow {
    max-width: min(400px, 38vw) !important;
    right: 0 !important;
}

/* Landing section alignment and scale pass */
#insights,
#products,
#excellence,
#careers,
#contact {
    --section-heading-max: min(1040px, 100%);
}

.med-section::before {
    font-size: clamp(4.5rem, 12vw, 14rem);
    left: 50%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    top: clamp(1rem, 2vw, 2rem);
    transform: translateX(-50%);
    width: 100%;
    z-index: 0;
}

.med-section > * {
    position: relative;
    z-index: 1;
}

.med-section > div[style*="text-align: center"],
.product-section-heading {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: var(--section-heading-max);
    text-align: center !important;
}

.med-section > div[style*="text-align: center"] > span,
.product-section-heading > span {
    display: inline-block;
    margin-bottom: clamp(0.75rem, 1.4vw, 1.2rem);
}

.med-section > div[style*="text-align: center"] h2,
.product-section-heading h2 {
    font-size: clamp(3rem, 6.5vw, 7rem);
    line-height: 0.9;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(14ch, 100%);
    overflow-wrap: normal;
    text-align: center !important;
    text-wrap: balance;
    word-break: normal;
}

#insights > div[style*="text-align: center"] h2 {
    font-size: clamp(3.4rem, 8vw, 9rem);
    max-width: min(13ch, 100%);
}

#careers > div[style*="text-align: center"] h2 {
    max-width: min(17ch, 100%);
}

.med-section > div[style*="text-align: center"] p,
.product-section-heading p {
    color: var(--color-text-dim) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(660px, 100%);
    text-align: center !important;
}

#excellence > div[style*="grid-template-columns: 1.2fr 1fr"] {
    margin-left: auto;
    margin-right: auto;
    max-width: min(1320px, 100%);
}

#excellence > div[style*="grid-template-columns: 1.2fr 1fr"] .heading-reveal {
    font-size: clamp(2.8rem, 6vw, 7rem);
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(820px, 100%);
}

#excellence > div[style*="grid-template-columns: 1.2fr 1fr"] p {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(620px, 100%);
}

@media (max-width: 1280px) {
    #excellence > div[style*="grid-template-columns: 1.2fr 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    #excellence > div[style*="grid-template-columns: 1.2fr 1fr"] .heading-reveal,
    #excellence > div[style*="grid-template-columns: 1.2fr 1fr"] p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    #excellence > div[style*="grid-template-columns: 1.2fr 1fr"] > div:first-child > div {
        justify-content: center;
    }

    #excellence .ceo-portrait-container {
        margin-left: auto;
        margin-right: auto;
        max-width: min(560px, 100%);
    }

    #excellence > div[style*="grid-template-columns: 1.2fr 1fr"] > [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 900px) {
    .med-section::before {
        font-size: clamp(3.8rem, 17vw, 8rem);
        top: 1.25rem;
    }

    .med-section > div[style*="text-align: center"] h2,
    .product-section-heading h2 {
        font-size: clamp(2.45rem, 10.5vw, 5rem);
        max-width: 100%;
    }

}

@media (max-width: 520px) {
    .med-section > div[style*="text-align: center"] h2,
    .product-section-heading h2 {
        font-size: clamp(2rem, 11.5vw, 3.7rem);
        line-height: 0.95;
    }

    #insights > div[style*="text-align: center"] h2 {
        font-size: clamp(2.35rem, 12vw, 3.7rem);
        max-width: 100%;
    }

    .med-section > div[style*="text-align: center"] p,
    .product-section-heading p {
        font-size: 1rem;
        line-height: 1.45;
    }
}

/* Keep reveal-heading spans from inheriting the small eyebrow span scale */
#insights .heading-reveal,
#excellence .heading-reveal,
#products .product-section-heading h2,
#careers > div[style*="text-align: center"] h2,
#contact > div[style*="text-align: center"] h2 {
    color: var(--color-text) !important;
    font-size: clamp(3rem, 6.5vw, 7rem) !important;
    font-weight: 700;
    line-height: 0.9;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(14ch, 100%);
    text-align: center !important;
    text-transform: uppercase;
}

#careers > div[style*="text-align: center"] h2 {
    max-width: min(17ch, 100%);
}

#insights .heading-reveal > span,
#excellence .heading-reveal > span,
#careers > div[style*="text-align: center"] h2 > span,
#contact > div[style*="text-align: center"] h2 > span {
    color: var(--color-text) !important;
    display: inline-block;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-transform: inherit;
    -webkit-text-fill-color: var(--color-text) !important;
}

#excellence .heading-reveal > span {
    display: block;
}

@media (max-width: 900px) {
    #insights .heading-reveal,
    #excellence .heading-reveal,
    #products .product-section-heading h2,
    #careers > div[style*="text-align: center"] h2,
    #contact > div[style*="text-align: center"] h2 {
        font-size: clamp(2.45rem, 10.5vw, 5rem) !important;
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    #insights .heading-reveal,
    #excellence .heading-reveal,
    #products .product-section-heading h2,
    #careers > div[style*="text-align: center"] h2,
    #contact > div[style*="text-align: center"] h2 {
        font-size: clamp(2rem, 11.5vw, 3.7rem) !important;
        line-height: 0.95;
    }
}
