/* ========================================
   PORTFOLIO CSS - HEAVILY NESTED VERSION
   ======================================== */






/* ========================================
   FONTS & BASE STYLES
   ======================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&display=swap');

/* Custom Font Face */
@font-face {
    font-family: 'bebas_neueregular';
    src: url('../fonts/bebasneue-webfont.woff2') format('woff2'),
         url('../fonts/bebasneue-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Base HTML & Body */
html {
    scroll-behavior: smooth;
    background-color: var(--portfolio-gray);
    scrollbar-color: var(--portfolio-medium-gray) var(--portfolio-gray);
}

/* Strange Frontiers pages scroll without the smooth animation, so a refresh
   lands where you were instead of scrolling there from the top. html.sf-page
   is set by php/rpg/page-slide.php (and on the component library); personal.php
   keeps it in step with its Strange Frontiers pane */
html.sf-page {
    scroll-behavior: auto;
}

/* The component library link in the header shows on Strange Frontiers pages only */
html:not(.sf-page) .sf-components-link {
    display: none;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--portfolio-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--portfolio-medium-gray);
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: var(--portfolio-black);
    overflow-x: hidden;
}

/* Link Overrides */
a {
    color: inherit;
    text-decoration: inherit;
    
    &:hover {
        color: inherit;
        text-decoration: inherit;
    }
}






/* ========================================
   TYPOGRAPHY
   ======================================== */

/* Font Family Classes */
.title {
    font-family: 'bebas_neueregular';
}

.non-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

/* Font Size Classes */
.hero-title {
    font-size: 5rem;
}

.emphasis {
    font-size: 4rem;
}

.section-title {
    font-size: 3rem;
}

.sub-title {
    font-size: 2.25rem;
    font-weight: 300;
}

.copy-title {
    font-size: 1.5rem;
    font-weight: 300;
}

.copy {
    font-size: 1rem;
    font-weight: 300;
    
    /* Stinger Variants */
    &.stinger {
        color: white;
        padding: 12px;
        display: inline-block;
        
        &.red {
            background-color: var(--portfolio-red);
        }
        
        &.yellow {
            background-color: var(--portfolio-yellow);
            color: var(--portfolio-black);
        }
        
        &.blue {
            background-color: var(--portfolio-blue);
        }
        
        &.green {
            background-color: var(--portfolio-green);
            color: var(--portfolio-black);
        }
        
        &.black {
            background-color: var(--portfolio-black);
        }

        &.white {
            background-color: var(--portfolio-white);
            color: var(--portfolio-black);
        }
    }
}

.small-copy {
    font-size: .7rem;
    font-weight: 300;
}

/* Hero Statement */
.hero-statement {
    line-height: 1.15;
    display: none;
    transition: margin-top 750ms;
}

/* Strange Frontiers advert, below and right of the hero's down arrow */
.hero-statement {
    position: relative;
}

.hero-project {
    position: absolute;
    top: 100%;
    left: calc(50% + 48px);
    display: flex;
    flex-direction: column;
    padding: 15px 22px;
    background-color: var(--portfolio-black);
    color: var(--portfolio-white);
    text-decoration: none;
    white-space: nowrap;
    transform: rotate(-4deg);
    transform-origin: left top;
    transition: transform 200ms;

    &:hover, &:focus-visible {
        color: var(--portfolio-white);
        text-decoration: none;
        transform: rotate(-4deg) scale(1.05);
    }
}

.hero-project-lead {
    font-size: 1.25rem;
}

.hero-project-title {
    font-size: 2.5rem;
    color: var(--frontiers-green);
}

.higlight-text {
    font-weight: 500;
}

dl, ol, ul {
    padding-inline-start: 1rem;
}

.highlight-text {
    font-weight: 500;
}



/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Container */
.container {
    max-width: min(1920px, 100% - 120px);
    padding: 0;
}

/* Section Types */
.section {
    width: 100%;
    height: 98vh;
    position: relative;
    transition: blur 1s;
    
    .container {
        height: 98vh;
    }
    
    &.unlimited {
        height: auto;
        padding: 100px 0px;
        
        .container {
            height: auto;
        }
        
        &:last-child {
            padding-bottom: 0px;
        }
    }
}

.short-section {
    height: 75vh;
}

/* Section Clip */
.section-clip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: content-box;
    z-index: 1;
}

/* Hero Section */
.hero {
    background-image: url("../img/hero.webp");
    background-size: cover;
}

/* Footer */
.footer {
    height: auto;
    min-height: 5vh;
    padding: 20px 60px 0 60px;
    background-color: var(--portfolio-gray);
    position: relative;
}

.footer-legal {
    align-self: center;
    padding: 12px 0 20px;
    font-size: .6rem;
    opacity: .7;
}

/* Separator & Breakout */
.separator {
    height: 100px;
    width: 100%;
}

