@media (min-width: 1025px) {
    .main-header {
        align-items: start;
        justify-content: center;
        border-bottom: none;
        border-right: 1px solid #ffffff;
        height: 100%;
        padding: 23px 0 0;
        width: 81px;
        box-sizing: border-box;
        z-index: 1;
        position: relative;
    }

    .logo {
        height: 33px;
        width: 33px;
        margin: auto;
    }

    nav {
        display: none;
    }

    .home-prompt {
        position: absolute;
        top: 0;
        left: 0;
        width: 80px;
        /* height: calc(100% - 150px); */
        height: 100%;
        cursor: pointer;
    }

    .hamburger {
        display: none;
    }

    .language-toggle {
        position: absolute;
        bottom: 35px;
        left: 46px;
        display: block;
        transform-origin: left bottom;
        transform: rotate(270deg);
        z-index: 3;
    }

    .language-toggle a {
        opacity: 0.7;
        position: relative;
        padding: 10px;
        margin: -10px;
        margin-right: 27px;
        transition: color 0.2s, opacity 0.2s;
    }

    .language-toggle a:hover {
        color: #1a6376;
        opacity: 1;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .language-toggle a.external-link {
        letter-spacing: 0.3px;
    }

    .language-toggle a.is-active {
        opacity: 1;
    }

    .language-toggle a.is-active:after {
        background-color: #ffffff;
        border-radius: 6px;
        content: '';
        position: absolute;
        right: 0px;
        top: 50%;
        padding: 3px;
        margin: -3px;
    }

    main {
        position: absolute;
        top: 0;
        left: 80px;
        bottom: 0;
        right: 0;
        overflow: hidden;
    }

    nav.is-active {
        display: none;
    }

    section {
        position: absolute;
        display: flex;
        left: 0;
        top: 0;
        min-height: 100%;
        width: calc(100vw - 6 * 80px);
        padding-top: 0;
        transform: translateX(100%);
        background: #000;
    }

    #first {
        left: calc(80px * 1);
    }
    #second {
        left: calc(80px * 2);
    }
    #third {
        left: calc(80px * 3);
    }
    #fourth {
        left: calc(80px * 4);
    }
    #fifth {
        left: calc(80px * 5);
    }

    section:first-child {
        border-left: none;
    }

    .section-header {
        position: absolute;
        top: 0;
        left: -80px;
        display: block;
        height: 100vh;
        width: 80px;
        cursor: pointer;
        box-sizing: border-box;
        background: #000;
        border-left: 1px solid #ffffff;
    }

    .section-header .title {
        transform: rotate(180deg);
        position: absolute;
        bottom: 35px;
        left: calc(50% - 10px);
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .section-header .number {
        position: absolute;
        top: 35px;
        left: 0;
        right: 0;
        text-align: center;
    }

    .container {
        width: 100%;
        display: flex;
        overflow: auto;
        height: 100vh;
        opacity: 0;
        transition: 0.5s opacity;
        position: relative;
    }

    section.active .container {
        opacity: 1;
    }

    section .animation {
        align-items: center;
        border-bottom: 0;
        display: flex;
        flex: 1;
        max-width: 50%;
        justify-content: center;
        padding-right: 80px;
    }

    section .content {
        border-left: 1px solid #ffffff;
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow-x: hidden;
        overflow-y: scroll;
    }

    section .introduction {
        padding: 80px 55px 60px;
    }

    section .section-body {
        border-top: 1px solid #ffffff;
        display: flex;
        align-items: start;
        flex-grow: 1;
    }

    section .static-image-container {
        flex: 1;
    }

    section .static-image-container svg {
        width: 50%;
        margin: 275px auto 0;
        display: block;
    }

    section .section-body-copy {
        border-left: 1px solid #ffffff;
        flex: 2;
        padding: 100px 55px;
        min-height: 100%;
    }

    section .point {
        position: relative;
        display: flex;
        border-bottom: 1px solid #fff;
    }
    section .point-number {
        width: 25%;
        padding: 45px 0;
        text-align: center;
        flex-shrink: 0;
        border-right: 1px solid;
    }
    section .point-content {
        padding-left: 45px;
        flex-grow: 1;
    }
    section .point-content .point-title {
        position: relative;
        padding: 45px 0;
        padding-right: 70px;
    }
    section .point-content ul {
        margin-left: 18px;
        padding-bottom: 45px;
        display: none;
    }
    section .point-content li {
        margin-bottom: 15px;
    }
    section .point-toggle {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        cursor: pointer;
    }
    section .point-toggle .icon {
        position: absolute;
        top: 50%;
        right: 40px;
        padding: 30px;
        margin: -30px;
    }
    section .point-toggle .line1,
    section .point-toggle .line2 {
        background: #fff;
        position: absolute;
        transform: translate(-50%, -50%);
    }
    section .point-toggle .line1 {
        width: 24px;
        height: 1px;
    }
    section .point-toggle .line2 {
        width: 1px;
        height: 24px;
    }

    section .point.is-active {
    }
    section .point.is-active .point-content ul {
        display: block;
    }
    section .point.is-active .point-toggle .line2 {
        display: none;
    }

    #third .section-body {
        display: block;
    }

    #first .section-body {
        flex-direction: row-reverse;
    }

    #fourth .section-body {
        display: block;
    }

    #first .section-body-copy,
    #fourth .section-body-copy {
        border-left: none;
        border-right: 1px solid #ffffff;
    }

    section .section-body-copy p:first-child {
        position: relative;
        text-indent: 75px;
    }

    section .section-body-copy p:first-child:before {
        background-color: #ffffff;
        border-radius: 8px;
        content: '';
        left: 4px;
        position: absolute;
        top: 14px;
        padding: 4px;
        margin: -4px;
    }

    section:not(.home) .animation {
        padding-right: 80px;
    }

    #fifth .animation {
        padding: 0;
    }

    section:not(.home) .animation svg {
        width: 100%;
        height: auto;
        max-width: 60vh;
    }

    #fourth .animation svg {
        width: 90%;
        max-width: 40vh;
    }

    #fifth .animation {
        width: 100%;
    }

    #fifth .animation svg {
        max-width: none;
    }

    .home {
        transform: none;
        width: calc(100vw - 6 * 80px);
    }

    .home .container {
        flex-direction: column;
    }

    .home .top {
        align-items: stretch;
        display: flex;
        flex: 1;
        min-height: 350px;
    }

    .home .animation {
        align-items: center;
        align-content: center;
        border-bottom: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        overflow: hidden;
        padding: 100px;
    }

    .container .top {
        display: flex;
        width: calc(100vw - 6 * 80px);
        height: 70vh;
        overflow: hidden;
        background-color: #000;
        z-index: 0;
    }

    /* ── TERMINAL HERO ─────────────────────────── */
    #hero-terminal {
        position: relative;
        overflow: hidden;
    }

    /* No border on first child of .top now */
    .home .top > div:first-child {
        border-right: none;
    }

    /* Layer 0: video — hidden until .has-video added */
    .hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        opacity: 0;
        transition: opacity 0.8s ease;
        pointer-events: none;
    }

    #hero-terminal.has-video .hero-video {
        opacity: 1;
    }

    /* Layer 1: log */
    .terminal-log {
        position: absolute;
        inset: 0;
        padding: 42px 55px;
        overflow: hidden;
        background: transparent;
        transition: background 0.8s ease;
    }

    #hero-terminal.has-video .terminal-log {
        background: rgba(0, 0, 0, 0.55);
    }

    .terminal-lines {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 840px;
    }

    .log-line {
        font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
        font-size: 11px;
        line-height: 1.85;
        display: flex;
        gap: 14px;
        align-items: baseline;
        opacity: 0;
        transform: translateY(4px);
        transition: opacity 0.18s ease, transform 0.18s ease;
        white-space: nowrap;
    }

    .log-line.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .log-line--break {
        height: 18px;
        opacity: 1 !important;
        transform: none !important;
    }

    .log-ts {
        color: rgba(255, 255, 255, 0.28);
        flex-shrink: 0;
        font-size: 10.5px;
    }

    .log-level {
        flex-shrink: 0;
        width: 54px;
        font-weight: 700;
        font-size: 10.5px;
        letter-spacing: 0.6px;
    }

    .log-level--init,
    .log-level--ok,
    .log-level--ready {
        color: #1a6376;
    }

    .log-level--spawn,
    .log-level--run {
        color: #ffffff;
    }

    .log-level--task {
        color: #ffffff;
        font-weight: 800;
    }

    .log-level--info {
        color: rgba(255, 255, 255, 0.4);
    }

    .log-mod {
        flex-shrink: 0;
        min-width: 148px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 10.5px;
    }

    .log-msg {
        color: rgba(255, 255, 255, 0.85);
        font-size: 11px;
    }

    .log-line--task .log-msg,
    .log-line--run .log-msg,
    .log-line--spawn .log-msg {
        color: #ffffff;
    }

    .log-line--info .log-msg {
        color: rgba(255, 255, 255, 0.42);
    }

    .log-line--init .log-msg,
    .log-line--ok .log-msg,
    .log-line--ready .log-msg {
        color: rgba(255, 255, 255, 0.7);
    }

    .log-cursor {
        display: inline-block;
        color: #1a6376;
        animation: cursorBlink 900ms step-end infinite;
        margin-left: 3px;
        font-size: 11px;
    }

    @keyframes cursorBlink {
        0%, 100% { opacity: 1; }
        50%       { opacity: 0; }
    }

    /* Layer 2: vignette */
    .terminal-vignette {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 1;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            transparent 18%,
            transparent 65%,
            rgba(0, 0, 0, 0.94) 100%
        );
    }

    /* Layer 3: title */
    .hero-title {
        position: absolute;
        bottom: 48px;
        left: 55px;
        z-index: 2;
    }

    .top h1 {
        font-size: 88px;
        color: #fff;
        font-weight: 700;
        letter-spacing: -4px;
        line-height: 0.92;
    }

    .top h1:hover {
        color: #1a6376;
        transition: color 0.4s;
    }

    .container .details {
        z-index: 3;
    }

    #media {
        display: none;
    }

    .home .animation svg path {
        transform-origin: center;
        opacity: 0;
    }

    .home .animation.left svg {
        flex: 1;
    }

    .home .animation.right svg {
        flex: 0 50%;
        margin: -1%;
    }

    .home .top > div:first-child {
        border-right: 1px solid #ffffff;
    }

    .home .details {
        align-items: flex-end;
        border-top: 1px solid #ffffff;
        display: flex;
        height: 230px;
        padding: 0 100px 40px 80px;
    }

    .home .details p {
        display: inline-block;
        margin-bottom: 0;
        margin-right: 100px;
    }
    .home .details p:nth-child(2) {
        margin-right: 0;
        padding: 0;
    }

    #fifth .content {
        justify-content: flex-end;
    }

    section .email,
    section .links {
        height: 120px;
    }

    section .email {
        padding-left: 0;
    }

    section .links {
        border-bottom: none;
    }

    section .links a,
    section .email a {
        line-height: 120px;
        position: relative;
    }

    section .email a {
        padding-left: 28px;
        flex-grow: 1;
    }

    section .email a:after,
    section .links a:after {
        border-radius: 100px;
        content: '';
        position: absolute;
        right: 53px;
        top: 50%;
        padding: 12px;
        margin: -12px;
        border: 1px solid #fff;
        opacity: 0;
    }

    section .email a:hover:after,
    section .links a:hover:after {
        opacity: 1;
    }

    section .point-header {
        height: 120px;
    }

    section .point-header .number {
        width: 150px;
    }

    footer {
        display: none;
    }

    #fifth .introduction p {
        width: 130px;
    }

    #second .section-body {
        display: block;
    }

    .project-list {
        width: 100%;
    }

    .project-entry {
        display: flex;
        border-bottom: 1px solid #fff;
        padding: 45px 0;
    }

    .project-index {
        width: 25%;
        text-align: center;
        flex-shrink: 0;
        border-right: 1px solid #fff;
        font-size: 14px;
        padding-top: 4px;
    }

    .project-info {
        padding: 0 55px;
        flex-grow: 1;
    }

    .project-info h2 {
        font-size: 22px;
        font-weight: 600;
        letter-spacing: -0.3px;
        margin-bottom: 5px;
    }

    .project-type {
        display: block;
        opacity: 0.5;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 14px;
    }

    .project-stack {
        margin-bottom: 14px;
        opacity: 0.4;
        font-size: 12px;
        letter-spacing: 0.3px;
        line-height: 1.6;
    }

    .project-desc {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 14px;
    }

    .project-link {
        display: inline-block;
        font-size: 12px;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(255,255,255,0.35);
        padding-bottom: 2px;
        transition: border-color 0.2s;
    }

    .project-link:hover {
        border-color: #fff;
    }

    .experience-list {
        width: 100%;
    }

    .experience-entry {
        display: flex;
        border-bottom: 1px solid #fff;
        padding: 55px 0;
    }

    .exp-period {
        width: 25%;
        text-align: center;
        flex-shrink: 0;
        border-right: 1px solid #fff;
        font-size: 12px;
        opacity: 0.5;
        line-height: 2;
        padding-top: 4px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .exp-content {
        padding: 0 55px;
        flex-grow: 1;
    }

    .exp-role {
        font-size: 22px;
        font-weight: 600;
        letter-spacing: -0.3px;
        margin-bottom: 6px;
    }

    .exp-company {
        display: block;
        opacity: 0.5;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 18px;
        transition: opacity 0.2s;
    }

    .exp-company:hover {
        opacity: 0.9;
    }

    .exp-desc {
        font-size: 14px;
        line-height: 1.75;
    }
    
    section .email,
    section .links {
        align-items: center;
        display: flex;
        height: 120px;
    }

    section .email {
        border-top: 1px solid #ffffff;
        border-bottom: 1px solid #ffffff;
        padding-left: 0;
    }

    section .links {
        border-bottom: none;
    }

    section .links a,
    section .email a {
        line-height: 120px;
        position: relative;
        padding-left: 55px;
    }

    section .links a {
        display: block;
        flex: 1;
        height: 100%;
    }

    section .links a:first-child {
        border-right: 1px solid #ffffff;
    }

    section .email a {
        flex-grow: 1;
    }

    section .email a:after,
    section .links a:after {
        border-radius: 100px;
        content: '';
        position: absolute;
        right: 53px;
        top: 50%;
        padding: 12px;
        margin: -12px;
        border: 1px solid #fff;
        opacity: 0;
    }

    section .email a:hover:after,
    section .links a:hover:after {
        opacity: 1;
    }

    .lds-spinner{
        justify-content: center;
        align-content: center;
        padding: 200px;
    }

    .lds-spinner,
    .lds-spinner div,
    .lds-spinner div:after
     {
     box-sizing: border-box;
     }
    .lds-spinner {
    color: currentColor;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    }
    .lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
    }
    .lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3.2px;
    left: 36.8px;
    width: 6.4px;
    height: 17.6px;
    border-radius: 20%;
    background: currentColor;
    }
    .lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
    }
    .lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
    }
    .lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
    }
    .lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
    }
    .lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
    }
    .lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
    }
    .lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
    }
    .lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
    }
    .lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
    }
    .lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
    }
    .lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
    }
    .lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
    }
    @keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
    }
}

