@font-face {
    font-family: 'ArchivoBlack';
    src: url('assets/fonts/Archivo_Black/ArchivoBlack-Regular.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
}

h1 {
    color: black;
    font-size: 20px;
    font-family: 'ArchivoBlack', sans-serif;
    margin: 0; /* Cleared default margins so flexbox alignment is precise */
}

.top-bar h1 a {
    color: inherit;
    text-decoration: none;
}

.scene {
    width: 60px;
    height: 60px;
    perspective: 1200px;
    margin-right: 20px;
    margin-top: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.scene:focus-visible {
    outline: none;
    box-shadow: none;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spinCube 8s infinite linear;
}

.face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid black;
    background-color: black;
}

.front  { transform: rotateY(0deg) translateZ(30px); }
.back   { transform: rotateY(180deg) translateZ(30px); }
.right  { transform: rotateY(90deg) translateZ(30px); }
.left   { transform: rotateY(-90deg) translateZ(30px); }
.top    { transform: rotateX(90deg) translateZ(30px); }
.bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes spinCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Freeze the rotation instantly when the mouse enters */
.cube:hover {
    animation-play-state: paused;
}

body.menu-open .cube {
    animation-play-state: paused;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    min-height: 100vh;       
}

p {
    color: black;
    font-size: 30px;
    font-family: monospace;
    margin: 0 auto;
    max-width: 850px;
    text-align: center;
    display: inline-block;     
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    isolation: isolate;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

header::before {
    content: "";
    position: absolute;
    inset: 0 0 -100px;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(255, 255, 255, 0.92) 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 100px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 100px), transparent 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

body {
    padding-top: 80px;
}

body.nerv-page,
body.myreg-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

.nerv-main,
.myreg-main {
    flex: 1;
    padding: 80px 30px 40px;
    box-sizing: border-box;
}

.nerv-title,
.myreg-title {
    margin-top: 40px;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    text-align: center;
}

.nerv-description,
.myreg-description {
    display: block;
    margin: 20px auto 0;
    font-size: 1.25rem;
    line-height: 1.5;
}

.project-intro-cta {
    display: flex;
    width: fit-content;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 24px auto 0;
    padding: 0 16px;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    font-family: monospace, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.project-intro-cta:not(:disabled):hover {
    background: #fff;
    color: #111;
}

.project-intro-cta:focus-visible {
    outline: 3px solid #777e8c;
    outline-offset: 4px;
}

.project-intro-cta:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.myreg-video-section {
    display: block;
    width: min(78%, 900px);
    min-height: 0;
    margin: 56px auto 64px;
}

.myreg-video-frame {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.myreg-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
}

.myreg-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 16px 28px;
    width: min(92%, 1140px);
    margin: -12px auto 72px;
    align-items: center;
    transform: translateY(-4px);
}

.myreg-gallery-item {
    min-width: 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.myreg-gallery-item--feature {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
}

.myreg-gallery-item--right {
    grid-column: 2;
    width: min(78%, 470px);
    justify-self: center;
    align-self: center;
    transform: translateY(18px);
}

.myreg-gallery-item--wide {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: center;
    margin-top: 20px;
    transform: translateY(6px);
}

.myreg-approach-image {
    width: min(92%, 1140px);
    margin: 32px auto 0;
}

.myreg-approach-image + .myreg-approach-image {
    margin-top: 44px;
}

.myreg-approach-video {
    width: min(46%, 570px);
}

.myreg-approach-video video {
    display: block;
    width: 100%;
    height: auto;
    clip-path: inset(0 0 0.3% 0);
}

@media (max-width: 640px) {
    .myreg-approach-video {
        width: min(82%, 570px);
    }
}

.myreg-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    object-position: center;
}

.problem-section {
    display: block;
    width: min(96%, 1280px);
    min-height: 0;
    margin: 112px auto 0;
}

.problem-head,
.approach-head {
    margin: 0 0 24px;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
    text-align: left;
}

.approach-head {
    margin-top: 56px;
}

.problem-description,
.research-description,
.mockup-description {
    display: block;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
    text-align: left;
}

.problem-description {
    width: min(50%, 640px);
}

body.myreg-page .problem-description {
    text-align: justify;
}

.problem-description + .problem-description {
    margin-top: 18px;
}

.research-description,
.mockup-description {
    width: 100%;
    max-width: none;
}

.research-head,
.mockup-head {
    margin: 0 0 16px;
    color: #777e8c;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    line-height: 1.2;
    text-align: left;
}

.mockup-head {
    margin-top: 48px;
}

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.1);

    
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 0s linear 650ms;
}