.breakout {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

strong {
    font-weight: 600;
}

hr {
    width: 100%;
}
.gray-bg hr, .black-bg hr {
    border-top: 1px solid rgb(255 255 255 / 25%);
}





/* ========================================
   FLEX UTILITIES
   ======================================== */

/* Flex Basis Classes */
.flex-1 { flex: 1; min-width: 5.555%; }
.flex-2 { flex: 2; min-width: 11.111%; }
.flex-3 { flex: 3; min-width: 16.666%; }
.flex-4 { flex: 4; min-width: 22.222%; }
.flex-5 { flex: 5; min-width: 27.777%; }
.flex-6 { flex: 6; min-width: 33.333%; }
.flex-7 { flex: 7; min-width: 38.888%; }
.flex-8 { flex: 8; min-width: 44.444%; }
.flex-9 { flex: 9; min-width: 50%; }
.flex-10 { flex: 10; min-width: 55.55%; }
.flex-11 { flex: 11; min-width: 61.111%; }
.flex-12 { flex: 12; min-width: 66.66%; }
.flex-13 { flex: 13; min-width: 72.222%; }
.flex-14 { flex: 14; min-width: 77.777%; }
.flex-15 { flex: 15; min-width: 83.333%; }
.flex-16 { flex: 16; min-width: 88.888%; }
.flex-17 { flex: 17; min-width: 94.4444%; }
.flex-18 { flex: 18; min-width: 100%; }

/* Flex Alignment */
.justify-center {
    justify-content: center;
}

.flex-gap-4 {
    gap: 4px;
}

.flex-gap-12 {
    gap: 12px;
}

.flex-gap-24 {
    gap: 24px;
}

.flex-gap-48 {
    gap: 48px;
}

.row-gap-12 {
    row-gap: 12px;
}






/* ========================================
   INTERACTIVE ELEMENTS
   ======================================== */

/* Content Buttons */
.content-btn {
    min-width: 300px;
    min-height: 65px;
    border-radius: 50px;
    border: 3px solid white;
    
    &:hover {
        background-color: white;
    }
    
    &.inverse {
        border: 3px solid var(--portfolio-black);
        
        &:hover {
            background-color: var(--portfolio-black);
        }
    }
}

/* Button Hover States by Background */
.red-bg .content-btn:hover .title {
    color: var(--portfolio-red) !important;
}

.blue-bg .content-btn:hover .title {
    color: var(--portfolio-blue) !important;
}

.yellow-bg .content-btn:hover .title {
    color: var(--portfolio-yellow) !important;
}

.green-bg .content-btn:hover .title {
    color: var(--portfolio-green) !important;
}

.black-bg .content-btn:hover .title {
    color: var(--portfolio-black) !important;
}

/* Slide Animations */
.pre-slide-in {
    margin-top: -25px;
}

.post-slide-in {
    margin-top: 0px;
}

/* Down Arrow */
.down-arrow {
    display: block;
    margin: 0 auto;
    margin-top: 40px;
    cursor: pointer;
    position: relative;
    animation: bounce 3s infinite ease;
}

.arrow-point {
    position: relative;
    animation: small-bounce 3s infinite ease;
    animation-delay: .1s;
}






/* ========================================
   Z-INDEX UTILITIES
   ======================================== */

.z-0 { z-index: 0 !important; }
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.z-3 { z-index: 3 !important; }
.z-4 { z-index: 4 !important; }






/* ========================================
   NAVIGATION
   ======================================== */

/* Logo Bug */
.logo-bug {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    flex: 0 0 70px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 13px;
    font-family: 'bebas_neueregular';
    font-size: 3rem;
    line-height: 70px;
    background-color: var(--portfolio-red);
    color: white;
    text-align: center;
    position: fixed;
    top: 40px;
    left: 60px;
    cursor: pointer;
    transition: background-color .5s, margin-top 750ms !important;
    
    /* Background-specific styling */
    .red-bg &, .blue-bg &, .black-bg &, .gray-bg & {
        background-color: var(--portfolio-white);
    }
    
    .yellow-bg &, .green-bg &, .white-bg & {
        background-color: var(--portfolio-black);
    }
    
    .red-bg & {
        color: var(--portfolio-red);
    }
    
    .yellow-bg & {
        color: var(--portfolio-yellow);
    }
    
    .green-bg & {
        color: var(--portfolio-green);
    }
    
    .blue-bg & {
        color: var(--portfolio-blue);
    }

    .black-bg &, .gray-bg & {
        color: var(--portfolio-black);
    }
}

/* Section Colors */
.red-section, .blue-section, .black-section {
    color: var(--portfolio-white) !important;
}

.yellow-section, .green-section, .white-section {
    color: var(--portfolio-black);
}

/* Social Links */
.social-link {
    height: 35px;
    width: 35px;
    border-radius: 50%; 
    background-color: var(--portfolio-red);
    display: inline-flex;
    margin-left: 20px;
    padding: 7px;
    cursor: pointer;
    
    svg {
        fill: white;
        width: 100%;
        height: 100%;
    }
    
    /* Section-specific styling */
    .yellow-section &, .green-section & {
        background-color: var(--portfolio-black);
    }
    
    .red-section & svg {
        fill: var(--portfolio-red);
    }
    
    .yellow-section & svg {
        fill: var(--portfolio-yellow);
    }
    
    .blue-section & svg {
        fill: var(--portfolio-blue);
    }
    
    .green-section & svg {
        fill: var(--portfolio-green);
    }

    .black-bg & svg,
    .gray-bg & svg {
        fill: var(--portfolio-black);
    }
}

/* Scroll Links */
.scroll-links {
    position: fixed;
    top: 155px;
    left: 60px;
    font-family: 'bebas_neueregular';
    font-size: 1.75rem;
    letter-spacing: 1px;
    color: var(--portfolio-black);
    cursor: pointer;
    transition: margin-top 750ms;
    
    div {
        transition: color .5s, padding-left .2s;
        position: relative;
        padding-left: 0px;
        
        &:hover {
            padding-left: 10px;
        }
    }
}

/* About Social Container */
.about-social-container {
    position: fixed;
    top: 32px;
    right: 60px;
    display: flex;
    display: none;
    justify-content: center;
    transition: margin-top 750ms;
    z-index: 1;
}

.about-me {
    font-family: 'bebas_neueregular';
    font-size: 1.75rem;
    letter-spacing: 1px;
    color: var(--portfolio-red);
    display: inline-flex;
    margin-left: 35px;
    line-height: 35px;
    cursor: pointer;
}

/* Section Navigation Variants */
.section-logo-bug {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    flex: 0 0 70px;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'bebas_neueregular';
    font-size: 3rem;
    line-height: 70px;
    color: white !important;
    text-align: center;
    position: fixed;
    top: 40px;
    left: 60px;
    cursor: pointer;
    z-index: 1;

    &.white-bg {
        color: var(--portfolio-black) !important;
    }
}

.section-scroll-links {
    position: fixed;
    top: 155px;
    left: 60px;
    font-family: 'bebas_neueregular';
    font-size: 1.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 2;
    
    div {
        padding-left: 0px;
        transition: padding-left .3s;
        
        &:hover {
            padding-left: 10px;
        }
    }
}

.section-about-social-container {
    position: fixed;
    top: 32px;
    right: 60px;
    display: flex;
    width: max-content;
    flex: none;
    justify-content: center;
    transition: margin-top 750ms;
    z-index: 2;
}

.section-about-me {
    font-family: 'bebas_neueregular';
    font-size: 1.75rem;
    letter-spacing: 1px;
    display: inline-flex;
    margin-left: 35px;
    line-height: 35px;
    z-index: 2;
    cursor: pointer;
    color: white;
    
    .yellow-section & {
        color: var(--portfolio-black);
    }
    
    .green-section & {
        color: var(--portfolio-black);
    }
}

.section-social-link {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    display: inline-flex;
    margin-left: 20px;
    padding: 7px;
    cursor: pointer;
    z-index: 2;
}

/* Navigation Bullet */
.nav-bullet {
    width: 0;
    position: absolute;
    display: inline-block;
    left: -18px;
}






/* ========================================
   MODALS & OVERLAYS
   ======================================== */

.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: none;
    background-color: rgba(255, 255, 255, .94);
}

#about-section {
    height: 100vh;
}

.close-x {
    height: 35px;
    width: 35px;
    position: fixed;
    top: 40px;
    right: 60px;
    cursor: pointer;
    animation: bounce 3s infinite ease;
    transition: margin-top .5s;
}

/* Keep About Me / close as <button> without changing their look.
   Only strip UA button chrome — do not override class typography/color. */
