

:root {
    --bg: #0a1026;
    --surface: #141d38;
    --surface-light: #172344;

    --purple: #a78bfa;
    --cyan: #54e6ef;
    --pink: #ff6b9d;
    --lime: #c5ff4d;
    --teal: #20d6b5;

    --white: #f8f9ff;
    --muted: #b8c5e0;
    --border: rgba(167, 139, 250, 0.25);

    --accent: var(--purple);

    --heading-font: "Space Grotesk", sans-serif;
    --body-font: "Inter", sans-serif;
    --mono-font: "Space Mono", monospace;

    --container: 1152px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--body-font);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--purple);
    color: var(--bg);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    color: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 5px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    line-height: 1.08;
}

h1 {
    font-size: clamp(44px, 6.4vw, 82px);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(32px, 4.3vw, 56px);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 28px;
}

p {
    color: var(--muted);
}

.container {
    width: calc(100% - 128px);
    max-width: var(--container);
    margin-inline: auto;
}

.section-padding {
    padding-block: 90px;
}

.purple { color: var(--purple); }
.cyan { color: var(--cyan); }

.eyebrow {
    display: inline-block;
    font-family: var(--mono-font);
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0.07em;
    margin-bottom: 18px;
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading p {
    margin-top: 18px;
    max-width: 600px;
}



#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 16, 38, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}

.navbar {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    width: 155px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    position: relative;
    transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
}




.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 52px;
    padding: 14px 24px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 12px;
    font-weight: 700;

    position: relative;
    overflow: hidden;

    transition:
        transform 0.25s,
        box-shadow 0.25s,
        background 0.25s;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn:active {
    transform: scale(0.97);
}

.primary {
    background: var(--accent);
    color: var(--bg);
}

.primary:hover {
    box-shadow: 0 0 28px color-mix(
        in srgb, var(--accent) 45%, transparent
    );
}

.outline {
    border-color: var(--cyan);
    color: var(--cyan);
    background: transparent;
}

.outline:hover {
    background: rgba(84, 230, 239, 0.08);
}

.cyan-button {
    background: var(--cyan);
    color: var(--bg);
}

.lime-button {
    background: var(--lime);
    color: var(--bg);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}



.hero {
    min-height: 762px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    position: relative;
    padding-block: 65px 100px;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content p {
    font-size: 17px;
    max-width: 430px;
    margin-top: 24px;
}

.hero-visual {
    min-height: 570px;
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.portal-glow {
    position: absolute;
    width: 95%;
    aspect-ratio: 1;
    background: radial-gradient(
        circle,
        rgba(117, 70, 220, 0.36),
        transparent 68%
    );
    filter: blur(20px);
    z-index: -1;
    animation: breathe 5s ease-in-out infinite;
}

.orbit {
    position: absolute;
    width: 90%;
    aspect-ratio: 1;
    border: 1px solid var(--purple);
    border-radius: 50%;
    opacity: 0.55;
    z-index: -1;
}

.orbit-one {
    box-shadow:
        0 0 20px rgba(167, 139, 250, 0.35),
        inset 0 0 20px rgba(167, 139, 250, 0.15);
}

.orbit-two {
    width: 78%;
    border: 2px dashed var(--cyan);
    opacity: 0.35;
    animation: rotate-ring 35s linear infinite;
}

.orbit-three {
    width: 98%;
    border-style: dotted;
    animation: rotate-ring 50s linear infinite reverse;
}

.background-number {
    position: absolute;
    font-family: var(--heading-font);
    font-size: clamp(100px, 19vw, 250px);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(167, 139, 250, 0.16);
    z-index: -1;
}

.hero-animal {
    width: 112%;
    max-width: none;
    max-height: 580px;
    object-fit: contain;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5));
}

.parallax-animal {
    transform: translate3d(
        var(--move-x, 0px),
        var(--move-y, 0px),
        30px
    );
    transition: transform 0.18s ease-out;
}

.glass-panel {
    background: rgba(20, 29, 56, 0.75);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: 12px;
}

.specimen-label {
    position: absolute;
    bottom: 20px;
    right: 0;
    padding: 18px;
    transform: translateZ(45px);
}

.specimen-label h3 {
    font-size: 17px;
}

.specimen-label p {
    font-family: var(--mono-font);
    font-size: 10px;
    margin-top: 8px;
}

.specimen-label .eyebrow {
    margin-bottom: 8px;
}

.floating-label {
    font-family: var(--mono-font);
    font-size: 10px;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-status {
    position: absolute;
    top: 20px;
    right: 15px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39ed91;
    box-shadow: 0 0 12px #39ed91;
    animation: breathe 2s infinite;
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-block: 22px;
    border-top: 1px solid var(--border);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    font-family: var(--mono-font);
    font-size: 10px;
    color: var(--muted);
}

.hero-bottom strong {
    color: var(--cyan);
    font-size: 15px;
}

.hero-bottom a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-bottom svg {
    width: 14px;
    animation: bounce-arrow 1.5s infinite;
}



.experience {
    background: linear-gradient(
        180deg, var(--bg), #101832, var(--bg)
    );
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.experience-card {
    --card-accent: var(--cyan);

    background: linear-gradient(145deg, #172344, #10182e);
    border: 1px solid rgba(84, 230, 239, 0.2);
    border-radius: 16px;

    min-height: 310px;
    padding: 32px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    position: relative;
    overflow: hidden;
}

.experience-card.summon {
    --card-accent: var(--purple);
    background: linear-gradient(145deg, #2b2050, #151b35);
    border-color: rgba(167, 139, 250, 0.35);
}

.experience-card.enter {
    --card-accent: var(--teal);
    background: linear-gradient(145deg, #153b44, #111d30);
}

.large-icon {
    width: 48px;
    height: 48px;
    color: var(--card-accent);
    margin-bottom: 30px;
}

.experience-card .eyebrow {
    color: var(--card-accent);
    margin-bottom: 8px;
}

.experience-card h3 {
    font-size: 36px;
    margin-bottom: 14px;
}

.experience-card p {
    font-size: 14px;
    margin-bottom: 24px;
}

.experience-card a {
    margin-top: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--card-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}



.featured-panel {
    min-height: 540px;
    border-radius: 20px;
    border: 1px solid var(--cyan);

    background:
        linear-gradient(
            90deg,
            rgba(5, 12, 28, 0.97),
            rgba(5, 12, 28, 0.6) 38%,
            transparent 75%
        ),
        url("images/ocean.png") center / cover;

    display: flex;
    align-items: center;
    padding: 48px;

    position: relative;
    overflow: hidden;
}

.featured-content {
    max-width: 470px;
    position: relative;
    z-index: 2;
}

.featured-content p {
    margin-block: 20px 26px;
}

.specimen-tag {
    display: inline-block;
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--cyan);
    margin-top: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(84, 230, 239, 0.4);
    border-radius: 6px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tags span {
    font-family: var(--mono-font);
    font-size: 10px;
    padding: 7px 12px;
    background: rgba(10, 16, 38, 0.65);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.sonar {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 145px;
    aspect-ratio: 1;
    border: 1px solid var(--cyan);
    border-radius: 50%;

    background: repeating-radial-gradient(
        circle,
        transparent 0 22px,
        rgba(84, 230, 239, 0.3) 23px 24px
    );

    overflow: hidden;
}

.sonar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0deg 290deg,
        rgba(84, 230, 239, 0.55) 360deg
    );
    animation: rotate-ring 4s linear infinite;
}



.final-portal {
    min-height: 460px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 65px 20px;

    background:
        linear-gradient(
            var(--bg),
            rgba(10, 16, 38, 0.55),
            var(--bg)
        ),
        url("images/portal.png") center / cover;
}

.final-portal-content p {
    margin-block: 22px 28px;
}

#site-footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    min-height: 180px;
    padding-block: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 12px;
}

.footer-copy {
    font-size: 10px;
    color: var(--muted);
    padding-bottom: 24px;
}



.collection-intro {
    min-height: 762px;
    padding-block: 100px;
    background: radial-gradient(
        ellipse at 70% 30%,
        rgba(167, 139, 250, 0.16),
        transparent 60%
    );
}

.collection-intro p {
    max-width: 600px;
    margin-block: 24px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    padding: 35px;
    margin-block: 50px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.timeline-node {
    position: relative;
    padding-top: 30px;
    border-top: 2px solid var(--purple);
}

.timeline-node::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 0;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

.timeline-node h3 {
    font-size: 19px;
}

.timeline-node p {
    font-size: 12px;
    margin-block: 10px;
}

.specimen-section {
    min-height: 1000px;
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
    padding-block: 90px;
}

.specimen-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        ellipse at 70% 50%,
        color-mix(in srgb, var(--accent) 18%, transparent),
        transparent 65%
    );
}

.specimen-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 35px;
}

.specimen-section.reverse .specimen-content {
    order: 2;
}

.specimen-section.reverse .specimen-visual {
    order: 1;
}

.specimen-content h2 {
    font-size: clamp(35px, 4.6vw, 60px);
}

.specimen-content h3 {
    color: var(--accent);
    margin-top: 15px;
}

.specimen-content p {
    margin-top: 22px;
    max-width: 450px;
}

.specimen-content .btn {
    margin-top: 30px;
}

.specimen-visual {
    min-height: 570px;
    display: grid;
    place-items: center;
    position: relative;
}

.specimen-visual .orbit {
    border-color: var(--accent);
}

.specimen-visual img {
    position: relative;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    z-index: 2;
}

.specimen-number {
    position: absolute;
    top: 0;
    right: 0;
    font-family: var(--heading-font);
    font-size: 180px;
    font-weight: 700;
    opacity: 0.05;
}

.extinction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.extinction-card {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.extinction-card h3 {
    margin-bottom: 18px;
}

.collection-end {
    min-height: 1250px;
}

.collection-end .experience-grid {
    margin-top: 35px;
}

.progress-nav {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.progress-nav a {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #45506e;
    transition: 0.3s;
}

.progress-nav a.active {
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    transform: scale(1.5);
}




.detail-header {
    padding-block: 30px 40px;
}

.breadcrumb {
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--cyan);
    margin-bottom: 35px;
}

.detail-title-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: center;
}

.detail-title-row h1 {
    font-size: clamp(38px, 4.7vw, 60px);
}

.detail-title-row p {
    margin-top: 12px;
}

.classification {
    border-left: 1px solid var(--accent);
    padding-left: 30px;
    font-family: var(--mono-font);
    font-size: 11px;
}

.classification div {
    padding-block: 9px;
    border-bottom: 1px solid var(--border);
}

.viewer-panel {
    background: radial-gradient(
        ellipse at center,
        #32235d,
        #141d38 55%,
        #0d142b
    );

    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.viewer-layout {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: center;
    min-height: 510px;
}

.viewer-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-button {
    min-height: 62px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(10, 16, 38, 0.65);
    border: 1px solid var(--border);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    font-size: 9px;
    transition: 0.25s;
}

.tool-button:hover,
.tool-button.active {
    background: color-mix(
        in srgb, var(--accent) 18%, var(--bg)
    );
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.2);
}

.model-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
}

.model-stage::before {
    content: "";
    position: absolute;
    width: 80%;
    aspect-ratio: 1;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
}

model-viewer {
    width: 100%;
    height: 510px;
    background: transparent;
    --poster-color: transparent;
    z-index: 1;
}

.model-message {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    font-family: var(--mono-font);
    font-size: 10px;
    text-align: center;
    color: var(--muted);
    pointer-events: none;
    z-index: 2;
}

.specimen-data {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(10, 16, 38, 0.8);
}

.data-item {
    border-top: 1px solid var(--border);
    padding-block: 18px;
}

.data-item span {
    display: block;
    font-family: var(--mono-font);
    font-size: 10px;
    color: var(--muted);
}

.data-item strong {
    display: block;
    font-family: var(--heading-font);
    font-size: 24px;
    margin-top: 5px;
}

.xr-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 25px;
}