.site-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 220ms ease, visibility 0s;
}

.menu-panel {
    width: min(850px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    border: 2px solid #000;
    background: #fff;
    box-shadow: 14px 14px 0 #000;
    opacity: 0;
    transform: translateY(-20px) scale(0.985);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 650ms cubic-bezier(0.76, 0, 0.24, 1), transform 450ms ease, opacity 240ms ease;
}

.site-menu.open .menu-panel {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
    transition-delay: 0s;
}

.menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 66px;
    padding: 12px 20px;
    box-sizing: border-box;
    background: #000;
    color: #fff;
}

.menu-bar h2 {
    margin: 0;
    font-family: monospace, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.menu-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-context,
.menu-footer,
.entry-number {
    font-family: monospace, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.menu-close {
    min-width: 48px;
    min-height: 34px;
    border: 1px solid #777;
    background: transparent;
    color: #fff;
    font-family: monospace, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.menu-close:hover,
.menu-close:focus-visible {
    background: #fff;
    color: #000;
}

.menu-content {
    padding: 24px 30px 20px;
}

.menu-context,
.menu-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #777e8c;
}

.menu-context {
    padding: 0 0 16px;
    border-bottom: 1px solid #d5d7db;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.menu-entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 16px 20px;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.menu-entry:hover,
.menu-entry:focus-visible {
    color: #fff;
    background: #000;
    box-shadow: 4px 4px 0 #999;
    transform: translate(-2px, -2px);
}

.entry-number {
    color: #a1a7b3;
    font-weight: 700;
}

.entry-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.entry-title {
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.entry-description {
    display: none;
    color: #c7c7c7;
    font-family: monospace, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

.menu-entry:hover .entry-description,
.menu-entry:focus-visible .entry-description {
    display: block;
}

.menu-footer {
    padding-top: 16px;
    border-top: 1px solid #d5d7db;
}

@media (prefers-reduced-motion: reduce) {
    .site-menu,
    .menu-panel,
    .menu-entry {
        transition-duration: 0.01ms;
        transition-delay: 0ms;
    }
}

@media (max-width: 600px) {
    .site-menu {
        padding: 16px;
    }

    .menu-panel {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        box-shadow: 8px 8px 0 #000;
    }

    .menu-bar {
        min-height: 58px;
        padding: 10px 12px;
    }

    .menu-bar h2 {
        font-size: 0.75rem;
    }

    .menu-content {
        padding: 18px 14px 14px;
    }

    .menu-context,
    .menu-footer {
        font-size: 0.625rem;
    }

    .menu-entry {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 12px;
    }

    .entry-copy {
        grid-column: 2;
    }

    .entry-title {
        font-size: 0.875rem;
    }

}

.circle-pen {
    position: relative;
    display: inline-block;
    padding: 0 12px; /* Breathing room so the text fits nicely inside the loop */
}

.circle-pen::after {
    content: "";
    position: absolute;
    top: -8px;
    left: -12px;
    right: -12px;
    bottom: -8px;
    border: 2px solid black;
    border-radius: 40% / 40%; /* Forces the sides to curve into a smooth oval loop */
    transform: rotate(-4deg);   /* Adds that natural, tilted hand-drawn tilt */
    pointer-events: none;
}

.custom-strike {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: black;
}



/* --- Coffee Slider Component Styles --- */

.coffee-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    margin-top: 6.5rem;
    font-family: monospace, sans-serif;
}

/* The missing pill track style */
.slider-track {
    position: relative;
    box-sizing: border-box;
    width: 279px;
    height: 54px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 35px;
    overflow: visible;
    cursor: pointer;
    user-select: none;
    box-shadow: 3px 3px 0px #000;
}

/* The track text style */
.track-text {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #000000;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.coffee-cup-thumb {
    position: absolute;
    left: -42px;
    top: 50%;
    transform: translateY(-50%);
    width: 105px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: grab;
    transition: transform 0.15s ease-out;
    filter: drop-shadow(3px 4px 6px rgba(0, 0, 0, 0.2));
}

.coffee-cup-thumb:active {
    cursor: grabbing;
}

.coffee-cup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.slider-hint {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #666;
    text-transform: uppercase;
}

.slider-track.toggled {
    background-color: #000000;
}

.slider-track.toggled .track-text {
    color: #ffffff;
}

.contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
    gap: 24px;
    padding: 40px 24px;
    text-align: center;
}

.contact-page h2 {
    margin: 0;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 4rem;
}

.contact-page p {
    font-size: 1.25rem;
}

.contact-page a {
    color: #000000;
    font-family: monospace, sans-serif;
    font-size: 1rem;
    text-underline-offset: 4px;
}

@media (max-width: 480px) {
    .contact-page h2 {
        font-size: 3rem;
    }
}

.contact-form-page {
    display: block;
    width: min(820px, calc(100% - 48px));
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 96px 0 112px;
    box-sizing: border-box;
}

.contact-form-intro {
    margin-bottom: 48px;
}

.contact-form-intro h2 {
    margin: 0;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 56px;
    line-height: 1;
    text-align: left;
}

.contact-form-intro p {
    display: block;
    max-width: 62ch;
    margin: 18px 0 0;
    font-family: monospace, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.contact-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.contact-field {
    display: grid;
    min-width: 0;
    gap: 9px;
    color: #111;
    font-family: monospace, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid #111;
    border-radius: 0;
    box-sizing: border-box;
    background: #fff;
    color: #111;
    font: 16px monospace, sans-serif;
}

.contact-field textarea {
    min-height: 132px;
    resize: vertical;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
    outline: 2px solid #777e8c;
    outline-offset: 3px;
}

.contact-interests {
    margin: 36px 0 30px;
    padding: 0;
    border: 0;
}

.contact-interests legend {
    margin-bottom: 16px;
    color: #111;
    font-family: monospace, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.contact-interest-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.contact-interest-options label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #111;
    font-family: monospace, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.contact-interest-options input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: #111;
}

.contact-message-field {
    margin-top: 30px;
}

.contact-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 28px;
}

.contact-submit-row button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 16px;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    font-family: monospace, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.contact-submit-row button:hover {
    background: #fff;
    color: #111;
}

.contact-submit-row button:focus-visible {
    outline: 3px solid #777e8c;
    outline-offset: 4px;
}

.contact-form-note,
.contact-form-status {
    display: block;
    margin: 0;
    font-family: monospace, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.contact-form-note {
    max-width: 52ch;
}

.contact-form-status:empty {
    display: none;
}

@media (max-width: 600px) {
    .contact-form-page {
        width: calc(100% - 36px);
        padding: 72px 0 88px;
    }

    .contact-form-intro h2 {
        font-size: 42px;
    }

    .contact-form-fields,
    .contact-interest-options {
        grid-template-columns: minmax(0, 1fr);
    }
}

.experience-page {
    width: min(1100px, calc(100% - 48px));
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 112px 0 120px;
    box-sizing: border-box;
}

body.experience-page-body .top-bar {
    padding-inline: max(24px, calc(50% - 550px));
}

.experience-intro {
    margin: 0 0 112px;
    text-align: left;
}

.experience-intro h2 {
    margin: 0;
    font-family: monospace, sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
}

.experience-intro p {
    display: block;
    max-width: none;
    margin: 18px 0 0;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.5;
    text-align: left;
}

.experience-timeline {
    position: relative;
    width: 100%;
    margin: 0;
}

.experience-timeline__track {
    position: absolute;
    top: var(--timeline-line-top, 10px);
    left: 0;
    width: 2px;
    height: var(--timeline-line-height, calc(100% - 20px));
    background: #d7d7d7;
}

.experience-timeline__progress {
    position: absolute;
    inset: 0 0 auto;
    height: var(--timeline-progress, 0%);
    background: #111;
}

.experience-timeline__list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.experience-milestone {
    position: relative;
    padding: 0 0 88px 64px;
}

.experience-milestone:last-child {
    padding-bottom: 0;
}

.experience-milestone__marker {
    position: absolute;
    top: 3px;
    left: -10px;
    z-index: 1;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid #111;
    border-radius: 50%;
    background: #fff;
    transform: scale(0.72);
    transition: background-color 240ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.experience-milestone__date {
    margin: 0 0 16px;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 20px;
    line-height: 1.2;
}

.experience-milestone__content p {
    display: block;
    max-width: 64ch;
    margin: 0;
    font-family: monospace, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

.experience-work-cta {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 16px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-family: monospace, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.experience-work-cta:hover {
    background: #fff;
    color: #111;
}

.experience-work-cta:focus-visible {
    outline: 3px solid #777e8c;
    outline-offset: 4px;
}

.experience-timeline.is-enhanced .experience-milestone {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 480ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.experience-timeline.is-enhanced .experience-milestone.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-milestone.is-visible .experience-milestone__marker {
    background: #111;
    transform: scale(1);
}

@media (max-width: 600px) {
    .experience-page {
        width: calc(100% - 36px);
        padding: 88px 0;
    }

    .experience-intro {
        margin-bottom: 76px;
    }

    .experience-intro h2 {
        font-size: 36px;
    }

    body.experience-page-body .top-bar {
        padding-inline: 18px;
    }

    .experience-timeline__track {
        left: 0;
    }

    .experience-milestone {
        padding: 0 0 68px 48px;
    }

    .experience-milestone__marker {
        left: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .experience-timeline.is-enhanced .experience-milestone,
    .experience-milestone__marker {
        opacity: 1;
        transform: none;
        transition: none;
    }
}



.projects-placeholder {
    min-height: 0;
    scroll-margin-top: 80px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    width: 100%;
    min-height: 220px;
    padding: 40px 6vw;
    background-color: black;
    color: white;
    font-family: monospace, sans-serif;
    box-sizing: border-box;
    scroll-margin-top: 80px;
}

.footer-contact,
.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-navigation {
    align-items: flex-end;
}

.site-footer a {
    color: inherit;
    font-family: monospace, sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-name {
    margin: 0;
    color: white;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 20px;
    white-space: nowrap;
}

.footer-copyright {
    margin: 10px 0 0;
    color: white;
    font-family: monospace, sans-serif;
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .site-footer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 36px 24px;
        padding: 36px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .site-footer a {
        overflow-wrap: anywhere;
    }
}

.work-page {
    width: min(1320px, 100% - 48px);
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 80px 0 100px;
    box-sizing: border-box;
}

.work-kicker {
    margin: 0 0 12px;
    color: #777e8c;
    font-family: monospace, sans-serif;
    font-size: 0.75rem;
    text-align: left;
    text-transform: uppercase;
}

.project-detail-heading h2 {
    margin: 0;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    text-transform: uppercase;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.project-filter {
    position: relative;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #111;
    font-family: monospace, sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 160ms ease;
}

.project-filter:hover {
    color: #777e8c;
}

.project-filter.is-active::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    background: #111;
    content: "";
}

.filter-separator {
    color: #a1a7b3;
    font-family: monospace, sans-serif;
    font-size: 0.75rem;
}

.project-link:focus-visible,
.project-back:focus-visible {
    outline: 3px solid #777e8c;
    outline-offset: 3px;
}

.project-filter:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-card {
    min-width: 0;
    border: 1px solid #d5d7db;
    background: #fff;
    transition: border-color 180ms ease, transform 180ms ease;
}

.project-card[hidden] {
    display: none;
}

.project-card:hover {
    border-color: #111;
    transform: translateY(-3px);
}

.project-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.project-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f0f0f0;
}

.project-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.project-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.project-meta h3 {
    min-width: 0;
    margin: 0;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.project-meta span,
.project-visit {
    font-family: monospace, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.project-copy > p {
    margin: 12px 0 24px;
    color: #555;
    font-family: monospace, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
}

.project-visit {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #d5d7db;
}

.project-empty {
    margin: 44px 0;
    color: #777e8c;
    font-family: monospace, sans-serif;
    font-size: 1rem;
    text-align: left;
}

.project-empty[hidden] {
    display: none;
}

.project-detail {
    width: min(1000px, 100% - 48px);
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 50px 0 100px;
    box-sizing: border-box;
}

.project-back {
    display: inline-block;
    margin-bottom: 48px;
    color: #111;
    font-family: monospace, sans-serif;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
}

.project-detail-heading {
    margin-bottom: 32px;
}

.project-detail-heading p {
    margin: 16px 0 0;
    color: #555;
    font-family: monospace, sans-serif;
    font-size: 1rem;
    text-align: left;
}

.project-detail-image {
    display: block;
    width: 100%;
    max-height: 720px;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f0f0f0;
}

.project-story {
    max-width: 720px;
    margin: 64px 0 0;
}

.project-story h3 {
    margin: 0 0 16px;
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.project-story p {
    margin: 0;
    color: #555;
    font-family: monospace, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 1100px) {
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .work-page,
    .project-detail {
        width: calc(100% - 32px);
        padding-top: 48px;
    }

    .project-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .project-copy {
        padding: 16px;
    }

    .project-back {
        margin-bottom: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-filter,
    .project-card {
        transition-duration: 0.01ms;
    }
}


.nerv-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nerv-gallery figure {
    min-width: 0;
    margin: 0;

}

.nerv-gallery__video {
    grid-column: 1 / -1;
    width: min(96%, 1280px);
    justify-self: center;
}

.prototype-showing {
    display: block;
    width: min(96%, 1280px);
    min-height: 0;
    margin: 56px auto 64px;
}

.prototype-showing__video {
    margin: 0;
}

.prototype-video {
    display: block;
    width: 100%;
    height: auto;
}

.selection-section {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 56px 0 0;
}

.selection-gallery {
    display: grid;
    width: min(96%, 1280px);
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
    align-items: start;
    justify-content: stretch;
    margin: 0 auto 112px;
}

.selection-gallery figure {
    min-width: 0;
    margin: 0;
}

.selection-gallery__item--feature {
    grid-column: 1 / -1;
}

.selection-gallery__image {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.takeaways-section {
    display: block;
    width: min(96%, 1280px);
    min-height: 0;
    margin: 0 auto 112px;
}

.myreg-main .takeaways-section {
    margin-top: 72px;
}

.tech-stack-section {
    display: block;
    width: min(96%, 1280px);
    min-height: 0;
    margin: 144px auto 112px;
}

.tech-stack-title {
    text-align: center;
}

.selection-description {
    max-width: 70ch;
}

.takeaways-list {
    display: grid;
    gap: 24px;
    max-width: 70ch;
    margin: 0;
    padding-left: 2rem;
    font-family: monospace;
    font-size: 1.125rem;
    line-height: 1.6;
    text-align: left;
}

.takeaways-list li::marker {
    color: #777e8c;
    font-family: 'ArchivoBlack', sans-serif;
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: min(100%, 70ch);
    max-width: 70ch;
    margin: 32px auto 0;
    padding: 0;
    list-style: none;
}

.tech-logos li {
    display: grid;
    width: 88px;
    height: 80px;
    place-items: center;
}

.tech-logos img {
    display: block;
    max-width: 88px;
    max-height: 72px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    mix-blend-mode: multiply;
    transition: filter 180ms ease, opacity 180ms ease;
}

.tech-logos img:hover {
    filter: none;
    opacity: 1;
}

@media (hover: none) {
    .tech-logos img {
        filter: none;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tech-logos img {
        transition: none;
    }
}

.nerv-gallery__images {
    display: grid;
    grid-column: 1 / -1;
    width: min(96%, 1280px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
    justify-self: center;
}

.nerv-gallery__item {
    min-width: 0;
    margin: 0;
}

.nerv-gallery__item--feature {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: center;
}

.nerv-gallery__item--right {
    grid-column: 2;
    width: min(100%, 640px);
    justify-self: end;
}

.nerv-gallery__image {
    margin-top: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.nerv-gallery img,
.nerv-gallery video {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .nerv-gallery {
        grid-template-columns: 1fr;
    }

    .nerv-gallery__video {
        grid-column: auto;
    }

    .nerv-gallery__images {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .selection-gallery {
        grid-template-columns: 1fr;
    }

    .nerv-gallery__item--right {
        grid-column: 1;
        width: min(96%, 640px);
        justify-self: center;
    }

    .problem-description {
        width: min(100%, 70ch);
    }
}

@media (max-width: 640px) {
    .scene {
        margin-top: 0;
    }

    .hero-container {
        min-height: calc(100svh - 80px);
        justify-content: flex-start;
        padding: 120px 18px 56px;
        box-sizing: border-box;
    }

    .hero-container > p {
        width: min(100%, 34ch);
        max-width: 34ch;
        margin: 0 auto;
        font-size: 20px;
        line-height: 1.45;
    }

    .coffee-slider-container {
        gap: 28px;
        margin-top: 48px;
    }

    .nerv-main,
    .myreg-main {
        padding: 48px 18px 32px;
    }

    .nerv-title,
    .myreg-title {
        margin-top: 20px;
        font-size: 40px;
    }

    .nerv-description,
    .myreg-description {
        width: 100%;
        max-width: 70ch;
        margin-top: 18px;
        font-size: 18px;
        line-height: 1.55;
    }

    .project-intro-cta {
        margin-top: 22px;
    }

    .myreg-video-section {
        width: min(100%, 520px);
        margin: 40px auto 48px;
    }

    .myreg-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        width: 100%;
        margin: 0 auto 72px;
        align-items: start;
        transform: none;
    }

    .myreg-gallery-item {
        box-sizing: border-box;
    }

    .myreg-gallery-item--feature {
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
    }

    .myreg-gallery-item--right {
        grid-column: 1;
        width: min(84%, 320px);
        justify-self: center;
        align-self: center;
        transform: none;
    }

    .myreg-gallery-item--wide {
        grid-column: 1;
        width: 100%;
        margin-top: 0;
        transform: none;
    }

    .myreg-approach-image {
        width: 100%;
        margin: 32px 0 0;
    }

    .myreg-approach-image + .myreg-approach-image {
        margin-top: 32px;
    }

    .myreg-approach-video {
        width: min(82%, 320px);
    }

    .problem-section,
    .takeaways-section,
    .tech-stack-section {
        width: 100%;
    }

    .nerv-main .problem-section,
    .myreg-main .problem-section {
        margin-top: 72px;
    }

    .nerv-main .takeaways-section,
    .myreg-main .takeaways-section {
        margin: 72px auto;
    }

    .nerv-main .tech-stack-section,
    .myreg-main .tech-stack-section {
        margin: 88px auto 72px;
    }

    .nerv-gallery__video,
    .nerv-gallery__images {
        width: 100%;
    }
}

@media (max-width: 340px) {
    .slider-track {
        width: 250px;
    }

    .coffee-cup-thumb {
        left: -26px;
        width: 82px;
        height: 110px;
    }
}

@media (max-width: 640px) {

.top-bar {
    padding: 20px 24px;
}

.top-bar h1 {
    font-size: 16px;
}

.scene {
    margin-right: 0;
    transform: scale(0.6);
    transform-origin: right center;
}

.hero-container > p {
    width: min(100%, 36ch);
    max-width: 36ch;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
}

.slider-track {
    width: min(236px, 70vw);
    height: 46px;
}

.coffee-cup-thumb {
    width: 84px;
    height: 112px;
    left: -34px;
}

.track-text {
    font-size: 0.75rem;
}

.coffee-slider-container {
    margin-top: 40px;
}

.site-footer {
    gap: 24px 16px;
    padding: 32px 20px;
}

.site-footer a {
    font-size: 0.75rem;
}

.footer-contact,
.footer-navigation {
    gap: 8px;
}

.footer-name {
    font-size: 16px;
}

.footer-copyright {
    font-size: 0.625rem;
}

.site-footer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
}

.footer-contact,
.footer-navigation {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
}

.footer-navigation {
    align-items: center;
}

}

@media (max-width: 600px) {
    .project-filters {
        flex-wrap: nowrap;
        gap: 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .project-filter {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 6px;
        font-size: 0.75rem;
    }

    .filter-separator {
        font-size: 0.7rem;
    }

    .project-grid {
        gap: 16px;
    }

    .project-image {
        aspect-ratio: 16 / 10;
    }

    .project-copy {
        padding: 14px;
    }

    .project-meta h3 {
        font-size: 1rem;
    }

    .project-copy > p {
        margin: 8px 0 16px;
        font-size: 0.8rem;
    }

    .project-visit {
        padding-top: 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .nerv-main .problem-description,
    .nerv-main .research-description,
    .nerv-main .mockup-description,
    .nerv-main .selection-description,
    .myreg-main .problem-description,
    .myreg-main .research-description,
    .myreg-main .mockup-description,
    .myreg-main .selection-description {
        width: 100%;
        max-width: none;
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: justify;
        hyphens: auto;
        margin: 0 0 22px;
    }

    .problem-description + .problem-description {
        margin-top: 0;
    }

    .problem-head,
    .approach-head {
        font-size: 1.5rem;
        margin: 0 0 18px;
    }

    .approach-head {
        margin-top: 44px;
    }

    .research-head,
    .mockup-head {
        font-size: 1rem;
        margin: 28px 0 10px;
    }

    .takeaways-list {
        gap: 18px;
        padding-left: 1.4rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .nerv-main .takeaways-section,
    .myreg-main .takeaways-section {
        margin: 56px auto;
    }

    .selection-section {
        margin-top: 32px;
    }
}

@media (max-width: 640px) {
    .nerv-title,
    .myreg-title {
        margin-bottom: 14px;
    }

    .nerv-description,
    .myreg-description {
        max-width: 34ch;
        margin: 0 auto;
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: center;
    }

    .nerv-description + .project-intro-cta,
    .myreg-description + .project-intro-cta {
        margin-top: 32px;
    }
}

@media (max-width: 640px) {
    .nerv-title,
    .myreg-title {
        margin-top: 70px;
    }
}

@media (max-width: 640px) {
    .hero-container {
        justify-content: center;
        padding: 120px 18px 56px;
    }

    .hero-container > p {
        width: min(100%, 34ch);
        max-width: 34ch;
        margin: 0 auto 36px;
        font-size: 16px;
        line-height: 1.7;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .myreg-main .problem-section .problem-description,
    .myreg-main .problem-section .research-description,
    .myreg-main .problem-section .mockup-description {
        margin: 0 0 22px;
    }

    .myreg-main .problem-section .research-head,
    .myreg-main .problem-section .mockup-head {
        margin-top: 44px;
    }
}

@media (max-width: 640px) {
    .contact-form-page {
        width: calc(100% - 56px);
        padding-top: 110px;
    }

    .footer-contact a[href^="tel:"] {
        display: none;
    }

    .footer-contact a[href^="mailto:"] {
        flex-basis: 100%;
    }
}

@media (max-width: 640px) {
    .site-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: 36px 20px;
        text-align: center;
    }

    .footer-navigation {
        display: none;
    }

    .footer-contact {
        order: 1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }

    .footer-brand {
        order: 2;
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .experience-milestone__date {
        margin-bottom: 14px;
    }

    .experience-milestone__content p {
        margin: 0 0 18px;
        font-size: 15px;
        line-height: 1.65;
    }

    .experience-milestone__content p:last-child {
        margin-bottom: 0;
    }

    .experience-milestone {
        padding: 0 0 56px 48px;
    }
}

@media (max-width: 600px) {
    .circle-pen::after {
        top: -4px;
        bottom: -4px;
        left: -6px;
        right: -6px;
    }
}

@media (max-width: 640px) {
    .contact-form-intro h2 {
        font-size: 36px;
        white-space: nowrap;
    }
}