button.about-me,
button.section-about-me,
button.close-x {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

button.close-x {
    display: block;
}

button.close-x svg {
    display: block;
    width: 100%;
    height: 100%;
}






/* ========================================
   ANIMATIONS
   ======================================== */

/* Repaint Animation */
.repaint {
    animation: repaint 100ms;
}

/* Bounce Animations */
@keyframes bounce {
    0%   {transform: translate(0px, 0%);}
    80%  {transform: translate(0px, 0%);}
    90%  {transform: translate(0px, 10%);}
    100% {transform: translate(0px, 0%);}
}

@keyframes small-bounce {
    0%   {transform: translate(0px, 0%);}
    80%  {transform: translate(0px, 0%);}
    90%  {transform: translate(0px, 5%);}
    100% {transform: translate(0px, 0%);}
}

@keyframes repaint {
    from { opacity: 0.999; }
    to { opacity: 1; }
}

/* Blur Effect */
.add-blur {
    filter: blur(5px);
}






/* ========================================
   IMAGES & GALLERIES
   ======================================== */

/* Image Viewer */
.is-zoomable {
    cursor: zoom-in;
}

html.image-modal-open {
    overflow: hidden;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    background: rgba(0, 0, 0, .75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;

    &.is-open {
        opacity: 1;
        visibility: visible;
        transition: opacity .2s ease, visibility 0s;
    }
}

.image-modal-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.image-modal-close {
    appearance: none;
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--portfolio-white);
    color: var(--portfolio-black);
    cursor: pointer;
}

/* Feature Images */
.feature {
    width: 100%;
    max-width: 960px;
    
    .d-flex {
        flex-grow: 1;
    }
}

/* UX Splash */
.ux-splash {
    width: 298px;
    height: auto;
    position: relative;
    display: inline-block;
    margin-left: -3px;
}

/* Mobile Proto */
.mobile-proto-container {
    display: none !important;
}

.splash-proto-container {
    display: inline-flex !important;
}

.splash-proto {
    width: 299px;
    height: 580px;
    position: absolute;
    padding: 0px 19px;
    object-fit: cover;
    overflow: hidden;
    margin-right: -5px;
    
    img {
        width: 100%;
        height: auto;
        object-fit: cover;
        top: 46px;
        position: relative;
        animation: proto-scroll 5s infinite ease;
        animation-delay: .1s;
    }
}

/* Proto Scroll Animation */
@keyframes proto-scroll {
    0%   {top: 46px;}
    15%   {top: 46px;}
    40%  {top: -270px;}
    45%  {top: -270px;}
    70%  {top: -540px;}
    80%  {top: -540px;}
    100% {top: 46px;}
}

/* Thumb Scroll */
.thumb-scroll {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    background-color: blue;
    border: 2px solid blue;
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 200px;
    opacity: .5;
    animation: thumb-scroll 5s infinite ease;
    animation-delay: .1s;
}

@keyframes thumb-scroll {
    0%   {top: 400px; opacity: 0;}
    9%   {opacity: 0;}
    15%   {top: 400px; opacity: .5;}
    40%  {top: 125px; opacity: .5;}
    42% {top: 125px; opacity: 0;}
    43% {opacity: 0;}
    45%  {top: 400px; opacity: .5;}
    70%  {top: 125px; opacity: .5;}
    72%  {opacity: 0;}
    77%  {opacity: 0;}
    80% {top: 50px; opacity: .5;}
    85% {opacity: .5;}
    87% {top: 475px; opacity: 0;}
    100% {top: 475px; opacity: 0;}
}

/* Shadow Splash */
.shadow-splash {
    width: 290px;
    height: 602px;
    display: inline-block;
    left: 0;
    top: -10px;
    border-radius: 40px;
}

/* Full-width image */
.full-width-image {
    width: 100%;
    height: auto;
    position: relative;
    display: inline-block;
    border-radius: 8px;
}

/* Headshot */
.headshot {
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
    height: 300px;
    width: 300px;
}

/* Warning GIF */
img.warning-gif {
    height: 30px;
    width: auto;
    position: relative;
    top: -3px;
    margin-right: 10px;
}






/* ========================================
   GALLERY CONTAINERS
   ======================================== */

/* Meazure Gallery */
.meazure-gallery-container {
    height: auto;
    padding: 40px 60px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    
    .meazure-gallery {
        max-width: 1620px;
        display: flex;
        align-items: center;
        justify-content: center;
        column-gap: 40px;
    }
    
    .m-g-laptop {
        width: 66%;
        display: inline-block;
    }
    
    .m-g-mobile-container {
        display: flex;
        column-gap: 40px;
    }
    
    .m-g-mobile {
        width: calc(50% - 20px);
        display: inline-block;
    }
}

/* Examity Gallery */
.examity-gallery-container {
    height: auto;
    padding: 40px 60px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    
    .examity-gallery {
        width: 100%;
        max-width: 2560px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr 1fr;
        gap: 20px;
    }
    
    .e-g-item {
        aspect-ratio: 8 / 6;
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
}

/* QuantHub Learner Reflow Gallery */
.reflow-gallery-container {
    height: auto;
    padding: 40px 60px;
    overflow: hidden;
    display: flex;
    justify-content: center;

    .reflow-gallery {
        width: 100%;
        max-width: 2560px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }
}

/* Supertheme Gallery */
.supertheme-gallery-container {
    height: 500px;
    margin-top: 100px;
    overflow: hidden;
}

.supertheme-gallery {
    width: 33.333vw;
    height: 500px;
    float: left;
    background-attachment: fixed;
    background-position: center center;
    background-size: 33.333vw auto; 
}

/* Mindmap Gallery */
.mindmap-gallery-container {
    height: 500px;
    margin-top: 100px;
    overflow: hidden;
}

.mindmap-gallery {
    width: 100%;
    height: 500px;
    float: left;
    background-attachment: fixed;
    background-position: center center;
    background-size: 100% auto; 
}

/* Pendo / static screenshot gallery */
.pendo-gallery-container {
    margin-top: 100px;
    overflow: hidden;
}

.pendo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.pendo-gallery-item {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ai-logo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40% 15%;
    padding: 2rem;
    width: 100%;
    align-items: center;
    justify-items: center;

    svg {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        fill: var(--portfolio-blue);

        &.ai-logo-color {
            fill: unset;
        }

        &.cursor-logo,
        &.openai-logo {
            fill: #1f2122;
        }
    }
}

/* Portfolio Gallery */
.portfolio-gallery-container {
    margin-left: -20px;
}

.portfolio-gallery {
    width: calc(20vw - 16px);
    height: auto;
    float: left;
    margin: 0 0 0 20px;
    border-radius: 20px;
}

/* Preparedness Gallery */
.preparedness-gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    row-gap: 40px;
}

.preparedness-gallery {
    display: grid;
    gap: 40px;
}

/* Email Gallery */
.email-gallery-container {
    row-gap: 40px;
    
    .email-gallery {
        gap: 40px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        
        img {
            width: 100%;
            border-radius: 8px;
        }
    }
}

/* Proto Colors */
.proto-colors-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-top: 24px;
    
    .proto-colors {
        aspect-ratio: 1/1;
        width: 100%;
        border-radius: 50%;
        
        &.red {
            background-color: var(--portfolio-red);
        }
        
        &.yellow {
            background-color: var(--portfolio-yellow);
        }
        
        &.blue {
            background-color: var(--portfolio-blue);
        }
        
        &.green {
            background-color: var(--portfolio-green);
        }
        
        &.black {
            background-color: var(--portfolio-black);
        }
        
        &.white {
            background-color: var(--portfolio-white);
            border: 1px solid var(--portfolio-black);
        }
    }
}