.xr-controls .btn {
    width: 100%;
}

.hotspot {
    background: var(--accent);
    color: var(--bg);
    border: 2px solid white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 0 14px var(--accent);
}

.hotspot[hidden] {
    display: none;
}

.anatomy-section {
    padding-block: 75px;
}

.anatomy-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.anatomy-image {
    min-height: 300px;
    border-radius: 16px;
    background: radial-gradient(
        ellipse, #2a2050, var(--bg)
    );
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;

}

.anatomy-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

.anatomy-info {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.anatomy-info h3 {
    margin-bottom: 16px;
}

.anatomy-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 25px;
}

.anatomy-tabs button {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: transparent;
    transition: 0.25s;
}

.anatomy-tabs button.active {
    background: var(--accent);
    color: var(--bg);
}

.habitat-panel {
    min-height: 420px;
    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--accent);
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.habitat-content {
    max-width: 530px;
}

.habitat-content h2 {
    font-size: 40px;
}

.habitat-content p {
    margin-block: 20px;
}

.vr-preview {
    background: rgba(10, 16, 38, 0.85);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.next-specimen {
    margin-block: 60px;
    padding: 28px 35px;
    min-height: 190px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);

    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.next-specimen img {
    width: 280px;
    height: 170px;
    object-fit: contain;
}

.next-specimen h2 {
    font-size: 35px;
}



.tilt-panel {
    transform-style: preserve-3d;
    transform:
        perspective(1200px)
        rotateX(var(--rotate-x, 0deg))
        rotateY(var(--rotate-y, 0deg));

    transition:
        transform 0.18s ease-out,
        box-shadow 0.3s;
}

.tilt-panel:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.22);
}