/* Gallery Utilities */
.gallery-top {
    background-position: center 0%;
}






/* ========================================
   MOCKUPS & BROWSER FRAMES
   ======================================== */

/* Mobile & Tablet Mocks */
.mobile-mock {
    height: 400px;
    width: auto;
    border-radius: 20px;
    margin-right: 20px;
}

.tab-mock {
    height: 400px;
    width: auto;
    border-radius: 20px;
    margin-right: -20px;
}

/* Browser Mock */
.browser-mock-container {
    --bm-duration: 9.6s;
    --bm-front-x: -20px;
    --bm-front-y: 0px;
    --bm-step-x: 20px;
    --bm-step-y: 20px;
    --bm-slide-x: 56px;
    --bm-in-x: calc(var(--bm-front-x) - var(--bm-step-x));
    --bm-in-y: calc(var(--bm-front-y) - var(--bm-step-y));
    position: relative;
    isolation: isolate;
    overflow: visible;
    height: auto;
    width: calc(100% - 40px);
    padding: 0px 20px;
    margin-left: -25px;
}

.browser-mock {
    height: auto;
    width: 100%;
    margin: 0;
    border-radius: 8px;
}

.browser-mock-sizer {
    position: relative;
    opacity: 0;
    pointer-events: none;
}

.browser-mock-card {
    position: absolute;
    top: 0;
    left: 0;
    animation: browser-stack-cycle var(--bm-duration) infinite;
    
    /* Delays are 1/4 of --bm-duration so the stack is fully populated on load */
    &:nth-child(2) { animation-delay: 0s; }
    &:nth-child(3) { animation-delay: -2.4s; }
    &:nth-child(4) { animation-delay: -4.8s; }
    &:nth-child(5) { animation-delay: -7.2s; }
}