.experience-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(167, 139, 250, 0.15),
        transparent 45%
    );
}

.js-ready .reveal {
    opacity: 0;
    translate: 0 25px;
    transition: opacity 0.7s, translate 0.7s;
}

.js-ready .reveal.visible {
    opacity: 1;
    translate: 0 0;
}

@keyframes rotate-ring {
    to { transform: rotate(360deg); }
}

@keyframes breathe {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}




@media (max-width: 1023px) {

    .container {
        width: calc(100% - 64px);
    }

    .navbar {
        height: 76px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        min-height: 680px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .hero-animal {
        max-height: 430px;
    }

    .hero-bottom {
        flex-wrap: wrap;
    }

    .experience-grid {
        gap: 16px;
    }

    .experience-card {
        padding: 22px;
    }

    .featured-panel {
        padding: 32px;
    }

    .specimen-section {
        min-height: 850px;
    }

    .specimen-grid {
        gap: 20px;
    }

    .specimen-visual {
        min-height: 400px;
    }

    .viewer-layout {
        grid-template-columns: 1fr;
    }

    .viewer-toolbar {
        flex-direction: row;
        justify-content: center;
    }

    .tool-button {
        min-width: 65px;
    }

    .specimen-data {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .specimen-data > .eyebrow {
        grid-column: 1 / -1;
    }

    .habitat-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-nav {
        display: none;
    }

}


/* ========================================
   12. MOBILE — 393px
======================================== */

@media (max-width: 767px) {

    .container {
        width: calc(100% - 40px);
    }

    .section-padding {
        padding-block: 60px;
    }

    .navbar {
        height: 70px;
    }

    .logo {
        width: 130px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 30px;
        background: #111a35;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-block: 45px 30px;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-animal {
        width: 100%;
        max-height: 350px;
    }

    .hero-bottom {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        font-size: 9px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .specimen-label {
        padding: 12px;
    }

    .specimen-label h3 {
        font-size: 13px;
    }

    .experience-grid,
    .extinction-grid {
        grid-template-columns: 1fr;
    }

    .experience-card {
        min-height: 270px;
    }

    .featured-panel {
        min-height: 620px;
        padding: 25px;
        align-items: flex-end;

        background:
            linear-gradient(
                0deg,
                #071323 10%,
                rgba(7, 19, 35, 0.7) 50%,
                transparent 90%
            ),
            url("images/ocean.png") 70% center / cover;
    }

    .featured-content h2 {
        font-size: 38px;
    }

    .sonar {
        width: 80px;
        top: 20px;
        right: 20px;
        bottom: auto;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .collection-intro {
        min-height: auto;
        padding-block: 60px;
    }

    .timeline {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 25px;
    }

    .specimen-section {
        min-height: auto;
        padding-block: 65px;
    }

    .specimen-grid {
        grid-template-columns: 1fr;
    }

    .specimen-section.reverse .specimen-content,
    .specimen-section.reverse .specimen-visual {
        order: initial;
    }

    .specimen-visual {
        min-height: 330px;
    }

    .specimen-visual img {
        max-height: 370px;
    }

    .specimen-number {
        font-size: 120px;
    }

    .collection-end {
        min-height: auto;
    }

    .detail-title-row {
        grid-template-columns: 1fr;
    }

    .classification {
        padding-left: 15px;
    }

    .viewer-panel {
        padding: 12px;
    }

    .viewer-layout {
        gap: 12px;
    }

    .viewer-toolbar {
        gap: 5px;
    }

    .tool-button {
        min-width: 0;
        flex: 1;
        font-size: 8px;
    }

    model-viewer {
        height: 330px;
    }

    .specimen-data {
        padding: 12px;
        gap: 10px;
    }

    .data-item strong {
        font-size: 16px;
    }

    .xr-controls {
        gap: 7px;
    }

    .xr-controls .btn {
        padding: 12px 5px;
        font-size: 10px;
        flex-direction: column;
    }

    .anatomy-grid {
        grid-template-columns: 1fr;
    }

    .anatomy-info {
        min-height: 260px;
        padding: 24px;
    }

    .habitat-panel {
        padding: 25px;
    }

    .habitat-content h2 {
        font-size: 30px;
    }

    .vr-preview {
        width: 100%;
    }

    .next-specimen {
        padding: 25px;
    }

    .next-specimen h2 {
        font-size: 26px;
    }

    .next-specimen img {
        width: 110px;
    }

}

@media (prefers-reduced-motion: reduce) {

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .tilt-panel,
    .parallax-animal {
        transform: none !important;
    }

    .js-ready .reveal {
        opacity: 1;
        translate: none;
    }

}


/* ========================================
   COLLECTION HERO — FIGMA REDESIGN
======================================== */

.collection-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 788px;
    padding: 0;

    background: #0c1124;
}

.collection-hero-inner {
    position: relative;
    min-height: inherit;

    width: calc(100% - 120px);
    max-width: 1160px;

    display: flex;
    align-items: center;
}

.collection-hero-content {
    position: relative;
    z-index: 5;

    width: 670px;
    max-width: 58%;

    padding-top: 65px;
    padding-bottom: 40px;

    animation: collection-enter 0.9s ease both;
}


/* ========================================
   HERO TYPOGRAPHY
======================================== */

.collection-kicker {
    display: block;

    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 400;

    color: #e0e2ed;

    margin-bottom: 20px;
}

.collection-hero-content h1 {
    font-family: var(--heading-font);
    font-size: clamp(48px, 5.85vw, 76px);
    font-weight: 700;

    line-height: 1.16;
    letter-spacing: -1.5px;

    color: #ffffff;
}

.collection-hero-content h1 span {
    color: #a78bfa;
}

.collection-intro .collection-description {
    max-width: 470px;

    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;

    color: #dce0ec;

    margin-top: 28px;
    margin-bottom: 0;
}


/* ========================================
   OVERSIZED DINOSAUR ARTWORK
======================================== */

.collection-hero-art {
    position: absolute;

    top: 0;
    right: -8%;
    bottom: 40px;

    width: 59%;

    z-index: 1;
    pointer-events: none;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: dinosaur-enter 1.2s ease both;
}

.dino-layer {
    position: relative;

    width: 80%;
    height: 100%;

    display: grid;
    place-items: center;

    transform: translate3d(
        var(--hero-move-x, 0px),
        var(--hero-move-y, 0px),
        0
    );

    transition: transform 0.25s ease-out;
    will-change: transform;
}

.collection-dinosaur,
.dino-outline {
    grid-area: 1 / 1;

    width: 100%;
    max-width: none;
    height: 100%;

    object-fit: contain;
    object-position: center;
}

.collection-dinosaur {
    position: relative;
    z-index: 3;
}

/* Colored silhouette layers */

.dino-outline {
    position: relative;
    z-index: 1;

    filter: brightness(0) saturate(100%);
}

.outline-pink {
    filter:
        brightness(0)
        saturate(100%)
        invert(45%)
        sepia(90%)
        saturate(1800%)
        hue-rotate(300deg);

    transform:
        translate(-12px, -14px)
        rotate(-3deg)
        scale(1.035);

    animation: pink-contour 7s ease-in-out infinite;
}

.outline-cyan {
    filter:
        brightness(0)
        saturate(100%)
        invert(86%)
        sepia(52%)
        saturate(1800%)
        hue-rotate(130deg);

    transform:
        translate(-7px, 10px)
        rotate(2deg)
        scale(1.02);

    animation: cyan-contour 7s ease-in-out infinite;
}


/* ========================================
   TEMPORAL NAVIGATION PANEL
======================================== */

.temporal-panel {
    position: relative;

    width: 100%;
    max-width: 670px;

    margin-top: 60px;
    padding: 17px 30px 25px;

    background: #151c34;

    border: 1px solid #873dff;
    border-radius: 10px;

    transition:
        transform 0.2s ease-out,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.temporal-panel:hover {
    border-color: #bca1ff;

    box-shadow:
        0 0 30px rgba(135, 61, 255, 0.13),
        inset 0 0 30px rgba(135, 61, 255, 0.04);
}

.temporal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: #c4c9da;
    font-size: 9px;
    font-weight: 500;

    margin-bottom: 35px;
}

.temporal-track {
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.temporal-track::before {
    content: "";

    position: absolute;

    top: 8px;
    left: 8px;
    right: 8px;

    height: 2px;

    background: linear-gradient(
        90deg,
        #a78bfa 0%,
        #a78bfa 48%,
        #54e6ef 50%,
        #54e6ef 75%,
        #50a9e6 100%
    );
}

.temporal-point {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1;

    gap: 4px;

    transition: color 0.25s;
}

.temporal-point:nth-child(1) {
    align-items: flex-start;
    text-align: left;

    --point-color: #a78bfa;
}

.temporal-point:nth-child(2) {
    align-items: center;
    text-align: center;

    --point-color: #54e6ef;
}

.temporal-point:nth-child(3) {
    align-items: flex-end;
    text-align: right;

    --point-color: #50a9e6;
}

.temporal-dot {
    position: relative;
    z-index: 2;

    display: block;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: var(--point-color);

    margin-bottom: 8px;

    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.temporal-point strong {
    font-size: 11px;
    font-weight: 500;

    color: #f0f1f8;
}

.temporal-point small {
    font-size: 10px;

    color: #9ba5be;
}

.temporal-point:hover .temporal-dot {
    transform: scale(1.35);

    box-shadow:
        0 0 10px var(--point-color),
        0 0 25px var(--point-color);
}

.temporal-point:hover strong {
    color: var(--point-color);
}


/* ========================================
   SCROLL INDICATOR
======================================== */

.collection-scroll {
    position: absolute;

    right: 0;
    bottom: 38px;

    z-index: 6;

    display: flex;
    align-items: center;
    gap: 15px;

    font-size: 10px;
    font-weight: 400;

    color: #9ba5be;

    transition: color 0.25s;
}

.collection-scroll svg {
    width: 17px;
    height: 17px;

    animation: bounce-arrow 1.8s ease-in-out infinite;
}

.collection-scroll:hover {
    color: #54e6ef;
}


/* ========================================
   MICROANIMATIONS
======================================== */

@keyframes collection-enter {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dinosaur-enter {
    from {
        opacity: 0;
        transform: translateX(60px) scale(1.04);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes pink-contour {
    0%, 100% {
        transform:
            translate(-12px, -14px)
            rotate(-3deg)
            scale(1.035);
    }

    50% {
        transform:
            translate(-17px, -10px)
            rotate(-4deg)
            scale(1.04);
    }
}

@keyframes cyan-contour {
    0%, 100% {
        transform:
            translate(-7px, 10px)
            rotate(2deg)
            scale(1.02);
    }

    50% {
        transform:
            translate(-12px, 14px)
            rotate(3deg)
            scale(1.03);
    }
}


/* ========================================
   TABLET — 768px
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    .collection-intro {
        min-height: 700px;
    }

    .collection-hero-inner {
        width: calc(100% - 64px);
    }

    .collection-hero-content {
        max-width: 62%;
        padding-top: 20px;
    }

    .collection-hero-content h1 {
        font-size: 49px;
    }

    .collection-intro .collection-description {
        font-size: 15px;
        max-width: 350px;
    }

    .collection-hero-art {
        width: 64%;
        right: -15%;
        bottom: 100px;
    }

    .temporal-panel {
        margin-top: 40px;
        padding: 18px;
    }

    .temporal-point strong {
        font-size: 9px;
    }

    .temporal-point small {
        font-size: 8px;
    }

}


/* ========================================
   MOBILE — 393px
======================================== */

@media (max-width: 767px) {

    .collection-intro {
        min-height: auto;
    }

    .collection-hero-inner {
        width: calc(100% - 40px);

        display: block;

        padding-top: 45px;
        padding-bottom: 85px;
    }

    .collection-hero-content {
        width: 100%;
        max-width: 100%;

        padding: 0;
    }

    .collection-kicker {
        font-size: 10px;
        margin-bottom: 14px;
    }

    .collection-hero-content h1 {
        font-size: clamp(36px, 11vw, 48px);
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .collection-intro .collection-description {
        font-size: 14px;
        line-height: 1.6;

        margin-top: 18px;

        max-width: 310px;
    }

    .collection-hero-art {
        top: 240px;
        right: -15%;
        bottom: auto;

        width: 110%;
        height: 300px;
    }

    .temporal-panel {
        margin-top: 330px;

        padding: 16px 14px 20px;

        border-radius: 9px;
    }

    .temporal-header {
        font-size: 8px;
        margin-bottom: 25px;
    }

    .temporal-dot {
        width: 13px;
        height: 13px;
    }

    .temporal-track::before {
        top: 6px;
        left: 6px;
        right: 6px;
    }

    .temporal-point strong {
        font-size: 9px;
    }

    .temporal-point small {
        font-size: 8px;
    }

    .collection-scroll {
        bottom: 28px;
        font-size: 9px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .collection-hero-content,
    .collection-hero-art,
    .dino-outline,
    .collection-scroll svg {
        animation: none !important;
    }

    .dino-layer {
        transform: none !important;
    }

}



/* ========================================
   ANIMAL DETAILS — FIGMA HERO
======================================== */

.detail-header {
    position: relative;
    min-height: 780px;
    padding: 24px 0 80px;
}

.detail-header .breadcrumb {
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 400;
    color: #d0d4e1;
    margin-bottom: 0;
}

.detail-header .breadcrumb a {
    transition: color 0.25s;
}

.detail-header .breadcrumb a:hover {
    color: var(--accent);
}

.detail-hero {
    display: grid;
    grid-template-columns: 65% 35%;
    align-items: start;

    padding-top: 100px;
}


/* LEFT CONTENT */

.detail-hero-content {
    padding-top: 35px;
    position: relative;
    z-index: 2;

    animation: detail-text-enter 0.8s ease both;
}

.detail-kicker {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #d0d4e1;
    margin-bottom: 24px;
}

.detail-hero-content h1 {
    font-family: var(--heading-font);
    font-size: clamp(48px, 6.1vw, 80px);
    font-weight: 700;
    line-height: 1.23;
    letter-spacing: -1.5px;

    color: var(--accent);

    max-width: 730px;
    overflow-wrap: break-word;
}

.detail-hero-content p {
    max-width: 410px;
    font-size: 17px;
    line-height: 1.65;
    color: #d0d4e1;
    margin-top: 20px;
}


/* RIGHT CONTENT */

.detail-hero-right {
    position: relative;
    min-width: 0;
}

.detail-header .classification {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 170px;
    padding: 20px 0 20px 58px;

    border-left: 3px solid
        color-mix(in srgb, var(--accent) 45%, transparent);

    font-family: var(--mono-font);
    font-size: 13px;
    color: #d0d4e1;

    animation: detail-text-enter 1s ease both;
}

.detail-header .classification div {
    padding: 12px 0;
    border-bottom: none;
}


/* ANIMAL AND ORBITAL RINGS */

.detail-hero-visual {
    position: relative;

    width: 100%;
    height: 390px;

    display: grid;
    place-items: center;

    isolation: isolate;

    margin-top: 25px;

    animation: detail-animal-enter 1.1s ease both;
}

.detail-hero-animal {
    position: relative;
    grid-area: 1 / 1;

    width: 95%;
    height: 100%;
    max-height: 360px;

    object-fit: contain;

    z-index: 3;

    filter: drop-shadow(
        0 18px 22px rgba(0, 0, 0, 0.3)
    );
}

.detail-ring {
    position: absolute;

    width: 78%;
    aspect-ratio: 1;

    border-radius: 50%;

    pointer-events: none;
}

.ring-outer {
    border: 3px solid var(--accent);

    box-shadow:
        0 0 12px rgba(167, 139, 250, 0.25),
        inset 0 0 12px rgba(167, 139, 250, 0.15);

    animation: ring-pulse 5s ease-in-out infinite;
}

.ring-inner {
    width: 67%;
    border: 1px solid #54e6ef;
    opacity: 0.65;
}

.ring-glow {
    width: 90%;
    z-index: -1;

    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.08),
        transparent 70%
    );
}

.detail-hero-visual:hover {
    box-shadow: none;
}


/* SCROLL INDICATOR */

.detail-scroll {
    position: absolute;
    right: 0;
    bottom: 30px;

    display: flex;
    align-items: center;
    gap: 15px;

    font-size: 10px;
    color: #9ba5be;

    transition: color 0.25s;
}

.detail-scroll svg {
    width: 16px;
    height: 16px;

    animation: bounce-arrow 1.8s infinite;
}

.detail-scroll:hover {
    color: var(--accent);
}


/* HERO ANIMATIONS */

@keyframes detail-text-enter {
    from {
        opacity: 0;
        translate: -20px 0;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes detail-animal-enter {
    from {
        opacity: 0;
        scale: 0.94;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes ring-pulse {
    0%, 100% {
        opacity: 1;
        scale: 1;
    }

    50% {
        opacity: 0.7;
        scale: 1.025;
    }
}



/* ========================================
   ANATOMY DECODER — FIGMA REDESIGN
======================================== */

.anatomy-section {
    padding: 80px 0;
}


/* SECTION HEADING */

.anatomy-heading {
    display: grid;
    grid-template-columns: 65% 35%;
    align-items: end;

    margin-bottom: 80px;
}

.anatomy-kicker {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #c7ccdc;
    margin-bottom: 22px;
}

.anatomy-heading h2 {
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;

    color: #ffffff;
}

.anatomy-heading .anatomy-intro {
    max-width: 365px;

    font-size: 16px;
    font-style: italic;
    line-height: 1.65;

    color: #b8c5e0;
}


/* MAIN LAYOUT */

.anatomy-grid {
    display: grid;

    grid-template-columns: 49% 40%;
    justify-content: space-between;
    align-items: center;

    gap: 0;
    margin-top: 0;
}


/* IMAGE CONTAINER */

.anatomy-image {
    position: relative;

    width: 100%;
    min-height: 0;
    aspect-ratio: 1.01;

    border: none;
    border-radius: 76px;

    background: #151c34;

    display: grid;
    place-items: center;

    overflow: hidden;
    isolation: isolate;
}

.anatomy-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition:
        transform 0.25s ease-out,
        opacity 0.25s ease;
}

.anatomy-image:hover img {
    transform:
        translate3d(
            var(--move-x, 0px),
            var(--move-y, 0px),
            0
        )
        scale(1.035);
}

.anatomy-image:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}


/* INFORMATION — NO CARD OR BORDER */

.anatomy-info {
    min-height: 410px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;
}

.anatomy-copy {
    min-height: 260px;
}

#anatomy-number {
    display: block;

    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 400;

    color: #c7ccdc;

    margin-bottom: 44px;
}

#anatomy-title {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;

    color: #ffffff;

    margin-bottom: 28px;
}

#anatomy-description {
    max-width: 420px;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;

    color: #b8c5e0;
}


/* NUMBERED BUTTONS */

.anatomy-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;

    margin-top: 60px;
    padding: 0;
}

.anatomy-tabs button {
    display: grid;
    place-items: center;

    width: 74px;
    height: 54px;

    padding: 0;

    background: #a78bfa;
    color: #0c1124;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}

.anatomy-tabs button.active {
    background: #ff6b9d;
    color: #0c1124;

    box-shadow:
        0 0 18px rgba(255, 107, 157, 0.18);
}

.anatomy-tabs button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 20px rgba(167, 139, 250, 0.2);
}

.anatomy-tabs button:active {
    transform: scale(0.94);
}


/* CONTENT TRANSITION */

.anatomy-copy.changing {
    animation: anatomy-change 0.4s ease both;
}

@keyframes anatomy-change {
    from {
        opacity: 0;
        translate: 0 10px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}


/* ========================================
   TABLET — 768px
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    .detail-header {
        min-height: 650px;
        padding-bottom: 60px;
    }

    .detail-hero {
        grid-template-columns: 58% 42%;
        padding-top: 65px;
    }

    .detail-hero-content {
        padding-top: 25px;
    }

    .detail-hero-content h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .detail-hero-content p {
        font-size: 15px;
        max-width: 300px;
    }

    .detail-header .classification {
        min-height: 130px;
        padding-left: 24px;
        font-size: 10px;
    }

    .detail-hero-visual {
        height: 300px;
    }

    .detail-hero-animal {
        max-height: 280px;
    }


    /* ANATOMY */

    .anatomy-section {
        padding-block: 65px;
    }

    .anatomy-heading {
        grid-template-columns: 60% 40%;
        gap: 15px;
        margin-bottom: 45px;
    }

    .anatomy-heading h2 {
        font-size: 32px;
    }

    .anatomy-heading .anatomy-intro {
        font-size: 13px;
    }

    .anatomy-grid {
        grid-template-columns: 49% 44%;
    }

    .anatomy-image {
        border-radius: 45px;
    }

    .anatomy-info {
        min-height: 320px;
    }

    .anatomy-copy {
        min-height: 210px;
    }

    #anatomy-number {
        font-size: 10px;
        margin-bottom: 24px;
    }

    #anatomy-title {
        font-size: 29px;
        margin-bottom: 18px;
    }

    #anatomy-description {
        font-size: 14px;
    }

    .anatomy-tabs {
        gap: 12px;
        margin-top: 30px;
    }

    .anatomy-tabs button {
        width: 55px;
        height: 44px;
    }

}


/* ========================================
   MOBILE — 393px
======================================== */

@media (max-width: 767px) {

    .detail-header {
        min-height: auto;
        padding: 22px 0 80px;
    }

    .detail-header .breadcrumb {
        font-size: 9px;
        line-height: 1.6;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding-top: 45px;
        gap: 30px;
    }

    .detail-hero-content {
        padding-top: 0;
    }

    .detail-kicker {
        font-size: 10px;
        margin-bottom: 16px;
    }

    .detail-hero-content h1 {
        font-size: clamp(36px, 10.5vw, 46px);
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .detail-hero-content p {
        font-size: 14px;
        margin-top: 16px;
        max-width: 300px;
    }

    .detail-header .classification {
        min-height: auto;
        padding: 5px 0 5px 18px;
        font-size: 10px;
        border-left-width: 2px;
    }

    .detail-header .classification div {
        padding: 8px 0;
    }

    .detail-hero-visual {
        height: 320px;
        margin-top: 20px;
    }

    .detail-hero-animal {
        max-height: 310px;
        width: 90%;
    }

    .detail-ring {
        max-width: 270px;
    }

    .ring-inner {
        max-width: 230px;
    }

    .detail-scroll {
        bottom: 28px;
        font-size: 9px;
    }


    /* ANATOMY */

    .anatomy-section {
        padding-block: 60px;
    }

    .anatomy-heading {
        grid-template-columns: 1fr;
        gap: 16px;

        margin-bottom: 30px;
    }

    .anatomy-kicker {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .anatomy-heading h2 {
        font-size: 31px;
        line-height: 1.2;
    }

    .anatomy-heading .anatomy-intro {
        font-size: 13px;
        max-width: 100%;
    }

    .anatomy-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .anatomy-image {
        aspect-ratio: 1.01;
        border-radius: 40px;
    }

    .anatomy-info {
        min-height: auto;
        padding: 0;
    }

    .anatomy-copy {
        min-height: 190px;
    }

    #anatomy-number {
        font-size: 10px;
        margin-bottom: 22px;
    }

    #anatomy-title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    #anatomy-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .anatomy-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);

        gap: 14px;
        margin-top: 25px;
    }

    .anatomy-tabs button {
        width: 100%;
        height: 48px;
        border-radius: 8px;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .detail-hero-content,
    .detail-hero-visual,
    .detail-ring,
    .anatomy-copy.changing,
    .detail-scroll svg {
        animation: none !important;
    }

}


.anatomy-image {
    background: #151c34;
    overflow: hidden;
}

.anatomy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* ========================================
   EPOCH — XR EXPERIENCE BUTTONS
======================================== */

.xr-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
    width: 100%;
}

.xr-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;

    flex: 1 1 250px;
    min-height: 85px;
    padding: 20px 24px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-family: inherit;
    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Button text */

.xr-btn-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.xr-btn-content strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.xr-btn-content span {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

/* Icons */

.xr-btn svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    stroke-width: 1.6;
}

.xr-btn .xr-arrow {
    width: 18px;
    height: 18px;

    transition: transform 0.3s ease;
}

/* AR — Purple */

.xr-btn-ar {
    background: #A78BFA;
    color: #0C1124;
    border-color: #A78BFA;
}

.xr-btn-ar:hover {
    background: #BBA5FF;
    color: #0C1124;

    box-shadow:
        0 8px 30px rgba(167, 139, 250, 0.25);
}

/* VR — Cyan */

.xr-btn-vr {
    background: rgba(84, 230, 239, 0.035);
    color: #54E6EF;
    border-color: #54E6EF;
}

.xr-btn-vr:hover {
    background: rgba(84, 230, 239, 0.12);
    color: #54E6EF;

    box-shadow:
        0 8px 30px rgba(84, 230, 239, 0.15),
        inset 0 0 20px rgba(84, 230, 239, 0.05);
}

/* Hover movement */

.xr-btn:hover {
    transform: translateY(-4px);
}

.xr-btn:hover .xr-arrow {
    transform: translate(3px, -3px);
}

.xr-btn:active {
    transform: scale(0.97);
}

/* Animated light sweep */

.xr-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 80%
    );

    transform: translateX(-150%);
    transition: transform 0.7s ease;
}

.xr-btn:hover::before {
    transform: translateX(150%);
}

/* Keyboard accessibility */

.xr-btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 5px;
}