@keyframes browser-stack-cycle {
    /* Front hold while the next window slides into the empty slot up-left */
    0%, 17% {
        transform: translate(var(--bm-front-x), var(--bm-front-y));
        opacity: 1;
        z-index: 4;
        animation-timing-function: linear;
    }
    
    /* Incoming has settled up-left; drop under it, then step down-right to mid */
    18% {
        transform: translate(var(--bm-front-x), var(--bm-front-y));
        opacity: 1;
        z-index: 3;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    24%, 42% {
        transform: translate(
            calc(var(--bm-front-x) + var(--bm-step-x)),
            calc(var(--bm-front-y) + var(--bm-step-y))
        );
        opacity: 1;
        z-index: 3;
        animation-timing-function: linear;
    }
    
    /* Step down-right to the back of the stack */
    43% {
        transform: translate(
            calc(var(--bm-front-x) + var(--bm-step-x)),
            calc(var(--bm-front-y) + var(--bm-step-y))
        );
        opacity: 1;
        z-index: 2;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    49%, 50% {
        transform: translate(
            calc(var(--bm-front-x) + 2 * var(--bm-step-x)),
            calc(var(--bm-front-y) + 2 * var(--bm-step-y))
        );
        opacity: 1;
        z-index: 2;
        animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
    }
    
    /* Slide off to the right and fade out (half the previous duration) */
    57.5% {
        transform: translate(
            calc(var(--bm-front-x) + 2 * var(--bm-step-x) + var(--bm-slide-x)),
            calc(var(--bm-front-y) + 2 * var(--bm-step-y))
        );
        opacity: 0;
        z-index: 1;
        animation-timing-function: step-end;
    }
    
    /* Wait offstage to the left of the empty incoming slot */
    58%, 75% {
        transform: translate(
            calc(var(--bm-in-x) - var(--bm-slide-x)),
            var(--bm-in-y)
        );
        opacity: 0;
        z-index: 5;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    /* Land on the empty slot up-left of the current front */
    82.5%, 92% {
        transform: translate(var(--bm-in-x), var(--bm-in-y));
        opacity: 1;
        z-index: 5;
        animation-timing-function: linear;
    }
    
    /* Then step into the front slot as the rest of the stack moves back */
    93% {
        transform: translate(var(--bm-in-x), var(--bm-in-y));
        opacity: 1;
        z-index: 5;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    99%, 100% {
        transform: translate(var(--bm-front-x), var(--bm-front-y));
        opacity: 1;
        z-index: 5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .browser-mock-card {
        animation: none;
        
        &:nth-child(2) {
            transform: translate(var(--bm-front-x), var(--bm-front-y));
            opacity: 1;
            z-index: 3;
        }
        
        &:nth-child(3) {
            transform: translate(
                calc(var(--bm-front-x) + var(--bm-step-x)),
                calc(var(--bm-front-y) + var(--bm-step-y))
            );
            opacity: 1;
            z-index: 2;
        }
        
        &:nth-child(4) {
            transform: translate(
                calc(var(--bm-front-x) + 2 * var(--bm-step-x)),
                calc(var(--bm-front-y) + 2 * var(--bm-step-y))
            );
            opacity: 1;
            z-index: 1;
        }
        
        &:nth-child(5) {
            opacity: 0;
        }
    }
}

/* Force Size */
.force-size {
    width: 100%;
    max-width: 100%;
    position: relative;
}






/* ========================================
   SURFACE & SUBLIME PROTOTYPES
   ======================================== */

.surface-proto {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    padding: 0 10.4% 0 10.8%;
    object-fit: cover;
    overflow: hidden;
    
    img {
        width: 100%;
        height: auto;
        object-fit: cover;
        top: 2.07%;
        position: relative;
        animation: sublime-scroll 7s infinite ease;
        animation-delay: .1s;
    }
}

@keyframes sublime-scroll {
    0%   {top: 2.07%;}
    15%   {top: 2.07%;}
    30%  {top: -22.19%;}
    45%  {top: -22.19%;}
    60%  {top: -36.98%;}
    85%  {top: -36.98%;}
    100% {top: 2.07%;}
}

.surface-splash {
    width: 100%;
    height: auto;
    position: relative;
    display: block;
}

.sublime-blink {
    height: 2.07%;
    width: 1px;
    border-radius: 0%;
    background-color: white;
    position: absolute;
    margin: 0;
    left: 27.8%;
    right: auto;
    top: 48.82%;
    opacity: 1;
    animation: sublime-blink 7s infinite ease;
    animation-delay: .1s;
}

@keyframes sublime-blink {
    0%   {top: 48.82%; opacity: 0;}
    10%   { opacity: 1;}
    15%   {top: 48.82%;}
    20%   { opacity: 0;}
    30%  {top: 24.56%; opacity: 1;}
    40%   { opacity: 0;}
    45%  {top: 24.56%;}
    50%   { opacity: 1;}
    60%  {top: 9.76%; opacity: 0;}
    70%   { opacity: 1;}
    80%   { opacity: 0;}
    85%  {top: 9.76%;}
    90%   { opacity: 1;}
    100% {top: 48.82%;  opacity: 0;}
}






/* ========================================
   DESIGN & FORECASTER
   ======================================== */

.learning-icons {
    display: flex;
    align-items: center;
    gap: 32px;
    overflow: visible;
    --seq-total: 7.4s;
}

.learning-icon {
    height: 60px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.learning-icon-heart {
    overflow: visible;
}

.learning-icon-heart .heart-outline,
.learning-icon-heart .heart-fill {
    transform-box: fill-box;
    transform-origin: center;
}

.learning-icon-heart .heart-outline {
    animation: heart-outline-pop var(--seq-total) linear infinite;
}

.learning-icon-heart .heart-fill {
    animation: heart-lose-life var(--seq-total) linear infinite;
}

@keyframes heart-outline-pop {
    0% {
        transform: scale(1);
        animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
    }
    1.7% {
        transform: scale(1.22);
        animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
    }
    3.9% {
        transform: scale(0.96);
        animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
    }
    5.6%, 100% {
        transform: scale(1);
    }
}

@keyframes heart-lose-life {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    1.3% {
        transform: translate(0, 0) rotate(7deg) scale(1);
        opacity: 1;
    }
    2.2% {
        transform: translate(17px, -12px) rotate(8deg) scale(0.96);
        opacity: 0.88;
    }
    4.3% {
        transform: translate(26px, -24px) rotate(4deg) scale(0.93);
        opacity: 0.75;
    }
    6.5% {
        transform: translate(25px, -36px) rotate(-2deg) scale(0.89);
        opacity: 0.63;
    }
    8.6% {
        transform: translate(16px, -48px) rotate(-7deg) scale(0.85);
        opacity: 0.5;
    }
    10.4% {
        transform: translate(7px, -60px) rotate(-8deg) scale(0.81);
        opacity: 0.38;
    }
    12.5% {
        transform: translate(6px, -72px) rotate(-5deg) scale(0.78);
        opacity: 0.25;
    }
    14.7% {
        transform: translate(15px, -84px) rotate(4deg) scale(0.74);
        opacity: 0.12;
    }
    16.9% {
        transform: translate(32px, -96px) rotate(2deg) scale(0.7);
        opacity: 0;
    }
    20.3% {
        transform: translate(32px, -96px) rotate(2deg) scale(0.7);
        opacity: 0;
    }
    20.4% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    24.3%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .learning-icon-heart .heart-outline,
    .learning-icon-heart .heart-fill,
    .learning-icon-brain .brain-graphic,
    .learning-icon-brain .brain-score,
    .learning-icon-thumb .thumb-graphic {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .learning-icon-thumb .thumb-fill {
        animation: none;
        clip-path: inset(100% 0 0 0);
    }

    .teacher-demo-roster,
    .teacher-demo-modal,
    .teacher-demo-pointer,
    .teacher-demo-arrow,
    .teacher-demo-hand {
        animation: none;
    }

    .teacher-demo-roster,
    .teacher-demo-modal,
    .teacher-demo-pointer {
        display: none;
    }

    .lti-demo-account,
    .lti-demo-roster,
    .lti-demo-create,
    .lti-demo-activities,
    .lti-demo-create-content,
    .lti-demo-handle,
    .lti-demo-activities-content,
    .lti-demo-activities-handle {
        animation: none;
    }

    .lti-demo-account,
    .lti-demo-create,
    .lti-demo-activities {
        display: none;
    }

    .lti-demo-roster {
        opacity: 1;
        visibility: visible;
    }
}

.learning-icon-brain {
    position: relative;
    height: 60px;
    flex-shrink: 0;
    overflow: visible;
}

.learning-icon-brain .learning-icon {
    overflow: visible;
}

.learning-icon-brain .brain-graphic {
    transform-box: fill-box;
    transform-origin: center;
    animation: brain-pop var(--seq-total) linear infinite;
}

.brain-score {
    position: absolute;
    left: 74%;
    top: 20%;
    color: #DC4B89;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    transform-origin: center center;
    animation:
        brain-score-rise var(--seq-total) linear infinite,
        brain-score-fade var(--seq-total) linear infinite;
}

@keyframes brain-pop {
    0%, 37.8% {
        transform: scale(1);
        animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
    }
    39.2% {
        transform: scale(1.22);
        animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
    }
    40.9% {
        transform: scale(0.96);
        animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
    }
    42.3%, 100% {
        transform: scale(1);
    }
}

@keyframes brain-score-rise {
    0%, 37.7% {
        transform: translateY(0) scale(1);
    }
    37.8% {
        transform: translateY(0) scale(1);
    }
    39.8% {
        transform: translateY(-27px) scale(1.043);
    }
    41.7% {
        transform: translateY(-50px) scale(1.079);
    }
    43.7%, 46.6% {
        transform: translateY(-63px) scale(1.1);
    }
    46.7%, 100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes brain-score-fade {
    0%, 37.7% {
        opacity: 0;
    }
    37.8%, 44.1% {
        opacity: 1;
    }
    46.4%, 100% {
        opacity: 0;
    }
}

.learning-icon-thumb {
    overflow: visible;
}

.learning-icon-thumb .thumb-graphic {
    transform-box: fill-box;
    transform-origin: 18px 50px;
    animation: thumb-approve var(--seq-total) linear infinite;
}

.learning-icon-thumb .thumb-fill {
    animation: thumb-fill var(--seq-total) linear infinite;
}

@keyframes thumb-approve {
    0%, 60.1% {
        transform: translateY(0) rotate(0deg);
        animation-timing-function: cubic-bezier(0.22, 0.8, 0.3, 1);
    }
    64% {
        transform: translateY(-12px) rotate(-14.4deg);
        animation-timing-function: ease-in-out;
    }
    65.8% {
        transform: translate(2px, 4px) rotate(8deg);
        animation-timing-function: cubic-bezier(0.33, 0.1, 0.2, 1);
    }
    72.5%, 100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes thumb-fill {
    0%, 64% {
        clip-path: inset(100% 0 0 0);
        opacity: 1;
    }
    65.8%, 81.9% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    85.4% {
        clip-path: inset(0 0 0 0);
        opacity: 0;
    }
    85.5%, 100% {
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }
}

.learning-gallery-container {
    padding: 40px 60px;
    overflow: hidden;
}

.learning-copy ul,
.teacher-copy ul,
.lti-copy ul {
    margin: 0.75rem 0 1rem;
}

.learning-copy li,
.teacher-copy li,
.lti-copy li {
    margin-bottom: 0.5rem;
}

.learning-gallery {
    display: grid;
    grid-template-columns: 1706fr 1706fr 768fr;
    gap: 40px;
    max-width: 1920px;
    margin: 0 auto;
    align-items: start;

    img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }
}

.teacher-demo {
    --teacher-demo: 12.9s;
    --teacher-pointer: 3.25%;
    width: 100%;
}

.teacher-demo-stage {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}

.teacher-demo-sizer {
    width: 100%;
    height: auto;
    display: block;
    visibility: hidden;
}

.teacher-demo-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top left;
}

.teacher-demo-guide {
    z-index: 1;
}

.teacher-demo-roster {
    z-index: 2;
    opacity: 0;
    animation: teacher-roster-fade var(--teacher-demo) linear infinite;
}

.teacher-demo-modal {
    z-index: 3;
    opacity: 0;
    animation: teacher-modal-in var(--teacher-demo) linear infinite;
}

.teacher-demo-pointer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: var(--teacher-pointer);
    height: auto;
    aspect-ratio: 65 / 82;
    transform-origin: 6% 5%;
    animation: teacher-pointer-move var(--teacher-demo) linear infinite;
    pointer-events: none;
}

.teacher-demo-arrow,
.teacher-demo-hand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.teacher-demo-arrow {
    animation: teacher-arrow-vis var(--teacher-demo) linear infinite;
}

.teacher-demo-hand {
    top: -6%;
    left: -24%;
    opacity: 0;
    animation: teacher-hand-vis var(--teacher-demo) linear infinite;
}

@keyframes teacher-roster-fade {
    0%, 16.3% { opacity: 0; }
    18.9%, 79.8% { opacity: 1; }
    83.3%, 100% { opacity: 0; }
}

@keyframes teacher-modal-in {
    0%, 39.9% { opacity: 0; }
    42.9%, 79.8% { opacity: 1; }
    83.3%, 100% { opacity: 0; }
}

@keyframes teacher-pointer-move {
    0%, 3.6% {
        left: 51.5%;
        top: 50.5%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    3.9% {
        left: 51%;
        top: 50.1%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    4.5% {
        left: 48.6%;
        top: 48.5%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    5.1% {
        left: 43.4%;
        top: 44.5%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    5.8% {
        left: 36.2%;
        top: 38.6%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    6.4% {
        left: 28.5%;
        top: 31.9%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    7% {
        left: 20.5%;
        top: 24.2%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    7.8% {
        left: 12.5%;
        top: 16.5%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    8.4% {
        left: 8.3%;
        top: 12.1%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    8.9% {
        left: 6.8%;
        top: 10.5%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    9%, 13.6% {
        left: 6.5%;
        top: 10.2%;
        transform: scale(1);
        animation-timing-function: ease-out;
    }
    14.4% {
        left: 6.5%;
        top: 10.6%;
        transform: scale(0.9);
        animation-timing-function: ease-out;
    }
    15.6%, 21% {
        left: 6.5%;
        top: 10.2%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    21.7% {
        left: 7.6%;
        top: 10.8%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    22.6% {
        left: 12.2%;
        top: 13%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    23.7% {
        left: 22.7%;
        top: 18.7%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    24.6% {
        left: 36.5%;
        top: 26.5%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    25.8% {
        left: 51.1%;
        top: 35.4%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    26.8% {
        left: 66.5%;
        top: 45.4%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    28% {
        left: 81.1%;
        top: 55.3%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    28.7% {
        left: 88.9%;
        top: 60.8%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    29.6% {
        left: 91.8%;
        top: 62.8%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    29.9%, 34.6% {
        left: 92.3%;
        top: 63.2%;
        transform: scale(1);
        animation-timing-function: ease-out;
    }
    35.7% {
        left: 92.3%;
        top: 63.6%;
        transform: scale(0.9);
        animation-timing-function: ease-out;
    }
    36.6%, 45.6% {
        left: 92.3%;
        top: 63.2%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    46.1% {
        left: 91.9%;
        top: 63%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    46.4% {
        left: 90.2%;
        top: 62.2%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    47.1% {
        left: 86%;
        top: 60.6%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    47.6% {
        left: 79.9%;
        top: 58.4%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    48% {
        left: 73.1%;
        top: 56.3%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    48.7% {
        left: 65.4%;
        top: 54.1%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    49.2% {
        left: 57.6%;
        top: 52%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    49.9% {
        left: 53.4%;
        top: 51%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    50% {
        left: 51.8%;
        top: 50.6%;
        transform: scale(1);
        animation-timing-function: linear;
    }
    50.2%, 100% {
        left: 51.5%;
        top: 50.5%;
        transform: scale(1);
    }
}

@keyframes teacher-arrow-vis {
    0%, 8.6% { opacity: 1; }
    9%, 21% { opacity: 0; }
    21.6%, 29.6% { opacity: 1; }
    29.9%, 45.6% { opacity: 0; }
    46.4%, 100% { opacity: 1; }
}

@keyframes teacher-hand-vis {
    0%, 8.6% { opacity: 0; }
    9%, 21% { opacity: 1; }
    21.6%, 29.6% { opacity: 0; }
    29.9%, 45.6% { opacity: 1; }
    46.4%, 100% { opacity: 0; }
}

.lti-demo {
    --lti-demo: 22s;
    width: 100%;
}

.lti-demo-stage {
    position: relative;
}

.lti-demo-sizer {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.lti-demo-screen {
    position: absolute;
    left: calc(100% * 131 / 1896);
    top: calc(100% * 182 / 2642);
    width: calc(100% * 1634 / 1896);
    height: calc(100% * 2174 / 2642);
    overflow: hidden;
    z-index: 2;
}

.lti-demo-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    object-fit: contain;
}

.lti-demo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: top center;
    filter: blur(2px);
    transform: scale(1.03);
}

.lti-demo-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
}

.lti-demo-account,
.lti-demo-roster,
.lti-demo-create,
.lti-demo-activities {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 3;
}

.lti-demo-account {
    width: calc(100% * 828 / 1620);
    aspect-ratio: 828 / 480;
    animation: lti-account-in var(--lti-demo) linear infinite;
}

.lti-demo-roster {
    width: calc(100% * 1212 / 1620);
    aspect-ratio: 1212 / 992;
    animation: lti-roster-in var(--lti-demo) linear infinite;
}

.lti-demo-create {
    width: calc(100% * 1176 / 1620);
    aspect-ratio: 1176 / 1209;
    animation: lti-create-in var(--lti-demo) linear infinite;
}

.lti-demo-create-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lti-demo-create-viewport {
    position: absolute;
    left: calc(100% * 14 / 1176);
    top: calc(100% * 119 / 1209);
    width: calc(100% * 1126 / 1176);
    height: calc(100% * 1069 / 1209);
    overflow: hidden;
}

.lti-demo-create-content {
    width: calc(100% * 1065 / 1126);
    height: auto;
    display: block;
    margin-left: calc((100% - 100% * 1065 / 1126) / 2);
    animation: lti-create-scroll var(--lti-demo) ease-in-out infinite;
}

.lti-demo-handle {
    position: absolute;
    left: calc(100% * 1146.5 / 1176);
    top: calc(100% * 154 / 1209);
    z-index: 3;
    width: calc(100% * 8 / 1176);
    height: auto;
    display: block;
    animation: lti-handle-move var(--lti-demo) ease-in-out infinite;
}

.lti-demo-activities {
    width: calc(100% * 1224 / 1620);
    aspect-ratio: 1224 / 1185;
    animation: lti-activities-in var(--lti-demo) linear infinite;
}

.lti-demo-activities-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
}

.lti-demo-activities-viewport {
    position: absolute;
    left: calc(100% * 14 / 1224);
    top: calc(100% * 296 / 1185);
    width: calc(100% * 1174 / 1224);
    height: calc(100% * 868 / 1185);
    overflow: hidden;
    z-index: 2;
    background: #f4f5f6;
}

.lti-demo-activities-content {
    width: 100%;
    height: auto;
    display: block;
    animation: lti-activities-scroll var(--lti-demo) ease-in-out infinite;
}

.lti-demo-activities-handle {
    position: absolute;
    left: calc(100% * 1194.5 / 1224);
    right: auto;
    top: 25.95%;
    z-index: 4;
    width: calc(100% * 8 / 1224);
    height: auto;
    display: block;
    animation: lti-activities-handle var(--lti-demo) ease-in-out infinite;
}

@keyframes lti-account-in {
    0%, 2% { opacity: 0; visibility: hidden; }
    3% { opacity: 0; visibility: visible; }
    6%, 13% { opacity: 1; visibility: visible; }
    15% { opacity: 0; visibility: visible; }
    15.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes lti-roster-in {
    0%, 15.1% { opacity: 0; visibility: hidden; }
    16% { opacity: 0; visibility: visible; }
    18%, 27% { opacity: 1; visibility: visible; }
    29% { opacity: 0; visibility: visible; }
    29.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes lti-create-in {
    0%, 29.1% { opacity: 0; visibility: hidden; }
    30% { opacity: 0; visibility: visible; }
    32%, 52% { opacity: 1; visibility: visible; }
    54% { opacity: 0; visibility: visible; }
    54.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes lti-create-scroll {
    0%, 36% { transform: translateY(calc(35 / 1536 * 100%)); }
    48%, 100% { transform: translateY(calc((1069 - 31 - 1536) / 1536 * 100%)); }
}

@keyframes lti-handle-move {
    0%, 36% { top: calc(100% * 154 / 1209); }
    48%, 100% { top: calc(100% * 1074 / 1209); }
}

@keyframes lti-activities-in {
    0%, 54.1% { opacity: 0; visibility: hidden; }
    55% { opacity: 0; visibility: visible; }
    57%, 94% { opacity: 1; visibility: visible; }
    97% { opacity: 0; visibility: visible; }
    97.1%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes lti-activities-scroll {
    0%, 60% { transform: translateY(0); }
    86%, 100% { transform: translateY(calc((868 - 3816 * 1174 / 1200) / (3816 * 1174 / 1200) * 100%)); }
}

@keyframes lti-activities-handle {
    0%, 60% { top: 25.95%; }
    86%, 100% { top: 86.5%; }
}

.design-splash {
    object-fit: cover;
    width: 100%;
    height: 400px;
}

.forcaster-gallery-container {
    width: 100%;
}

.forecaster-gallery {
    width: 50%;
    height: auto;
    object-fit: cover;
    height: 16.6666vw;
    display: inline-block;
    float: left;
}

.forecaster-squares {
    display: inline-block;
    object-fit: cover;
    height: 16.6666vw;
    float: left;
}

.forecaster-scroller-container {
    position: relative;
    height: 90vh;
    width: 50vw;
    padding: 0px 0px;
    clip-path: content-box;
}

.forecaster-scroller {
    view-timeline-name: --subjectReveal;
    animation-timeline: --subjectReveal;
    animation-name: forecaster-scroller-anim;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    width: 100%;
}

@keyframes forecaster-scroller-anim {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-1200px);
    }
}

.forecaster-index-container {
    position: relative;
    height: 602px;
    width: 298px;
    overflow: hidden;
    padding: 0px 0px;
}

.forecaster-index {
    background-attachment: fixed;
    height: 602px;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
}






.forecaster-logo, .mindmap-anim, .brain-svg {
    width: 298px;
    height: auto;
}

.forecaster-logo path {
    fill: var(--portfolio-black);
}

.brain-svg {
    overflow: visible;
    --thought-cycle: 5.48s;
    --thought-loop: 16.44s;
}

.brain-svg .thought-bubble {
    opacity: 0;
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
    animation-duration: var(--thought-cycle);
    animation-iteration-count: infinite;
}

.brain-svg .thought-bubble-1 {
    animation-name: thought-bubble-1;
}

.brain-svg .thought-bubble-2 {
    animation-name: thought-bubble-2;
}

.brain-svg .thought-bubble-3 {
    animation-name: thought-bubble-3;
}

.brain-svg .thought-item {
    opacity: 0;
    animation-duration: var(--thought-loop);
    animation-iteration-count: infinite;
}

.brain-svg .thought-item-cat {
    animation-name: thought-item-cat;
}

.brain-svg .thought-item-cards {
    animation-name: thought-item-cards;
}

.brain-svg .thought-item-enterprise {
    animation-name: thought-item-enterprise;
}

@keyframes thought-bubble-1 {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    4.67% {
        opacity: 1;
        transform: scale(1.18);
    }
    9.34%, 72.41% {
        opacity: 1;
        transform: scale(1);
    }
    81.75% {
        opacity: 0;
        transform: scale(0.85);
    }
    82.92%, 100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes thought-bubble-2 {
    0%, 9.34% {
        opacity: 0;
        transform: scale(0);
    }
    14.01% {
        opacity: 1;
        transform: scale(1.18);
    }
    18.69%, 72.41% {
        opacity: 1;
        transform: scale(1);
    }
    81.75% {
        opacity: 0;
        transform: scale(0.85);
    }
    82.92%, 100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes thought-bubble-3 {
    0%, 18.69% {
        opacity: 0;
        transform: scale(0);
    }
    23.36% {
        opacity: 1;
        transform: scale(1.12);
    }
    28.03%, 72.41% {
        opacity: 1;
        transform: scale(1);
    }
    81.75% {
        opacity: 0;
        transform: scale(0.85);
    }
    82.92%, 100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes thought-item-cat {
    0%, 33.332% {
        opacity: 1;
    }
    33.333%, 100% {
        opacity: 0;
    }
}

@keyframes thought-item-cards {
    0%, 33.332%, 66.667%, 100% {
        opacity: 0;
    }
    33.333%, 66.666% {
        opacity: 1;
    }
}

@keyframes thought-item-enterprise {
    0%, 66.666% {
        opacity: 0;
    }
    66.667%, 100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brain-svg .thought-bubble,
    .brain-svg .thought-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .brain-svg .thought-item-cards,
    .brain-svg .thought-item-enterprise {
        opacity: 0;
    }
}






/* ========================================
   RESEARCH & ANIMATIONS
   ======================================== */

.magnifier {
    width: 298px;
    height: auto;
    
    path {
        fill: var(--portfolio-black);
    }
}

@keyframes bounce {
    0%    {transform: scale(1);}
    52.5%    {transform: scale(1);}
    55%    {transform: scale(.93);}
    57.5%    {transform: scale(1.15);}
    60%    {transform: scale(.95);}
    62.5%    {transform: scale(1);}
    100%    {transform: scale(1);}
}

.mindmap-anim {
    overflow: visible;
    stroke: var(--portfolio-black);
    fill: var(--portfolio-green);
    
    circle {
        transform-origin: 50% 50% 0;
        transform-box: fill-box;
        stroke-width: 12;
    }
    
    path {
        stroke-width: 8;
    }
    
    .mindmap-circle-0 {
        animation: bounce 6s ease-in-out infinite;
        animation-delay: 0ms;
    }
    
    .mindmap-circle-1 {
        animation: bounce 6s ease-in-out infinite;
        animation-delay: 600ms;
    }
    
    .mindmap-circle-3 {
        animation: bounce 6s ease-in-out infinite;
        animation-delay: 900ms;
    }
    
    .mindmap-circle-4 {
        animation: bounce 6s ease-in-out infinite;
        animation-delay: 1200ms;
    }
    
    .mindmap-circle-6 {
        animation: bounce 6s ease-in-out infinite;
        animation-delay: 1500ms;
    }
    
    .mindmap-circle-2 {
        animation: bounce 6s ease-in-out infinite;
        animation-delay: 3300ms;
        stroke-width: 4;
    }
    
    .mindmap-circle-5 {
        animation: bounce 6s ease-in-out infinite;
        animation-delay: 3600ms;
        stroke-width: 4;
    }
    
    .mindmap-circle-7 {
        animation: bounce 6s ease-in-out infinite;
        animation-delay: 3900ms;
        stroke-width: 4;
    }
    
    .line-1, .line-3, .line-6 {
        stroke-width: 4;
    }
}

#personal-section .social-link svg {
    fill: var(--portfolio-white);
}

.terminal-svg {
    width: 298px;
    height: auto;
    
    path {
        fill: white;
    }
}

.svg-line {
    animation: terminal-blink 1.3s infinite ease;
}

@keyframes terminal-blink {
    0%    {opacity: 0;}
    30%    {opacity: 0;}
    40%    {opacity: 1;}
    90%    {opacity: 1;}
    100%    {opacity: 0;}
}

.resume-svg {
    transition: .2s opacity;
}

a:hover svg.resume-svg {
    opacity: .6;
}






/* ========================================
   COLOR UTILITIES
   ======================================== */

/* Background Colors */
.red-bg { background-color: var(--portfolio-red); }
.gray-bg { background-color: var(--portfolio-gray); }
.yellow-bg { background-color: var(--portfolio-yellow); }
.blue-bg { background-color: var(--portfolio-blue); }
.green-bg { background-color: var(--portfolio-green); }
.black-bg { background-color: var(--portfolio-black); }
.white-bg { background-color: white; }
.dark-bg { background-color: var(--portfolio-gray); }
.transparent-bg { background-color: transparent; }

/* Text Colors */
.red-text { color: var(--portfolio-red); }
.black-text { color: var(--portfolio-black); }
.yellow-text { color: var(--portfolio-yellow); }
.blue-text { color: var(--portfolio-blue); }
.green-text { color: var(--portfolio-green); }
.white-text { color: white; }
.dark-text { color: var(--portfolio-black); }

/* Highlight Effects */
.highlight-text, .highlight-bg, .highlight-stroke {
    transition: all .5s;
}

/* Shadows */
.shadow-diffuse {
    box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.1);
}

.shadow-heavy {
    box-shadow: 0px 10px 25px 0px rgba(0,0,0,0.3);
}






/* ========================================
   LOADING & PROTOTYPE
   ======================================== */

.load-proto {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}






/* ========================================
   VIEW TIMELINE ANIMATIONS
   ======================================== */

/* Safari Support Check */
@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
    .index-content-anim, .index-title-anim, .proto-content-anim, .proto-image-anim {
        animation-name: none !important;
    }
}

/* Index Animations */
.index-title-anim {
    view-timeline-name: --subjectReveal;
    animation-timeline: --subjectReveal;
    animation-name: index-title-anim;
    animation-fill-mode: both;
    width: 100%;
    margin: 0;
    animation-timing-function: linear;
}

@keyframes index-title-anim {
    0% {
        transform: translateY(800px);
    }
    50% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-800px);
    }
}

.index-content-anim {
    view-timeline-name: --subjectReveal;
    animation-timeline: --subjectReveal;
    animation-name: index-content-anim;
    animation-fill-mode: both;
    width: 100%;
    animation-timing-function: linear;
}

@keyframes index-content-anim {
    0% {
        transform: translateY(400px);
    }
    50% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-400px);
    }
}

/* Proto Animations */
.proto-content-anim {
    view-timeline-name: --subjectReveal;
    animation-timeline: --subjectReveal;
    animation-name: proto-content-anim;
    animation-fill-mode: both;
    width: 100%;
    margin: 0;
    animation-timing-function: linear;
}

@keyframes proto-content-anim {
    0% {
        transform: translateY(800px);
        opacity: 0;
    }
    20% {
        opacity: 0;
    }
    45% {
        opacity: 1;
    }
    50% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-800px);
    }
}

.proto-image-anim {
    view-timeline-name: --subjectReveal;
    animation-timeline: --subjectReveal;
    animation-name: proto-image-anim;
    animation-fill-mode: both;
    width: 100%;
    animation-timing-function: linear;
}

@keyframes proto-image-anim {
    0% {
        transform: translateY(400px);
    }
    50% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-400px);
    }
} 
/* Project headings are link targets (e.g. uiux.php#simplifying-lti); leave room above them when jumped to. */
h3.sub-title[id] {
    scroll-margin-top: 2rem;
}