/* ========================================
   TABLET — 768px
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    .xr-actions {
        gap: 14px;
    }

    .xr-btn {
        padding: 16px 18px;
        min-height: 76px;
        gap: 12px;
    }

    .xr-btn-content strong {
        font-size: 13px;
    }

    .xr-btn-content span {
        font-size: 10px;
    }

    .xr-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   MOBILE — 393px
======================================== */

@media (max-width: 767px) {

    .xr-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .xr-btn {
        flex: none;
        width: 100%;
        box-sizing: border-box;
        min-height: 76px;
        padding: 16px 20px;
    }

    .xr-btn-content strong {
        font-size: 13px;
    }

    .xr-btn-content span {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .xr-btn,
    .xr-btn::before,
    .xr-btn .xr-arrow {
        transition: none;
    }

    .xr-btn:hover {
        transform: none;
    }
}


/* EPOCH — Immersive 3D specimen viewer */

.viewer-panel model-viewer {
    display: block;
    width: 100%;
    height: 620px;
    background: transparent;
    --progress-bar-color: #A78BFA;
    --progress-bar-height: 3px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .viewer-panel model-viewer {
        height: 480px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .viewer-panel model-viewer {
        height: 360px;
    }
}

.ar-modal[hidden] {
    display: none;
}

.ar-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(12, 17, 36, 0.75);
    backdrop-filter: blur(12px);
}

.ar-modal-panel {
    position: relative;
    width: min(420px, 90vw);
    box-sizing: border-box;
    padding: 40px;
    text-align: center;
    background: #0C1124;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 28px;
    color: white;
    box-shadow: 0 0 60px rgba(167, 139, 250, 0.12);
    animation: ar-popup-in 0.35s ease both;
}

.ar-eyebrow {
    color: #A78BFA;
    font-size: 10px;
    letter-spacing: 2px;
}

.ar-modal-panel h2 {
    font-size: 30px;
    margin: 20px 0 12px;
}

.ar-modal-panel p {
    color: #B8BED1;
    font-size: 14px;
    line-height: 1.7;
}

#ar-qr {
    width: fit-content;
    margin: 28px auto;
    padding: 16px;
    background: white;
    border-radius: 16px;
}

.ar-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.ar-compatibility {
    color: #54E6EF;
    font-size: 12px;
    letter-spacing: 2px;
}

@keyframes ar-popup-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.ar-modal-panel { max-height: 92dvh; overflow-y: auto; }
.ar-qr-link { display: block; color: var(--cyan); font-size: 12px; margin: 12px 0; text-decoration: underline; }
#ar-qr-status:empty { display: none; }
#ar-qr:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .ar-modal-panel { animation: none; } }

button.xr-btn { width:100%; text-align:left; font:inherit; }
