:root {
    --ink: #080808;
    --paper: #f4efe4;
    --white: #fffdf7;
    --acid: #dfff00;
    --orange: #ff5c35;
    --aqua: #63d9ca;
    --blue: #5b65f5;
    --pink: #ff90c8;
    --purple: #b9a7ff;
    --line: 3px solid var(--ink);
    --radius: 28px;
    --display: "Bowlby One SC", "Arial Black", sans-serif;
    --mono: "DM Mono", monospace;
    --sans: "Inter", Arial, sans-serif;
    --shadow: 8px 8px 0 var(--ink);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--ink);
    color: var(--acid);
}

a {
    color: inherit;
    text-decoration: none;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

a:focus-visible, button:focus-visible {
    outline: 4px solid var(--blue);
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    translate: 0 -200%;
    border: var(--line);
    background: var(--acid);
    font-family: var(--mono);
    font-weight: 700;
    transition: translate .2s ease;
}

.skip-link:focus {
    translate: 0;
}

.sticker-cursor {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 52px;
    height: 34px;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    translate: -50% -50%;
    transition: opacity .2s ease;
}

.sticker-cursor__shadow,
.sticker-cursor__letter {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.12em;
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
    user-select: none;
    transform-origin: center;
    transition: color .2s ease, transform .22s cubic-bezier(.2, .8, .2, 1), -webkit-text-stroke-width .2s ease;
}

.sticker-cursor__shadow {
    color: var(--acid);
    transform: translate(4px, 4px) rotate(-8deg);
}

.sticker-cursor__letter {
    color: var(--white);
    transform: rotate(-8deg);
}

.sticker-cursor.is-visible {
    opacity: 1;
}

.sticker-cursor.is-card .sticker-cursor__letter {
    color: var(--sticker-fill, var(--white));
}

.sticker-cursor.is-card .sticker-cursor__shadow {
    transform: translate(6px, 6px) rotate(-8deg) scale(1.06);
    -webkit-text-stroke-width: 3px;
}

.sticker-cursor.is-link .sticker-cursor__letter {
    transform: translate(-2px, -2px) rotate(-8deg) scale(1.04);
}

.sticker-cursor.is-link .sticker-cursor__shadow {
    transform: translate(6px, 6px) rotate(-8deg) scale(1.08);
}

body.custom-cursor,
body.custom-cursor a,
body.custom-cursor button,
body.custom-cursor [role="button"],
body.custom-cursor .tech-chip,
body.custom-cursor .project-tech__item {
    cursor: none;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1.15rem 2.3rem;
    border-bottom: 2px solid transparent;
    transition: padding .3s ease, background .3s ease, border-color .3s ease, transform .35s ease;
}

.site-header.is-scrolled {
    padding-block: .7rem;
    border-color: var(--ink);
    background: rgba(244, 239, 228, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.brand {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--display);
    font-size: 1.1rem;
    letter-spacing: -.04em;
}

.brand sup {
    font-family: var(--mono);
    font-size: .45em;
    vertical-align: super;
}

.brand__face {
    position: relative;
    width: 40px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 2px solid var(--ink);
    border-radius: 48% 48% 44% 44%;
    background: var(--acid);
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-5deg);
}

.brand__face::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 11px;
    height: 4px;
    border-bottom: 2px solid var(--ink);
    border-radius: 50%;
}

.brand__face i {
    width: 4px;
    height: 6px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--ink);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 500;
    text-transform: uppercase;
}

.site-nav a {
    position: relative;
    z-index: 0;
    padding: .5rem 0;
}

.site-nav a::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: .12rem -.7rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--acid);
    box-shadow: 2px 2px 0 var(--ink);
    opacity: 0;
    transform: scale(.72) rotate(-2deg);
    transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-nav a.is-active::before {
    opacity: 1;
    transform: scale(1) rotate(-2deg);
}

.site-nav a.is-active::after {
    transform: scaleX(0);
}

.site-nav a.is-active span {
    color: var(--ink);
}

.site-nav span {
    margin-right: .25rem;
    color: #67645f;
    font-size: .62rem;
}

.site-nav__event {
    display: none;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.header-event-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .75rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--white);
    box-shadow: 3px 3px 0 var(--orange);
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    transition: box-shadow .2s ease, translate .2s ease, background .2s ease;
}

.header-event-link i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
}

.header-event-link strong {
    padding-left: .45rem;
    border-left: 1px solid var(--ink);
}

.header-event-link b {
    font-size: .8rem;
}

.header-event-link:hover {
    background: var(--paper);
    box-shadow: 0 0 0 var(--orange);
    translate: 3px 3px;
}

.header-event-link[hidden],
.site-nav__event[hidden] {
    display: none;
}

.header-cta {
    padding: .6rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--acid);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: box-shadow .2s ease, translate .2s ease;
}

.header-cta:hover {
    translate: 3px 3px;
    box-shadow: 0 0 0 var(--ink);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    transition: transform .2s ease;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    padding: 8.5rem 5vw 5rem;
    background: var(--paper);
}

.hero__grid {
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 77%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 77%, transparent);
}

.float-code {
    position: absolute;
    z-index: 2;
    padding: .75rem .85rem;
    border: 2px solid var(--ink);
    background: var(--white);
    box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--mono);
    font-size: .64rem;
    line-height: 1.5;
}

.float-code span,
.float-code strong {
    color: var(--orange);
}

.float-code--one {
    top: 14%;
    left: 42%;
    transform: rotate(5deg);
}

.float-code--two {
    right: 34%;
    bottom: 8%;
    transform: rotate(-4deg);
}

.float-code--two strong {
    color: #168274;
}

.float-code--three {
    top: 9%;
    right: 5%;
    transform: rotate(-6deg);
}

.float-code--three span {
    color: var(--blue);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 5vw;
    bottom: 3rem;
    width: 47%;
    border-bottom: 2px solid var(--ink);
}

.hero__copy {
    position: relative;
    z-index: 4;
    min-width: 0;
    align-self: center;
    padding-top: 1rem;
}

.hero h1 {
    position: relative;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(5.7rem, 11.2vw, 11.8rem);
    font-weight: 400;
    line-height: .74;
    letter-spacing: -.07em;
    text-transform: uppercase;
}

.hero-title__line {
    display: block;
    width: max-content;
}

.hero-title__line--accent {
    position: relative;
    color: var(--orange);
    -webkit-text-stroke: 3px var(--ink);
    paint-order: stroke fill;
    text-shadow: 7px 7px 0 var(--ink);
    transform: rotate(-2deg) translateX(.3rem);
}

.hero-title__line i {
    position: absolute;
    top: -.14em;
    right: -.18em;
    color: var(--acid);
    font-family: var(--display);
    font-size: .5em;
    font-style: normal;
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 3px 3px 0 var(--ink);
    transform: rotate(12deg);
}

.hero-title__surname {
    display: block;
    width: max-content;
    margin: 1.35rem 0 0 .45rem;
    padding: .45rem .8rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--white);
    box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--mono);
    font-size: clamp(.78rem, 1.15vw, 1.05rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
    transform: rotate(1deg);
}

.hero__role {
    max-width: 680px;
    margin: 2.2rem 0 0;
    font-family: var(--mono);
    font-size: clamp(.86rem, 1.35vw, 1.18rem);
    font-weight: 500;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.hero__role span {
    display: inline-grid;
    width: 1.8em;
    height: 1.8em;
    place-items: center;
    margin-inline: .15rem;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
    font-family: var(--display);
}

.hero__intro {
    max-width: 540px;
    margin: 1.1rem 0 1.5rem;
    font-size: clamp(.95rem, 1.2vw, 1.12rem);
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-width: 240px;
    padding: 1rem 1.1rem 1rem 1.35rem;
    border: var(--line);
    border-radius: 99px;
    box-shadow: 5px 5px 0 var(--ink);
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: translate .2s ease, box-shadow .2s ease;
}

.button b {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.button:hover {
    translate: 5px 5px;
    box-shadow: none;
}

.button--dark {
    background: var(--ink);
    color: var(--white);
    box-shadow: 5px 5px 0 var(--orange);
}

.button--dark b {
    background: var(--acid);
    color: var(--ink);
}

.button--acid {
    background: var(--acid);
}

.button--acid b {
    background: var(--ink);
    color: var(--white);
}

.text-link {
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--ink);
    font-family: var(--mono);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero__visual {
    position: relative;
    z-index: 3;
    width: min(100%, 640px);
    justify-self: end;
}

.hero__burst {
    position: absolute;
    z-index: -1;
    top: 4%;
    left: 3%;
    width: 95%;
    aspect-ratio: 1;
    background: repeating-conic-gradient(from 2deg, var(--acid) 0deg 7deg, transparent 7deg 14deg);
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle, #000 0 51%, transparent 72%);
    mask-image: radial-gradient(circle, #000 0 51%, transparent 72%);
    animation: slow-spin 28s linear infinite;
}

.portrait-reveal {
    --portrait-reveal: 0%;
    position: relative;
    z-index: 1;
    width: 91%;
    display: block;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}

.portrait-reveal__frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 22 / 25;
    overflow: hidden;
    border: 7px solid var(--ink);
    border-radius: 48% 48% 30px 30px;
    background: var(--paper);
    box-shadow: 12px 12px 0 var(--ink), 20px 20px 0 var(--orange);
    transform: rotate(2deg);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.portrait-reveal:hover .portrait-reveal__frame,
.portrait-reveal:focus-visible .portrait-reveal__frame {
    box-shadow: 8px 8px 0 var(--ink), 14px 14px 0 var(--orange);
    transform: rotate(0deg) translate(4px, 4px);
}

.portrait-reveal:focus-visible {
    outline: none;
}

.portrait-reveal:focus-visible .portrait-reveal__frame {
    outline: 5px solid var(--blue);
    outline-offset: 5px;
}

.portrait-reveal__frame::after {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background: repeating-linear-gradient(to bottom, transparent 0 5px, var(--ink) 5px 6px);
    mix-blend-mode: multiply;
}

.portrait-reveal__image {
    position: absolute;
    display: block;
    max-width: none;
    -webkit-user-drag: none;
    user-select: none;
}

.portrait-reveal__image--illustrated {
    top: -6.5%;
    left: -7%;
    width: 114%;
    height: 114%;
    object-fit: cover;
    object-position: center center;
}

.portrait-reveal__real {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--portrait-reveal)) 0 0);
    transition: clip-path .5s cubic-bezier(.76, 0, .24, 1);
}

.portrait-reveal.is-interacting .portrait-reveal__real {
    transition-duration: .08s;
    transition-timing-function: linear;
}

.portrait-reveal__image--photo {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
    filter: saturate(.88) contrast(1.03);
}

.portrait-reveal__scan {
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    left: var(--portrait-reveal);
    width: 5px;
    background: var(--acid);
    box-shadow: 0 0 0 2px var(--ink), 0 0 24px 8px rgba(223, 255, 0, .7);
    opacity: 0;
    transform: translateX(-50%);
    transition: left .5s cubic-bezier(.76, 0, .24, 1), opacity .2s ease;
}

.portrait-reveal.is-interacting .portrait-reveal__scan {
    opacity: 1;
    transition-duration: .08s;
    transition-timing-function: linear;
}

.portrait-reveal.is-locked .portrait-reveal__scan {
    opacity: 0;
}

.portrait-reveal__scan i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 3px 3px 0 var(--ink);
    transform: translate(-50%, -50%);
}

.portrait-reveal__scan i::before,
.portrait-reveal__scan i::after {
    content: "";
    position: absolute;
    top: 9px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.portrait-reveal__scan i::before {
    left: 5px;
    border-right: 6px solid var(--ink);
}

.portrait-reveal__scan i::after {
    right: 5px;
    border-left: 6px solid var(--ink);
}

.portrait-reveal__hint {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin: 1.6rem auto 0;
    padding: .55rem .8rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--white);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--mono);
    font-size: clamp(.55rem, .72vw, .66rem);
    font-style: normal;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.portrait-reveal__hint i {
    color: var(--orange);
    font-size: 1rem;
    font-style: normal;
}

.hero-event-badge {
    position: absolute;
    z-index: 3;
    right: -1%;
    bottom: 11%;
    min-width: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .8rem 1rem;
    border: var(--line);
    border-radius: 21px;
    background: var(--acid);
    box-shadow: 5px 5px 0 var(--ink);
    color: var(--ink);
    text-align: center;
    transform: rotate(7deg);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-event-badge::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: -15px;
    width: 24px;
    height: 25px;
    border-right: var(--line);
    border-bottom: var(--line);
    background: var(--acid);
    transform: skew(-25deg) rotate(20deg);
}

.hero-event-badge:hover {
    box-shadow: 2px 2px 0 var(--ink);
    transform: translate(3px, 3px) rotate(3deg) scale(1.04);
}

.hero-event-badge[hidden] {
    display: none;
}

.hero-event-badge span,
.hero-event-badge small {
    position: relative;
    z-index: 1;
    font-family: var(--mono);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-event-badge strong {
    position: relative;
    z-index: 1;
    margin: .18rem 0;
    font-family: var(--display);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
}

.profile {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 10vw, 11rem) 4vw 6rem;
    border-bottom: var(--line);
    background: var(--white);
}

.profile__heading {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.45fr .55fr;
    max-width: 1480px;
    margin: 0 auto clamp(3.5rem, 6vw, 6rem);
}

.profile__heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(4rem, 7.5vw, 8.3rem);
    font-weight: 400;
    line-height: .84;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.profile__heading h2 em {
    color: var(--blue);
    font-style: normal;
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
}

.profile__heading > p:last-child {
    align-self: end;
    max-width: 430px;
    margin: 0 0 .4rem 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.profile__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 1480px;
    margin: 0 auto;
}

.profile-card {
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.3rem, 2.4vw, 2.4rem);
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: box-shadow .35s ease, filter .35s ease;
}

.profile-card.is-pointer-tilting,
.project-card.is-pointer-tilting,
.experience-card.is-pointer-tilting,
.bento-card.is-pointer-tilting {
    will-change: transform;
}

.profile-card.is-pointer-tilting,
.project-card.is-pointer-tilting,
.experience-card.is-pointer-tilting,
.bento-card.is-pointer-tilting {
    filter: saturate(1.04);
}

[data-lens-card] {
    --lens-x: 50%;
    --lens-y: 50%;
    --lens-radius: 70px;
    --lens-diameter: 140px;
}

[data-lens-card]:focus-visible {
    outline: 5px solid var(--blue);
    outline-offset: 5px;
}

.card-lens {
    position: absolute;
    z-index: 8;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    clip-path: circle(0 at var(--lens-x) var(--lens-y));
    opacity: 0;
    background: var(--ink);
    transition: clip-path .16s linear, opacity .18s ease;
}

.card-lens::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
    background-size: 18px 18px;
}

.card-lens::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background: repeating-linear-gradient(to bottom, transparent 0 6px, var(--white) 6px 7px);
    mix-blend-mode: screen;
}

.card-lens__mirror {
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 100% !important;
    display: flex;
    overflow: hidden;
    padding: clamp(1.3rem, 2.4vw, 2.4rem);
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

.card-lens__mirror .card-lens,
.card-lens__mirror .card-lens__ring {
    display: none;
}

.card-lens__mirror .project-novum__body {
    width: 100%;
}

.card-lens__ring {
    position: absolute;
    z-index: 9;
    top: var(--lens-y);
    left: var(--lens-x);
    width: var(--lens-diameter);
    height: var(--lens-diameter);
    border: 3px solid var(--acid);
    border-radius: 50%;
    background: rgba(223,255,0,.08);
    box-shadow: 4px 4px 0 var(--ink), 0 0 0 2px rgba(255,255,255,.45);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .18s ease, width .2s ease, height .2s ease;
}

.card-lens__ring::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 2px var(--ink);
    transform: translate(-50%, -50%);
}

.card-lens--backend { background: var(--aqua); color: var(--ink); }
.card-lens--qa { background: var(--ink); color: var(--white); }
.card-lens--product { background: var(--blue); color: var(--white); }
.card-lens--rpa { background: var(--acid); color: var(--ink); }
.card-lens--novum { background: var(--acid); color: var(--ink); }

.card-lens--backend .profile-card__icon {
    color: var(--blue);
    text-shadow: 7px 7px 0 var(--ink);
}

.card-lens--qa .qa-face {
    background: var(--aqua);
    box-shadow: 8px 8px 0 var(--blue);
}

.card-lens--qa .qa-face i { background: var(--acid); }

.card-lens--product .product-windows i {
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
}

.card-lens--product .product-windows i:nth-child(2) { background: var(--aqua); }
.card-lens--product .product-windows i:nth-child(3) { background: var(--pink); }

.card-lens--rpa .rpa-route span { background: var(--white); }
.card-lens--rpa .rpa-route span:nth-of-type(2) { background: var(--blue); color: var(--white); }

.card-lens--novum .novum-preview__browser {
    box-shadow: 10px 10px 0 var(--ink), 17px 17px 0 var(--orange);
}

.card-lens--novum .novum-preview img { filter: saturate(.65) contrast(1.08); }

.card-lens--experience-role { background: var(--aqua); color: var(--ink); }
.card-lens--experience-regulated { background: var(--acid); color: var(--ink); }
.card-lens--experience-qa { background: var(--blue); color: var(--white); }
.card-lens--experience-teaching { background: var(--aqua); color: var(--ink); }

.card-lens--experience-role .experience-card__symbol {
    color: var(--blue);
    text-shadow: 7px 7px 0 var(--ink);
}

.card-lens--experience-regulated .regulated-dial {
    border-color: var(--blue);
    box-shadow: 6px 6px 0 var(--blue);
}

.card-lens--experience-regulated .regulated-dial::before,
.card-lens--experience-regulated .regulated-dial i { border-color: var(--blue); }
.card-lens--experience-regulated .regulated-dial i { background: var(--blue); }

.card-lens--experience-qa .qa-face {
    background: var(--aqua);
    box-shadow: 8px 8px 0 var(--ink);
}

.card-lens--experience-qa .qa-face i,
.card-lens--experience-qa .qa-face span { background: var(--acid); }

.card-lens--experience-teaching .teaching-board {
    border-color: var(--ink);
    background: var(--blue);
    box-shadow: 8px 8px 0 var(--ink);
    color: var(--acid);
}

.card-lens--experience-teaching .teaching-board::after {
    border-color: var(--ink);
    background: var(--pink);
}

[data-lens-card].is-lens-active .card-lens {
    clip-path: circle(var(--lens-radius) at var(--lens-x) var(--lens-y));
    opacity: 1;
}

[data-lens-card].is-lens-active .card-lens__ring {
    opacity: 1;
}

[data-lens-card].is-lens-locked .card-lens__ring {
    border-color: var(--aqua);
    background: rgba(99,217,202,.12);
}

.profile-card--backend {
    grid-column: span 7;
    background: var(--ink);
    box-shadow: 8px 8px 0 var(--orange);
    color: var(--white);
}

.profile-card--qa {
    grid-column: span 5;
    background: var(--pink);
}

.profile-card--product {
    grid-column: span 5;
    background: var(--aqua);
}

.profile-card--product h3 {
    max-width: 82%;
    font-size: clamp(2.35rem, 4vw, 4.4rem);
}

.profile-card--rpa {
    grid-column: span 7;
    background: var(--orange);
}

.profile-card__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: .9rem;
    border-bottom: 2px solid currentColor;
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-card__top b {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.profile-card h3 {
    position: relative;
    z-index: 2;
    margin: auto 0 1rem;
    font-family: var(--display);
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    font-weight: 400;
    line-height: .82;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.profile-card__long-word {
    display: inline-block;
    white-space: nowrap;
}

.profile-card > p {
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin: 0;
    font-size: .98rem;
    line-height: 1.5;
}

.profile-card__icon {
    position: absolute;
    top: 18%;
    right: 7%;
    color: var(--acid);
    font-family: var(--mono);
    font-size: clamp(5rem, 10vw, 10rem);
    font-weight: 700;
    line-height: 1;
    text-shadow: 7px 7px 0 var(--orange);
    transform: rotate(5deg);
}

.qa-face {
    position: absolute;
    top: 19%;
    right: 10%;
    width: 145px;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 5px solid var(--ink);
    border-radius: 46% 52% 48% 44%;
    background: var(--white);
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(6deg);
}

.qa-face i {
    width: 21px;
    height: 31px;
    border: 4px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
}

.qa-face span {
    position: absolute;
    right: -15px;
    bottom: -14px;
    width: 51px;
    height: 51px;
    display: grid;
    place-items: center;
    border: 4px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
    font-family: var(--display);
    font-size: 1.3rem;
}

.product-windows {
    position: absolute;
    top: 16%;
    right: 5%;
    width: 190px;
    height: 150px;
    transform: scale(.76);
    transform-origin: top right;
}

.product-windows i {
    position: absolute;
    width: 112px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 4px solid var(--ink);
    border-radius: 11px;
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
    font-family: var(--mono);
    font-size: .72rem;
    font-style: normal;
    font-weight: 700;
}

.product-windows i:nth-child(1) { top: 0; left: 0; transform: rotate(-5deg); }
.product-windows i:nth-child(2) { top: 35px; right: 0; background: var(--acid); transform: rotate(5deg); }
.product-windows i:nth-child(3) { bottom: 0; left: 23px; background: var(--orange); transform: rotate(2deg); }

.rpa-route {
    position: absolute;
    top: 23%;
    right: 6%;
    display: flex;
    align-items: center;
    gap: .65rem;
    transform: rotate(-4deg);
}

.rpa-route span {
    min-width: 72px;
    padding: .7rem;
    border: var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.rpa-route span:nth-of-type(2) {
    background: var(--acid);
}

.rpa-route i {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
}

.projects {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 10vw, 10rem) 4vw 7rem;
    border-bottom: var(--line);
    background: var(--ink);
    color: var(--white);
}

.projects__heading {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    max-width: 1480px;
    margin: 0 auto clamp(3.5rem, 6vw, 6rem);
}

.projects__heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(4rem, 8vw, 8.8rem);
    font-weight: 400;
    line-height: .82;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.projects__heading h2 em {
    color: var(--acid);
    font-style: normal;
    -webkit-text-stroke: 2px var(--white);
    paint-order: stroke fill;
}

.projects__heading > p:last-child {
    align-self: end;
    max-width: 450px;
    margin: 0 0 .5rem 1rem;
    color: rgba(255, 253, 247, .75);
    font-size: 1rem;
    line-height: 1.6;
}

.projects__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 1480px;
    margin: 0 auto;
}

.projects-subheading {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(190px, .45fr) minmax(0, 1fr) minmax(280px, .7fr);
    align-items: end;
    gap: clamp(1.2rem, 3vw, 3.5rem);
    padding: 1.35rem 0 1.5rem;
    border-block: 2px solid rgba(255, 253, 247, .72);
}

.projects-subheading--clients {
    margin-top: clamp(3rem, 6vw, 6rem);
}

.projects-subheading > span {
    color: var(--acid);
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.projects-subheading h3 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 3.6rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.projects-subheading p {
    margin: 0;
    color: rgba(255, 253, 247, .72);
    font-size: .9rem;
    line-height: 1.5;
}

.project-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.3rem, 2.3vw, 2.4rem);
    border: var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: box-shadow .35s ease, filter .35s ease;
}

.project-card--novum {
    grid-column: 1 / -1;
    min-height: 760px;
    border-color: var(--white);
    background: var(--blue);
    box-shadow: 9px 9px 0 var(--acid);
    color: var(--white);
}

.project-card--inventory {
    grid-column: span 7;
    min-height: 590px;
    background: var(--acid);
}

.project-card--hospital {
    grid-column: span 5;
    min-height: 630px;
    background: var(--aqua);
}

.project-card--lab {
    grid-column: span 5;
    min-height: 630px;
    background: var(--orange);
}

.project-card--events {
    grid-column: span 7;
    min-height: 630px;
    background: var(--pink);
}

.project-card__meta {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid currentColor;
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.project-card__meta b {
    padding: .38rem .58rem;
    border: 1px solid currentColor;
    border-radius: 99px;
    font-size: .58rem;
}

.project-novum__body {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    padding: clamp(2.5rem, 5vw, 5rem) 0 2.5rem;
}

.project-card__kicker {
    width: max-content;
    margin: 0 0 1rem;
    padding: .48rem .7rem;
    border: 2px solid currentColor;
    border-radius: 99px;
    background: var(--acid);
    box-shadow: 4px 4px 0 var(--ink);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.project-novum__copy h3 {
    max-width: 760px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3.3rem, 6vw, 7rem);
    font-weight: 400;
    line-height: .85;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.project-novum__copy h3 em {
    display: block;
    color: var(--acid);
    font-style: normal;
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
    text-shadow: 5px 5px 0 var(--ink);
}

.project-novum__copy > p:not(.project-card__kicker) {
    max-width: 620px;
    margin: 1.6rem 0 0;
    color: rgba(255, 253, 247, .82);
    font-size: 1rem;
    line-height: 1.65;
}

.project-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    max-width: 620px;
    margin: 1.4rem 0 0;
}

.project-proof div {
    min-width: 0;
    padding: .8rem .9rem;
    border: 1px solid rgba(255, 253, 247, .55);
    border-radius: 13px;
    background: rgba(8, 8, 8, .12);
}

.project-proof dt {
    color: var(--acid);
    font-family: var(--mono);
    font-size: .54rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-proof dd {
    margin: .35rem 0 0;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.project-card--novum .button {
    border-color: var(--ink);
    color: var(--ink);
}

.project-novum__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem 1.25rem;
    margin-top: 1.6rem;
}

.project-secondary-link {
    padding: .45rem 0 .3rem;
    border-bottom: 2px solid currentColor;
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease;
}

.project-secondary-link:hover {
    border-color: var(--acid);
    color: var(--acid);
}

.novum-preview {
    min-width: 0;
    margin: 0;
}

.novum-preview__browser {
    overflow: hidden;
    border: 5px solid var(--ink);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 10px 10px 0 var(--ink), 17px 17px 0 var(--acid);
    transform: rotate(1.25deg);
    transition: box-shadow .3s ease, transform .3s ease;
}

.novum-preview:hover .novum-preview__browser {
    box-shadow: 6px 6px 0 var(--ink), 11px 11px 0 var(--acid);
    transform: rotate(0deg) translate(4px, 4px);
}

.novum-preview__bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .8rem;
    border-bottom: 3px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
}

.novum-preview__bar i {
    width: 10px;
    height: 10px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--orange);
}

.novum-preview__bar i:nth-of-type(2) { background: var(--acid); }
.novum-preview__bar i:nth-of-type(3) { background: var(--aqua); }

.novum-preview__bar span,
.novum-preview__bar b {
    font-family: var(--mono);
    font-size: .56rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.novum-preview__bar span {
    margin-left: .3rem;
}

.novum-preview__bar b {
    margin-left: auto;
    padding: .25rem .45rem;
    border: 1px solid var(--ink);
    border-radius: 99px;
    background: var(--acid);
}

.novum-preview__browser > a {
    display: block;
    overflow: hidden;
}

.novum-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.novum-preview a:hover img {
    transform: scale(1.018);
}

.novum-preview a:focus-visible {
    outline: 5px solid var(--acid);
    outline-offset: -7px;
}

.novum-preview figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    color: rgba(255, 253, 247, .7);
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.novum-preview figcaption span {
    color: var(--acid);
}

.project-card--inventory h3,
.project-card--hospital h3,
.project-card--lab h3,
.project-card--events h3 {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 0 1rem;
    font-family: var(--display);
    font-size: clamp(2.4rem, 4.5vw, 5rem);
    font-weight: 400;
    line-height: .88;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.project-card--inventory > p:not(.project-card__client),
.project-card--hospital > p:not(.project-card__client),
.project-card--lab > p:not(.project-card__client),
.project-card--events > p:not(.project-card__client) {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0;
    font-size: .96rem;
    line-height: 1.55;
}

.project-card--inventory > p.case-outcome,
.project-card--hospital > p.case-outcome,
.project-card--lab > p.case-outcome,
.project-card--events > p.case-outcome,
.experience-card > p.case-outcome {
    display: grid;
    gap: .35rem;
    max-width: 680px;
    margin: 1rem 0 0;
    padding: .75rem .85rem;
    border: 2px solid currentColor;
    border-radius: 13px;
    background: rgba(255, 253, 247, .28);
    font-size: .82rem;
    line-height: 1.4;
}

.case-outcome span {
    font-family: var(--mono);
    font-size: .54rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.case-outcome strong {
    font-weight: 700;
}

.project-card__client {
    position: relative;
    z-index: 3;
    width: max-content;
    max-width: 100%;
    margin: auto 0 .8rem;
    padding: .45rem .65rem;
    border: 2px solid currentColor;
    border-radius: 99px;
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.project-card__client--logo {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .5rem .85rem .5rem .5rem;
    border-radius: 18px;
    background: rgba(255, 253, 247, .48);
    text-transform: none;
}

.project-client__logo {
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: .2rem;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-3deg);
}

.project-client__logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.project-client__identity {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.project-client__identity small {
    font-family: var(--mono);
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-client__identity strong {
    max-width: 25rem;
    font-family: var(--mono);
    font-size: .7rem;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.project-card--inventory .inventory-visual {
    position: relative;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    align-self: flex-end;
    margin: 2rem 0 2.2rem auto;
    transform: scale(.92);
    transform-origin: center right;
}

.project-card--events .invitation-card {
    position: relative;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    align-self: flex-end;
    margin: 2rem 1rem 2.2rem auto;
}

.project-card--hospital .hospital-cross {
    position: relative;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    align-self: flex-end;
    margin: 2rem 1rem 2.2rem auto;
}

.lab-app-visual {
    position: relative;
    flex: 0 0 auto;
    align-self: flex-end;
    width: 255px;
    height: 170px;
    margin: 2rem .5rem 2.2rem auto;
}

.lab-app-visual > div {
    position: absolute;
    top: 0;
    right: 0;
    width: 170px;
    height: 125px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid var(--ink);
    border-radius: 15px;
    background: var(--white);
    box-shadow: 7px 7px 0 var(--ink);
    transform: rotate(5deg);
}

.lab-app-visual > div::before {
    content: "";
    position: absolute;
    inset: 13px;
    opacity: .2;
    background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
    background-size: 18px 18px;
}

.lab-app-visual div span {
    position: relative;
    z-index: 2;
    font-family: var(--display);
    font-size: 2.6rem;
}

.lab-app-visual div i {
    position: absolute;
    z-index: 2;
    width: 10px;
    height: 10px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
}

.lab-app-visual div i:nth-of-type(1) { top: 14px; left: 15px; }
.lab-app-visual div i:nth-of-type(2) { top: 15px; right: 15px; background: var(--pink); }
.lab-app-visual div i:nth-of-type(3) { right: 16px; bottom: 14px; background: var(--aqua); }

.lab-app-visual > b {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: .75rem 1rem;
    border: 4px solid var(--ink);
    border-radius: 12px;
    background: var(--acid);
    box-shadow: 5px 5px 0 var(--ink);
    font-family: var(--mono);
    font-size: .72rem;
    transform: rotate(-6deg);
}

.experience {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 10vw, 11rem) 4vw 7rem;
    border-bottom: var(--line);
    background: var(--white);
}

.experience__heading {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    max-width: 1480px;
    margin: 0 auto clamp(3.5rem, 6vw, 6rem);
}

.experience__heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(4rem, 8vw, 8.8rem);
    font-weight: 400;
    line-height: .82;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.experience__heading h2 em {
    color: var(--orange);
    font-style: normal;
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
}

.experience__heading > p:last-child {
    align-self: end;
    max-width: 440px;
    margin: 0 0 .5rem 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.experience__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 1480px;
    margin: 0 auto;
}

.experience-card {
    position: relative;
    min-height: 510px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.3rem, 2.3vw, 2.35rem);
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: box-shadow .35s ease, filter .35s ease;
}

.experience-card--role {
    grid-column: span 7;
    background: var(--blue);
    box-shadow: 8px 8px 0 var(--ink);
    color: var(--white);
}

.experience-card--regulated {
    grid-column: span 5;
    min-height: 590px;
    background: var(--orange);
}

.experience-card--qa-work {
    grid-column: span 5;
    min-height: 570px;
    background: var(--pink);
}

.experience-card--teaching {
    grid-column: span 7;
    background: var(--ink);
    box-shadow: 8px 8px 0 var(--orange);
    color: var(--white);
}

.experience-card--teaching h3 {
    margin-top: 0;
}

.experience-card__meta {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid currentColor;
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.experience-card__meta b {
    padding: .38rem .58rem;
    border: 1px solid currentColor;
    border-radius: 99px;
    font-size: .58rem;
}

.experience-card h3 {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: auto 0 1rem;
    font-family: var(--display);
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.experience-card--regulated h3 {
    font-size: clamp(2.1rem, 3.1vw, 3.5rem);
}

.experience-card--qa-work h3 {
    font-size: clamp(2rem, 2.8vw, 3.15rem);
    line-height: .98;
}

.experience-card--qa-work .qa-face {
    position: relative;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    align-self: flex-end;
    margin: 2rem 1rem 2.4rem auto;
}

.experience-card > p {
    position: relative;
    z-index: 2;
    max-width: 690px;
    margin: 0;
    font-size: .96rem;
    line-height: 1.55;
}

.project-tech {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem .9rem;
    margin-top: 1.25rem;
}

.project-tech--novum {
    margin-top: clamp(1.6rem, 2.5vw, 2.5rem);
    padding-top: 1.25rem;
    border-top: 2px solid rgba(255, 253, 247, .45);
}

.project-tech__label {
    flex: 0 0 auto;
    font-family: var(--mono);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-tech--novum .project-tech__label {
    color: var(--acid);
}

.project-tech__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-tech__item {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .65rem .35rem .4rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--white);
    box-shadow: 2px 2px 0 var(--ink);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.project-tech__item img {
    width: 23px;
    height: 23px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

/* Project story: one project, one viewport, one clear decision. */
.projects--story {
    overflow: clip;
}

.projects-story {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(150px, .2fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 5rem);
    max-width: 1480px;
    margin: 0 auto;
}

.projects-story__rail {
    position: sticky;
    top: 7.4rem;
    z-index: 5;
    align-self: start;
    height: calc(100svh - 9rem);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    padding: .25rem 0 1rem;
}

.projects-story__rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid rgba(255, 253, 247, .65);
    color: var(--acid);
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.projects-story__rail-head b {
    color: rgba(255, 253, 247, .55);
    font-weight: 500;
}

.projects-story__rail ol {
    position: relative;
    display: grid;
    gap: .35rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.projects-story__rail ol::before {
    content: "";
    position: absolute;
    top: .75rem;
    bottom: .75rem;
    left: 1px;
    width: 2px;
    background: rgba(255, 253, 247, .2);
}

.projects-story__rail a {
    position: relative;
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: .1rem .6rem;
    padding: .6rem .45rem .6rem 1rem;
    border-left: 2px solid transparent;
    color: rgba(255, 253, 247, .58);
    transition: color .25s ease, border-color .25s ease, translate .25s ease, background .25s ease;
}

.projects-story__rail a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -5px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: rgba(255, 253, 247, .55);
    transform: translateY(-50%);
    transition: background .25s ease, scale .25s ease;
}

.projects-story__rail a > span {
    grid-row: span 2;
    padding-top: .1rem;
    font-family: var(--mono);
    font-size: .58rem;
}

.projects-story__rail a strong {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.projects-story__rail a small {
    font-family: var(--mono);
    font-size: .53rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.projects-story__rail a:hover,
.projects-story__rail a.is-active {
    border-color: var(--acid);
    background: rgba(223, 255, 0, .08);
    color: var(--white);
    translate: 4px 0;
}

.projects-story__rail a.is-active::before {
    background: var(--acid);
    scale: 1.35;
}

.projects-story__hint {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: auto 0 0;
    color: rgba(255, 253, 247, .55);
    font-family: var(--mono);
    font-size: .56rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.projects-story__hint span {
    color: var(--acid);
    font-size: 1rem;
}

.projects-story__chapters {
    min-width: 0;
}

/* The index stays visible, but no longer consumes a permanent side column. */
.projects-story {
    display: block;
}

.projects-story__rail {
    top: 6.6rem;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(170px, .28fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    padding: .7rem 1rem;
    border: 2px solid rgba(255, 253, 247, .45);
    border-radius: 18px;
    background: rgba(8, 8, 8, .92);
    box-shadow: 5px 5px 0 rgba(223, 255, 0, .7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.projects-story__rail-head {
    display: grid;
    justify-content: start;
    gap: .18rem;
    padding: 0;
    border: 0;
}

.projects-story__rail-head span {
    color: rgba(255, 253, 247, .55);
    font-size: .5rem;
}

.projects-story__rail-head b {
    color: var(--acid);
    font-size: .7rem;
    font-weight: 700;
}

.projects-story__rail ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: .35rem;
    margin: 0;
}

.projects-story__rail ol::before,
.projects-story__rail a::before {
    display: none;
}

.projects-story__rail a {
    min-width: 0;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: .1rem .45rem;
    padding: .55rem .65rem;
    border: 1px solid rgba(255, 253, 247, .24);
    border-radius: 11px;
    background: rgba(255, 253, 247, .04);
    translate: 0 0;
}

.projects-story__rail a > span {
    grid-row: span 2;
    padding-top: .05rem;
}

.projects-story__rail a strong {
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.projects-story__rail a small {
    font-size: .43rem;
    white-space: nowrap;
}

.projects-story__rail a:hover,
.projects-story__rail a.is-active {
    border-color: var(--acid);
    background: rgba(223, 255, 0, .12);
    color: var(--white);
    translate: 0 -2px;
}

.projects-story__rail a.is-active {
    background: var(--acid);
    color: var(--ink);
}

.projects-story__rail a.is-active small { color: var(--ink); }
.projects-story__hint { display: none; }

.project-chapter {
    --chapter-bg: var(--blue);
    --chapter-fg: var(--white);
    --chapter-accent: var(--acid);
    position: relative;
    min-height: min(100svh, 900px);
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(300px, 1.14fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    overflow: hidden;
    isolation: isolate;
    padding: clamp(4rem, 8vh, 7rem) clamp(1.4rem, 4vw, 4.5rem);
    border-top: 2px solid rgba(255, 253, 247, .35);
    background: var(--chapter-bg);
    color: var(--chapter-fg);
}

.project-chapter--novum { --chapter-bg: var(--blue); --chapter-fg: var(--white); --chapter-accent: var(--acid); }
.project-chapter--inventory { --chapter-bg: var(--acid); --chapter-fg: var(--ink); --chapter-accent: var(--blue); }
.project-chapter--hospital { --chapter-bg: var(--aqua); --chapter-fg: var(--ink); --chapter-accent: var(--blue); }
.project-chapter--lab { --chapter-bg: var(--orange); --chapter-fg: var(--ink); --chapter-accent: var(--acid); }
.project-chapter--events { --chapter-bg: var(--pink); --chapter-fg: var(--ink); --chapter-accent: var(--blue); }

.project-chapter__backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.project-chapter__backdrop span {
    position: absolute;
    top: -.2em;
    right: -.05em;
    color: transparent;
    font-family: var(--display);
    font-size: clamp(14rem, 30vw, 30rem);
    font-weight: 400;
    line-height: .8;
    letter-spacing: -.1em;
    -webkit-text-stroke: 2px currentColor;
    opacity: .14;
}

.project-chapter__backdrop i {
    position: absolute;
    right: -15%;
    bottom: -38%;
    width: min(43vw, 550px);
    aspect-ratio: 1;
    border: clamp(18px, 3vw, 45px) solid currentColor;
    border-radius: 50%;
    opacity: .12;
}

.project-chapter__copy,
.project-chapter__visual {
    position: relative;
    z-index: 1;
}

.project-chapter__copy {
    max-width: 720px;
}

.project-chapter__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid currentColor;
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.project-chapter__meta b {
    padding: .38rem .58rem;
    border: 1px solid currentColor;
    border-radius: 99px;
    font-size: .55rem;
}

.project-chapter__kicker {
    width: max-content;
    max-width: 100%;
    margin: clamp(1.7rem, 4vh, 3rem) 0 1.1rem;
    padding: .48rem .7rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--chapter-accent);
    box-shadow: 4px 4px 0 var(--ink);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.project-chapter h3 {
    max-width: 720px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3rem, 5.6vw, 6.7rem);
    font-weight: 400;
    line-height: .86;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.project-chapter h3 em {
    display: block;
    color: var(--chapter-accent);
    font-style: normal;
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
    text-shadow: 5px 5px 0 var(--ink);
}

.project-chapter__description {
    max-width: 620px;
    margin: 1.5rem 0 0;
    font-size: .98rem;
    line-height: 1.6;
}

.project-chapter__client {
    width: max-content;
    max-width: 100%;
    margin: clamp(1.7rem, 4vh, 3rem) 0 1.1rem;
    padding: .45rem .65rem;
    border: 2px solid currentColor;
    border-radius: 99px;
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.project-chapter__copy > .project-card__client {
    margin: clamp(1.7rem, 4vh, 3rem) 0 1.1rem;
}

.project-chapter__copy > .project-card__client--logo {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .5rem .85rem .5rem .5rem;
    border-radius: 18px;
    background: rgba(255, 253, 247, .55);
    text-transform: none;
}

.project-chapter__result {
    display: grid;
    gap: .35rem;
    max-width: 620px;
    margin: 1.25rem 0 0;
    padding: .75rem .85rem;
    border: 2px solid currentColor;
    border-radius: 13px;
    background: rgba(255, 253, 247, .25);
    font-size: .8rem;
    line-height: 1.4;
}

.project-chapter__result span {
    font-family: var(--mono);
    font-size: .53rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-chapter__result strong { font-weight: 700; }

.project-chapter__copy .project-tech {
    margin-top: 1.5rem;
}

.project-chapter__copy .project-tech--novum {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 253, 247, .45);
}

.project-chapter__copy .project-tech__label {
    color: currentColor;
}

.project-chapter__copy .project-tech--novum .project-tech__label {
    color: var(--chapter-accent);
}

.project-chapter__visual {
    min-width: 0;
    min-height: min(62vh, 610px);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(1.2rem, 3vw, 3rem);
    will-change: transform;
}

.project-chapter__visual::after {
    content: "";
    position: absolute;
    right: -17%;
    bottom: -26%;
    width: 58%;
    aspect-ratio: 1;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: .22;
    pointer-events: none;
}

.project-chapter__visual-label {
    position: absolute;
    z-index: 2;
    right: 1.4rem;
    bottom: 1.3rem;
    margin: 0;
    font-family: var(--mono);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: right;
    text-transform: uppercase;
}

.project-chapter__visual-label i {
    color: var(--chapter-accent);
    font-style: normal;
}

.project-chapter__visual .novum-preview {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    margin: 0;
}

.project-chapter__visual .novum-preview__browser {
    box-shadow: 10px 10px 0 var(--ink), 17px 17px 0 var(--chapter-accent);
}

.project-chapter__visual .inventory-visual,
.project-chapter__visual .hospital-cross,
.project-chapter__visual .invitation-card,
.project-chapter__visual .lab-app-visual {
    position: relative;
    z-index: 1;
    top: auto;
    right: auto;
    margin: 0;
}

.project-chapter__visual .inventory-visual {
    width: min(90%, 360px);
    height: 230px;
}

.project-chapter__visual .hospital-cross {
    width: clamp(150px, 25vw, 220px);
    height: clamp(150px, 25vw, 220px);
    box-shadow: 9px 9px 0 var(--ink);
}

.project-chapter__visual .lab-app-visual {
    width: min(90%, 360px);
    height: 230px;
    transform: scale(1.15);
}

.project-chapter__visual .invitation-card {
    width: clamp(180px, 25vw, 260px);
    height: clamp(220px, 32vw, 330px);
    box-shadow: 10px 10px 0 var(--ink);
}

.case-link {
    position: relative;
    z-index: 3;
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.1rem;
    padding: .65rem .8rem .65rem 1rem;
    border: 2px solid currentColor;
    border-radius: 99px;
    background: var(--acid);
    box-shadow: 4px 4px 0 var(--orange);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: translate .2s ease, box-shadow .2s ease;
}

.case-link:hover {
    translate: 4px 4px;
    box-shadow: none;
}

.experience-card__symbol {
    position: absolute;
    top: 19%;
    right: 7%;
    color: var(--acid);
    font-family: var(--mono);
    font-size: clamp(4.5rem, 9vw, 9rem);
    font-weight: 700;
    line-height: 1;
    text-shadow: 7px 7px 0 var(--ink);
    transform: rotate(4deg);
}

.regulated-dial {
    position: absolute;
    top: 15%;
    right: 7%;
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
    border: 5px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
}

.regulated-dial::before {
    content: "";
    position: absolute;
    inset: 15px;
    border: 3px dashed var(--ink);
    border-radius: 50%;
}

.regulated-dial span,
.regulated-dial b {
    position: absolute;
    font-family: var(--mono);
    font-size: .6rem;
}

.regulated-dial span { top: 25px; }
.regulated-dial b { bottom: 22px; }

.regulated-dial i {
    width: 8px;
    height: 38px;
    border-radius: 99px;
    background: var(--ink);
    transform: rotate(38deg) translateY(-9px);
    transform-origin: bottom;
}

.inventory-visual {
    position: absolute;
    top: 18%;
    right: 6%;
    width: 300px;
    height: 190px;
}

.inventory-box {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 155px;
    height: 126px;
    display: grid;
    place-items: center;
    border: 6px solid var(--ink);
    background: var(--orange);
    box-shadow: 8px 8px 0 var(--ink);
    font-family: var(--display);
    font-size: 2rem;
    transform: rotate(-5deg);
}

.inventory-box::before,
.inventory-box::after {
    content: "";
    position: absolute;
    top: -39px;
    width: 86px;
    height: 45px;
    border: 6px solid var(--ink);
    background: var(--paper);
}

.inventory-box::before { left: -6px; transform: skewY(24deg); }
.inventory-box::after { right: -6px; transform: skewY(-24deg); }

.inventory-screen {
    position: absolute;
    top: 0;
    right: 0;
    width: 145px;
    height: 119px;
    display: grid;
    place-items: center;
    border: 6px solid var(--ink);
    border-radius: 15px;
    background: var(--white);
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(5deg);
}

.inventory-screen span {
    font-family: var(--display);
    font-size: 2.9rem;
    line-height: .8;
}

.inventory-screen small {
    margin-top: -1rem;
    font-family: var(--mono);
    font-weight: 700;
    text-transform: uppercase;
}

.hospital-cross {
    position: absolute;
    top: 15%;
    right: 8%;
    width: 122px;
    height: 122px;
    display: grid;
    place-items: center;
    border: 5px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
    transform: rotate(6deg);
}

.hospital-cross i {
    position: absolute;
    width: 65px;
    height: 23px;
    border: 4px solid var(--ink);
    border-radius: 5px;
    background: var(--orange);
}

.hospital-cross i:last-of-type {
    transform: rotate(90deg);
}

.hospital-cross span {
    position: relative;
    z-index: 2;
    font-family: var(--display);
    font-size: 1.2rem;
}

.invitation-card {
    position: absolute;
    top: 18%;
    right: 10%;
    width: 155px;
    height: 185px;
    display: grid;
    place-items: center;
    border: 5px solid var(--ink);
    background: var(--white);
    box-shadow: 8px 8px 0 var(--ink);
    font-family: var(--display);
    font-size: 1.1rem;
    line-height: 1.05;
    text-align: center;
    transform: rotate(8deg);
}

.invitation-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px dashed var(--ink);
}

.invitation-card span,
.invitation-card i {
    position: relative;
    z-index: 2;
}

.invitation-card i {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: var(--orange);
    font-size: 2rem;
    font-style: normal;
}

.teaching-board {
    position: relative;
    flex: 0 0 auto;
    align-self: flex-end;
    width: 270px;
    height: 150px;
    margin: clamp(1.8rem, 3vw, 3rem) 1rem 2.4rem auto;
    display: grid;
    place-items: center;
    border: 6px solid var(--white);
    border-radius: 15px;
    background: #253b31;
    box-shadow: 8px 8px 0 var(--orange);
    color: var(--acid);
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 700;
    transform: rotate(-4deg);
}

.teaching-board::after {
    content: "";
    position: absolute;
    bottom: -20px;
    width: 80%;
    height: 13px;
    border: 4px solid var(--white);
    background: var(--orange);
}

.teaching-board i {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--white);
}

.teaching-board i:first-of-type { top: 20px; left: 20px; }
.teaching-board i:last-of-type { right: 21px; bottom: 21px; background: var(--pink); }

.arsenal {
    position: relative;
    padding: clamp(6rem, 10vw, 11rem) 4vw 5rem;
    overflow: hidden;
    background: var(--paper);
}

.arsenal__heading {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr .5fr;
    max-width: 1480px;
    margin: 0 auto clamp(3rem, 6vw, 6rem);
}

.arsenal__heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(4rem, 8.2vw, 9rem);
    font-weight: 400;
    line-height: .82;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.arsenal__heading h2 em {
    color: var(--orange);
    font-style: normal;
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
}

.arsenal__heading > p:last-child {
    align-self: end;
    max-width: 420px;
    margin: 0 0 .5rem 1rem;
    font-size: 1rem;
    line-height: 1.55;
}

.bento-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.4rem;
    max-width: 1480px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    padding: clamp(1.3rem, 2.4vw, 2.4rem);
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: box-shadow .35s ease, filter .35s ease;
}

.bento-card__head {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: .9rem;
    border-bottom: 2px solid currentColor;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bento-card__head p {
    margin: 0;
}

.bento-card h3 {
    position: relative;
    z-index: 2;
    margin: 1.4rem 0;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 3.5rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.bento-card--automation {
    grid-column: span 8;
    min-height: 570px;
    display: flex;
    flex-direction: column;
    background: var(--acid);
}

.workflow-map {
    position: relative;
    height: 255px;
    margin: 1.5rem 0;
    border: 2px dashed rgba(8, 8, 8, .4);
    border-radius: 20px;
    background-image: radial-gradient(rgba(8, 8, 8, .22) 1.5px, transparent 1.5px);
    background-size: 19px 19px;
}

.workflow-node {
    position: absolute;
    z-index: 2;
    min-width: 90px;
    padding: .75rem 1rem;
    border: var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 5px 5px 0 var(--ink);
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
}

.workflow-node--start { top: 44%; left: 4%; }
.workflow-node--n8n { top: 14%; left: 31%; background: var(--orange); }
.workflow-node--ai { right: 29%; bottom: 14%; background: var(--aqua); }
.workflow-node--done { top: 20%; right: 4%; background: var(--ink); color: var(--white); }
.workflow-node--ai span { color: var(--orange); }

.workflow-node--start i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background: #27bc63;
}

.workflow-line {
    position: absolute;
    z-index: 1;
    height: 3px;
    background: var(--ink);
    transform-origin: left;
}

.workflow-line::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 9px solid var(--ink);
}

.workflow-line--one { top: 47%; left: 17%; width: 18%; transform: rotate(-24deg); }
.workflow-line--two { top: 36%; left: 42%; width: 24%; transform: rotate(25deg); }
.workflow-line--three { top: 57%; left: 67%; width: 20%; transform: rotate(-28deg); }

@keyframes workflow-pulse {
    from { opacity: .68; }
    to { opacity: 1; }
}

.workflow-node {
    animation: workflow-pulse 2.8s ease-in-out infinite alternate;
}

.workflow-node--n8n { animation-delay: .3s; }
.workflow-node--ai { animation-delay: .6s; }
.workflow-node--done { animation-delay: .9s; }

.tool-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.tool-row > span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .8rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--white);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
}

.bento-card__description {
    max-width: 600px;
    margin: 0;
    line-height: 1.55;
}

.bento-card--automation .tool-row {
    margin-top: auto;
}

.bento-card__list {
    display: grid;
    gap: .7rem;
    margin: auto 0 0;
    padding: 1.2rem 0 0 1.2rem;
    border-top: 2px solid rgba(255, 255, 255, .45);
    line-height: 1.4;
}

.bento-card__list li::marker {
    color: var(--acid);
}

.bento-card--backend {
    grid-column: span 4;
    min-height: 570px;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    color: var(--white);
    box-shadow: 8px 8px 0 var(--orange);
}

.code-window {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;
    border: 2px solid var(--white);
    border-radius: 15px;
    background: #171717;
    box-shadow: 6px 6px 0 var(--orange);
    transform: rotate(2deg);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.code-window::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 48px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--aqua);
    opacity: 0;
    pointer-events: none;
}

.code-window.is-active {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 4px 9px 0 var(--orange);
}

.code-window.is-active::after {
    opacity: .8;
    animation: code-scan 2.2s ease-in-out infinite;
}

@keyframes code-scan {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(128px); }
}

.code-window > div {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: .7rem;
    border-bottom: 1px solid #575757;
}

.code-window i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--orange);
}

.code-window i:nth-child(2) { background: var(--acid); }
.code-window i:nth-child(3) { background: var(--aqua); }

.code-window div span {
    margin-left: auto;
    color: #aaa;
    font-family: var(--mono);
    font-size: .6rem;
}

.code-window pre {
    margin: 0;
    padding: clamp(1rem, 2vw, 2rem);
    font-family: var(--mono);
    font-size: clamp(.62rem, 1vw, .88rem);
    line-height: 2;
    white-space: pre-wrap;
}

.code-window b { color: var(--pink); }
.code-window em { color: var(--aqua); font-style: normal; }
.code-window strong { color: var(--acid); }

.bento-card--backend .bento-card__description {
    margin-top: 1.6rem;
    color: #d4d4d4;
    line-height: 1.5;
}

.bento-card--ai {
    grid-column: span 5;
    min-height: 530px;
    display: flex;
    flex-direction: column;
    background: var(--orange);
}

.bento-card--ai h3 {
    max-width: 590px;
    margin-top: 14rem;
}

.bento-card--ai > p {
    max-width: 510px;
    line-height: 1.5;
}

.ai-orb {
    position: absolute;
    top: 6rem;
    right: 9%;
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    border: 5px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 10px 10px 0 var(--ink);
    font-family: var(--display);
    font-size: 3.4rem;
    animation: ai-orb-pulse 7s ease-in-out infinite;
}

@keyframes ai-orb-pulse {
    0%, 100% { box-shadow: 10px 10px 0 var(--ink); }
    50% { box-shadow: 14px 14px 0 var(--ink), 0 0 0 5px rgba(223, 255, 0, .25); }
}

.ai-orb::before, .ai-orb::after {
    content: "";
    position: absolute;
    inset: -27px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    transform: rotate(62deg) scaleY(.42);
    animation: ai-orb-ring-one 8s ease-in-out infinite;
}

.ai-orb::after {
    transform: rotate(-55deg) scaleY(.42);
    animation-name: ai-orb-ring-two;
    animation-delay: -2.4s;
}

.ai-orb i {
    position: absolute;
    width: 17px;
    height: 17px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
}

.ai-orb i:nth-of-type(1) { top: -7px; right: 16%; }
.ai-orb i:nth-of-type(2) { left: -14px; bottom: 24%; }
.ai-orb i:nth-of-type(3) { right: -16px; bottom: 16%; background: var(--pink); }

.ai-orb i {
    animation: ai-orb-node 3.8s ease-in-out infinite;
}

.ai-orb i:nth-of-type(2) { animation-delay: -1.2s; }
.ai-orb i:nth-of-type(3) { animation-delay: -2.2s; }

@keyframes ai-orb-ring-one {
    0%, 100% { transform: rotate(62deg) scaleY(.42); }
    50% { transform: rotate(78deg) scaleY(.48); }
}

@keyframes ai-orb-ring-two {
    0%, 100% { transform: rotate(-55deg) scaleY(.42); }
    50% { transform: rotate(-70deg) scaleY(.48); }
}

@keyframes ai-orb-node {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}

.bento-card--platform {
    grid-column: span 7;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
    grid-template-rows: auto minmax(200px, 1fr) auto;
    column-gap: clamp(1.2rem, 3vw, 2.5rem);
    background: var(--aqua);
}

.bento-card--platform .bento-card__head {
    grid-column: 1 / -1;
    grid-row: 1;
}

.bento-card--platform h3 {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    margin: 0;
}

.bento-card--platform > p {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    max-width: 380px;
    margin: 0;
    line-height: 1.45;
}

.devices {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    width: min(100%, 440px);
    height: auto;
    aspect-ratio: 1.55;
    margin: 1.6rem 1rem 3rem 0;
}

.device {
    position: absolute;
    display: grid;
    place-items: center;
    border: 6px solid var(--ink);
    background: var(--white);
    box-shadow: 9px 9px 0 var(--ink);
    font-family: var(--display);
}

.device--desktop {
    inset: 0 10% 12% 0;
    border-radius: 16px;
    background-image: linear-gradient(rgba(8,8,8,.08) 2px, transparent 2px), linear-gradient(90deg, rgba(8,8,8,.08) 2px, transparent 2px);
    background-size: 24px 24px;
    font-size: clamp(2rem, 5vw, 5rem);
    animation: device-desktop-float 5.5s ease-in-out infinite;
}

.device--desktop::after {
    content: "";
    position: absolute;
    bottom: -34px;
    width: 35%;
    height: 28px;
    border: 6px solid var(--ink);
    border-top: 0;
    background: var(--white);
}

.device--mobile {
    right: 0;
    bottom: -18%;
    width: 28%;
    height: 67%;
    border-radius: 18px;
    background: var(--orange);
    font-size: 2rem;
    transform: rotate(5deg);
    animation: device-mobile-float 4.2s ease-in-out infinite;
}

@keyframes device-desktop-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

@keyframes device-mobile-float {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-10px); }
}

.bento-card--stack {
    grid-column: 1 / -1;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--blue);
    color: var(--white);
    box-shadow: 8px 8px 0 var(--ink);
}

.stack-tools {
    margin-top: 1.5rem;
    gap: .65rem;
}

.stack-tools > .tech-chip:nth-child(4n + 1) {
    background: var(--acid);
    color: var(--ink);
}
.stack-tools > .tech-chip:nth-child(4n + 2) { background: var(--aqua); }
.stack-tools > .tech-chip:nth-child(4n + 3) { background: var(--pink); }
.stack-tools > .tech-chip:nth-child(4n) { background: var(--purple); }

.tech-chip {
    min-height: 40px;
}

.tech-chip img,
.tech-chip__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.tech-chip img {
    display: block;
    object-fit: contain;
}

.tech-chip__icon {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .52rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .bento-card--backend:hover .code-window {
        transform: rotate(0deg) translateY(-5px);
        box-shadow: 4px 9px 0 var(--orange);
    }

    .bento-card--backend:hover .code-window::after {
        opacity: .8;
        animation: code-scan 2.2s ease-in-out infinite;
    }

    .tech-chip {
        transition: translate .2s ease, box-shadow .2s ease, filter .2s ease;
    }

    .tech-chip:hover {
        translate: 0 -4px;
        box-shadow: 3px 4px 0 var(--ink);
        filter: saturate(1.15);
    }
}

.footer {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(6rem, 10vw, 10rem) 4vw 2rem;
    border-top: var(--line);
    background: var(--acid);
    text-align: center;
}

.footer::before, .footer::after {
    content: "";
    position: absolute;
    width: 31vw;
    aspect-ratio: 1;
    border: 5px solid var(--ink);
    border-radius: 48%;
    opacity: .1;
    transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.footer::before { top: -14vw; left: -10vw; box-shadow: 0 0 0 4vw var(--ink), 0 0 0 8vw var(--acid), 0 0 0 8.3vw var(--ink); }
.footer::after { right: -12vw; bottom: -13vw; box-shadow: 0 0 0 4vw var(--ink), 0 0 0 8vw var(--acid), 0 0 0 8.3vw var(--ink); }

.footer[data-contact-mode]::before,
.footer[data-contact-mode]::after {
    opacity: 0;
    transform: scale(.72);
}

.footer__icon-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.footer__corner-icons {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
}

.footer__corner-icon {
    position: absolute;
    width: clamp(6rem, 13vw, 13rem);
    height: clamp(6rem, 13vw, 13rem);
    display: grid;
    place-items: center;
    color: var(--ink);
    opacity: 0;
    transform: scale(.55) rotate(-10deg);
    transition: opacity .25s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.footer__corner-icon--left {
    top: clamp(1rem, 5vw, 5rem);
    left: clamp(1rem, 5vw, 5rem);
}

.footer__corner-icon--right {
    right: clamp(1rem, 5vw, 5rem);
    bottom: clamp(1rem, 5vw, 5rem);
    transform: scale(.55) rotate(10deg);
}

.footer[data-contact-mode] .footer__corner-icon {
    opacity: .18;
    transform: scale(1) rotate(-6deg);
}

.footer[data-contact-mode] .footer__corner-icon--right {
    transform: scale(1) rotate(6deg);
}

.footer__corner-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    overflow: visible;
}

.footer__eyes {
    --pupil-x: 0px;
    --pupil-y: 0px;
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 2rem;
}

.footer__eyes i {
    position: relative;
    width: 36px;
    height: 50px;
    border: var(--line);
    border-radius: 50%;
    background: var(--white);
}

.footer__eyes i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 17px;
    border-radius: 50%;
    background: var(--ink);
    transform: translate(-50%, -50%) translate3d(var(--pupil-x), var(--pupil-y), 0);
    will-change: transform;
}

.footer h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(4.3rem, 9.8vw, 11rem);
    font-weight: 400;
    line-height: .78;
    letter-spacing: -.07em;
    text-transform: uppercase;
}

.footer h2 em {
    display: inline-block;
    color: var(--orange);
    font-style: normal;
    -webkit-text-stroke: 3px var(--ink);
    paint-order: stroke fill;
    text-shadow: 7px 7px 0 var(--ink);
    transform: rotate(-2deg);
}

.footer__lead {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 2rem auto;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.55;
}

.footer__actions {
    position: relative;
    z-index: 2;
    width: min(620px, 92vw);
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

.footer__main-link {
    min-width: min(480px, 85vw);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 1.7rem;
    border: 4px solid var(--ink);
    border-radius: 99px;
    background: var(--ink);
    box-shadow: 8px 8px 0 var(--orange);
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(.95rem, 1.5vw, 1.3rem);
    text-transform: uppercase;
    transition: translate .2s ease, box-shadow .2s ease;
}

.footer__main-link:hover {
    translate: 7px 7px;
    box-shadow: none;
}

.footer__main-link b {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--acid);
    color: var(--ink);
    font-size: 1.7rem;
}

.footer__socials {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1.5rem;
}

.footer__socials a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .6rem;
    padding: .72rem .85rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: rgba(255, 253, 247, .58);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--mono);
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: background .2s ease, box-shadow .2s ease, translate .2s ease;
}

.footer__socials a:hover {
    background: var(--white);
    box-shadow: none;
    translate: 3px 3px;
}

.footer__social-logo {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
}

.footer__social-name {
    text-align: left;
}

.footer__social-arrow {
    color: var(--orange);
    font-size: .9rem;
}

.footer__bottom {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 2px solid var(--ink);
    font-family: var(--mono);
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
}

.footer__bottom p {
    margin: 0;
}

.footer__bottom > :nth-child(1) { justify-self: start; }
.footer__bottom > :nth-child(4) { justify-self: end; }

.brand--footer {
    font-size: .85rem;
}

.brand--footer .brand__face {
    width: 31px;
    height: 23px;
    background: var(--orange);
    box-shadow: 2px 2px 0 var(--ink);
}

@keyframes slow-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
    .site-nav { gap: 1.1rem; }
    .header-actions { gap: .45rem; }
    .header-event-link { padding-inline: .65rem; }

    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
        padding-inline: 3.5vw;
    }

    .hero h1 { font-size: clamp(5rem, 10.7vw, 9rem); }
    .float-code--one { left: 38%; }
    .float-code--two { display: none; }
    .float-code--three { display: none; }
    .project-novum__body {
        grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
        gap: 2rem;
    }

}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
        padding: .8rem 1rem;
    }

    body.menu-open .site-header {
        border-color: transparent;
        background: transparent;
        transform: none !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .header-actions { display: none; }

    .menu-toggle {
        position: relative;
        z-index: 3;
        display: block;
    }

    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

    .site-nav {
        position: fixed;
        z-index: 2;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        justify-content: safe center;
        gap: clamp(.9rem, 3vh, 1.6rem);
        padding: max(5.5rem, env(safe-area-inset-top)) 9vw max(2rem, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--acid);
        opacity: 0;
        visibility: hidden;
        clip-path: circle(0 at calc(100% - 34px) 32px);
        transition: clip-path .5s cubic-bezier(.76,0,.24,1), opacity .25s, visibility .5s;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        clip-path: circle(150% at calc(100% - 34px) 32px);
    }

    .site-nav a {
        width: 100%;
        display: flex;
        align-items: baseline;
        gap: clamp(.55rem, 2vw, 1rem);
        padding: 0 0 .7rem;
        border-bottom: 3px solid var(--ink);
        font-family: var(--display);
        font-size: clamp(1.65rem, min(8vw, 7vh), 4rem);
        line-height: .95;
    }

    .site-nav a.is-active::before {
        inset: -.35rem -.75rem .2rem;
        border-radius: 15px;
        background: var(--paper);
    }

    .site-nav span {
        flex: 0 0 auto;
        margin-right: 0;
        font-family: var(--mono);
        font-size: .3em;
    }

    .site-nav a.site-nav__event {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: .35rem 1rem;
        margin-top: .25rem;
        padding: .8rem .9rem;
        border: 3px solid var(--ink);
        border-radius: 17px;
        background: var(--paper);
        box-shadow: 6px 6px 0 var(--ink);
        font-family: var(--mono);
        line-height: 1.1;
    }

    .site-nav a.site-nav__event::before,
    .site-nav a.site-nav__event::after {
        display: none;
    }

    .site-nav__event > span {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: .45rem;
        color: #67645f;
        font-size: .55rem;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .site-nav__event > span::before {
        content: "";
        width: 8px;
        height: 8px;
        border: 1px solid var(--ink);
        border-radius: 50%;
        background: var(--orange);
    }

    .site-nav__event > strong {
        font-family: var(--display);
        font-size: clamp(1.1rem, 5vw, 1.55rem);
        font-weight: 400;
        line-height: 1;
        text-transform: uppercase;
    }

    .site-nav__event > b {
        color: var(--orange);
        font-size: 1.45rem;
        line-height: .9;
    }

    .site-nav a.site-nav__event[hidden] {
        display: none;
    }

    .hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        padding: 8rem 1rem 5rem;
    }

    .hero__copy { padding: 0; }
    .hero h1 { font-size: clamp(5rem, 21.5vw, 10rem); }
    .hero__role { max-width: 90%; }
    .hero__intro { max-width: 620px; }
    .hero__visual { width: min(100%, 620px); margin: -1.2rem auto 0; justify-self: center; }
    .hero::after { display: none; }
    .float-code--one { top: 48%; left: 3%; }

    .profile {
        padding-inline: 1rem;
    }

    .profile__heading {
        grid-template-columns: 1fr;
    }

    .profile__heading h2 {
        font-size: clamp(3.6rem, 14vw, 7rem);
    }

    .profile__heading > p:last-child {
        margin: 2rem 0 0;
    }

    .profile-card--backend,
    .profile-card--qa,
    .profile-card--product,
    .profile-card--rpa {
        grid-column: 1 / -1;
    }

    .projects {
        padding-inline: 1rem;
    }

    .projects__heading {
        grid-template-columns: 1fr;
    }

    .projects__heading h2 {
        font-size: clamp(3.6rem, 14vw, 7rem);
    }

    .projects__heading > p:last-child {
        margin: 2rem 0 0;
    }

    .project-card--novum,
    .project-card--inventory,
    .project-card--hospital,
    .project-card--lab,
    .project-card--events {
        grid-column: 1 / -1;
    }

    .project-novum__body {
        grid-template-columns: 1fr;
    }

    .novum-preview {
        width: min(100%, 860px);
        margin: 1.5rem auto 0;
    }

    .experience {
        padding-inline: 1rem;
    }

    .experience__heading {
        grid-template-columns: 1fr;
    }

    .experience__heading h2 {
        font-size: clamp(3.6rem, 14vw, 7rem);
    }

    .experience__heading > p:last-child {
        margin: 2rem 0 0;
    }

    .experience-card--role,
    .experience-card--regulated,
    .experience-card--qa-work,
    .experience-card--teaching {
        grid-column: 1 / -1;
    }

    .arsenal { padding-inline: 1rem; }
    .arsenal__heading { grid-template-columns: 1fr; }
    .arsenal__heading h2 { font-size: clamp(3.6rem, 14vw, 7rem); }
    .arsenal__heading > p:last-child { margin: 2rem 0 0; }

    .bento-card--automation, .bento-card--backend, .bento-card--ai, .bento-card--platform { grid-column: 1 / -1; }
    .bento-card--backend { min-height: 430px; }
    .bento-card--ai { min-height: 390px; }
    .bento-card--platform { min-height: 560px; }

    .footer { min-height: 900px; padding-inline: 1rem; }
    .footer h2 { font-size: clamp(4rem, 15vw, 8rem); }
    .footer h2 em { font-size: min(1em, 9.4vw); }
    .footer__bottom { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .footer__bottom > :nth-child(2), .footer__bottom > :nth-child(3) { display: none; }
}

@media (max-width: 620px) {
    :root { --radius: 21px; --shadow: 5px 5px 0 var(--ink); }

    [data-lens-card] {
        --lens-radius: 58px;
        --lens-diameter: 116px;
    }

    .hero { padding-top: 7rem; }
    .hero h1 { max-width: 100%; font-size: clamp(3.45rem, 17.5vw, 6rem); }
    .hero-title__surname { margin-top: 1rem; font-size: .68rem; letter-spacing: .11em; }
    .hero-title__line--accent { -webkit-text-stroke-width: 2px; text-shadow: 5px 5px 0 var(--ink); }
    .hero__role { line-height: 1.6; }
    .hero__actions { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
    .button { min-width: min(100%, 310px); }
    .hero__visual { margin-top: 1rem; }
    .float-code--one { top: 52%; transform: scale(.8) rotate(5deg); transform-origin: left; }
    .hero-event-badge { right: 0; bottom: 8%; min-width: 125px; padding: .65rem .7rem; }
    .hero-event-badge strong { font-size: 1.3rem; }
    .hero-event-badge span,
    .hero-event-badge small { font-size: .46rem; }

    .profile { padding-top: 5.5rem; }
    .profile__heading h2 { font-size: clamp(3.15rem, 14vw, 5rem); }
    .profile__grid { gap: 1rem; }
    .profile-card { min-height: 470px; padding: 1.15rem; }
    .profile-card h3 { font-size: clamp(2.5rem, 12vw, 4rem); }
    .profile-card--backend .profile-card__long-word { font-size: min(1em, 9.6vw); }
    .profile-card--rpa .profile-card__long-word { font-size: min(1em, 8.2vw); }
    .profile-card__icon { top: 19%; right: 5%; font-size: 6rem; }
    .qa-face { width: 122px; height: 122px; right: 8%; }
    .profile-card--product h3 { max-width: 100%; font-size: clamp(2.15rem, 10.2vw, 3.4rem); }
    .product-windows { top: 16%; right: 3%; transform: scale(.68); transform-origin: top right; }
    .rpa-route { right: 4%; gap: .35rem; }
    .rpa-route span { min-width: 60px; padding: .58rem .4rem; font-size: .58rem; }
    .rpa-route i { font-size: 1rem; }
    .projects { padding-top: 5.5rem; }
    .projects__heading h2 { font-size: clamp(3.15rem, 14vw, 5rem); }
    .projects__grid { gap: 1rem; }
    .projects-subheading {
        grid-template-columns: 1fr;
        gap: .8rem;
        padding-block: 1.1rem;
    }
    .projects-subheading h3 { font-size: clamp(1.8rem, 9vw, 2.8rem); }
    .projects-subheading p { max-width: 32rem; }
    .project-card { padding: 1.15rem; }
    .project-card--novum { min-height: 0; }
    .project-novum__copy h3 { font-size: clamp(2.85rem, 12.5vw, 4.5rem); }
    .project-proof { grid-template-columns: 1fr; }
    .project-novum__actions { align-items: flex-start; flex-direction: column; }
    .project-novum__actions .button { width: 100%; }
    .novum-preview {
        margin-top: 1.8rem;
    }

    .novum-preview__browser {
        border-width: 4px;
        border-radius: 17px;
        box-shadow: 7px 7px 0 var(--ink), 12px 12px 0 var(--acid);
        transform: rotate(.6deg);
    }

    .novum-preview__bar {
        padding: .5rem .6rem;
        border-bottom-width: 2px;
    }

    .novum-preview__bar i {
        width: 8px;
        height: 8px;
    }

    .novum-preview figcaption {
        align-items: flex-start;
        flex-direction: column;
        gap: .35rem;
        margin-top: 1rem;
    }

    .project-card--inventory,
    .project-card--hospital,
    .project-card--lab,
    .project-card--events { min-height: 0; }
    .project-card--inventory h3,
    .project-card--hospital h3,
    .project-card--lab h3,
    .project-card--events h3 { font-size: clamp(2.15rem, 10.5vw, 3.5rem); }
    .project-card--inventory .inventory-visual {
        margin: 1.5rem -.25rem 1.8rem auto;
        transform: scale(.78);
        transform-origin: center right;
    }
    .project-card__client--logo {
        gap: .65rem;
        padding: .4rem .7rem .4rem .4rem;
    }
    .project-client__logo {
        width: 50px;
        height: 50px;
        box-shadow: 2px 2px 0 var(--ink);
    }
    .project-client__identity strong {
        font-size: .62rem;
    }
    .project-tech {
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
    }
    .project-tech__list {
        gap: .45rem;
    }
    .project-tech__item {
        min-height: 34px;
        padding: .3rem .55rem .3rem .35rem;
        font-size: .54rem;
    }
    .project-tech__item img {
        width: 20px;
        height: 20px;
    }
    .project-card--events .invitation-card {
        width: 125px;
        height: 150px;
        margin: 1.5rem .7rem 2rem auto;
    }
    .project-card--hospital .hospital-cross {
        top: auto;
        right: auto;
        width: 110px;
        height: 110px;
        margin: 1.5rem .7rem 2rem auto;
    }
    .lab-app-visual {
        width: 235px;
        margin: 1.5rem 0 2rem auto;
        transform: scale(.9);
        transform-origin: center right;
    }

    .experience { padding-top: 5.5rem; }
    .experience__heading h2 { font-size: clamp(3.15rem, 14vw, 5rem); }
    .experience__grid { gap: 1rem; }
    .experience-card,
    .experience-card--qa-work { min-height: 540px; padding: 1.15rem; }
    .experience-card h3 { font-size: clamp(2.15rem, 10.5vw, 3.5rem); }
    .experience-card--regulated h3 { font-size: clamp(1.8rem, 8.2vw, 2.75rem); }
    .experience-card--qa-work h3 { font-size: clamp(1.9rem, 8.6vw, 2.8rem); }
    .experience-card__symbol { top: 20%; right: 5%; font-size: 5rem; }
    .regulated-dial { top: 15%; right: 6%; width: 112px; height: 112px; }
    .experience-card--qa-work .qa-face {
        top: auto;
        right: auto;
        margin: 1.7rem .7rem 2.2rem auto;
    }
    .teaching-board {
        width: 230px;
        height: 125px;
        margin: 1.8rem .5rem 2.3rem auto;
    }

    .arsenal { padding-top: 6rem; }
    .arsenal__heading h2 { font-size: clamp(3.25rem, 15vw, 5.4rem); }
    .bento-grid { gap: 1rem; }
    .bento-card { padding: 1.15rem; }
    .bento-card--automation { min-height: 610px; }
    .workflow-map { height: 310px; }
    .workflow-node { min-width: 78px; padding: .6rem; font-size: .66rem; }
    .workflow-node--start { top: 7%; left: 5%; }
    .workflow-node--n8n { top: 28%; right: 5%; left: auto; }
    .workflow-node--ai { right: auto; bottom: 26%; left: 6%; }
    .workflow-node--done { top: auto; right: 5%; bottom: 5%; }
    .workflow-line--one { top: 22%; left: 25%; width: 54%; transform: rotate(19deg); }
    .workflow-line--two { top: 50%; left: 25%; width: 52%; transform: rotate(145deg); }
    .workflow-line--three { top: 74%; left: 25%; width: 53%; transform: rotate(18deg); }
    .bento-card--backend { min-height: 500px; }
    .code-window { margin-top: 2.2rem; }
    .bento-card--ai { min-height: 580px; }
    .ai-orb { top: 5.5rem; right: 12%; width: 150px; height: 150px; font-size: 2.6rem; }
    .bento-card--ai h3 { margin-top: 12.5rem; }
    .bento-card--platform {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
    }
    .devices {
        grid-column: 1;
        grid-row: 2;
        width: min(78%, 320px);
        margin: 1.6rem .5rem 3.2rem auto;
    }
    .bento-card--platform h3 {
        grid-column: 1;
        grid-row: 3;
    }
    .bento-card--platform > p {
        grid-column: 1;
        grid-row: 4;
        max-width: 100%;
        margin-top: 1rem;
        font-size: .9rem;
    }
    .bento-card--stack { min-height: 310px; }
    .stack-tools > .tech-chip { font-size: .6rem; }
    .footer { min-height: 790px; padding-top: 5rem; }
    .footer__eyes { margin-bottom: 1rem; }
    .footer h2 { font-size: clamp(3.4rem, 16vw, 5.7rem); }
    .footer h2 em {
        -webkit-text-stroke-width: 2px;
        text-shadow: 4px 4px 0 var(--ink);
    }
    .footer__lead { margin-block: 1.5rem; }
    .footer__main-link { min-width: 100%; padding-left: 1.1rem; font-size: .85rem; }
    .footer__main-link b { width: 48px; height: 48px; }
}

@media (max-width: 360px) {
    .footer__socials {
        gap: .4rem;
    }

    .footer__socials a {
        gap: .35rem;
        padding-inline: .45rem;
        font-size: .54rem;
    }

    .footer__social-logo {
        width: 17px;
        height: 17px;
    }

    .footer__social-arrow {
        display: none;
    }
}

@media (max-width: 900px) {
    .projects--story {
        padding-inline: 1rem;
    }

    .projects-story {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-story__rail {
        position: sticky;
        top: 4.7rem;
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: .65rem;
        padding: .7rem 0 .85rem;
        border-radius: 14px;
        background: var(--ink);
        box-shadow: 4px 4px 0 rgba(223, 255, 0, .7);
    }

    .projects-story__rail-head {
        padding-bottom: .55rem;
    }

    .projects-story__rail ol {
        display: flex;
        gap: .45rem;
        overflow-x: auto;
        margin-top: .7rem;
        padding: .1rem .1rem .35rem;
        scrollbar-width: none;
    }

    .projects-story__rail ol::-webkit-scrollbar { display: none; }
    .projects-story__rail ol::before { display: none; }

    .projects-story__rail li {
        flex: 0 0 auto;
    }

    .projects-story__rail a {
        min-width: 8.7rem;
        grid-template-columns: 1.8rem minmax(0, 1fr);
        padding: .55rem .6rem;
        border: 1px solid transparent;
    }

    .projects-story__rail a::before { display: none; }

    .projects-story__rail a:hover,
    .projects-story__rail a.is-active {
        translate: 0 -2px;
    }

    .projects-story__rail a strong { font-size: .9rem; }
    .projects-story__rail a small { font-size: .48rem; }
    .projects-story__hint { display: none; }

    .project-chapter {
        min-height: calc(100svh - 6rem);
        grid-template-columns: 1fr;
        align-content: center;
        gap: 2rem;
        padding: 5rem 1.15rem 6rem;
    }

    .project-chapter__meta {
        flex-wrap: wrap;
    }

    .project-chapter__visual {
        order: -1;
        min-height: min(52vh, 470px);
    }

    .project-chapter h3 {
        font-size: clamp(2.85rem, 10vw, 5.4rem);
    }

    .project-chapter__visual .inventory-visual {
        width: min(92%, 340px);
    }

    .project-chapter__visual .lab-app-visual {
        width: min(92%, 340px);
        transform: scale(1);
    }
}

@media (max-width: 620px) {
    .projects--story {
        padding-top: 5.5rem;
    }

    .projects-story__rail {
        top: 4.5rem;
    }

    .projects-story__rail-head {
        font-size: .52rem;
    }

    .projects-story__rail a {
        min-width: 7.5rem;
    }

    .project-chapter {
        min-height: 0;
        gap: 1.8rem;
        padding: 4rem 1rem 5rem;
    }

    .project-chapter__visual {
        min-height: 300px;
        padding: 1rem;
    }

    .project-chapter__backdrop span {
        font-size: 13rem;
    }

    .project-chapter h3 {
        font-size: clamp(2.45rem, 13vw, 4.1rem);
    }

    .project-chapter__description {
        font-size: .9rem;
    }

    .project-chapter__visual .novum-preview figcaption {
        align-items: flex-start;
        flex-direction: column;
        gap: .4rem;
        font-size: .5rem;
    }

    .project-chapter__visual .inventory-visual {
        width: 92%;
        transform: scale(.86);
    }

    .project-chapter__visual .hospital-cross {
        width: 150px;
        height: 150px;
    }

    .project-chapter__visual .lab-app-visual {
        width: 255px;
        transform: scale(.86);
        transform-origin: center;
    }

    .project-chapter__visual .invitation-card {
        width: 165px;
        height: 210px;
    }

    .project-chapter__visual-label {
        right: 1rem;
        bottom: .9rem;
        font-size: .48rem;
    }
}

/* Slim project flow: the visual guide stays present without taking a content column. */
.projects-story {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 3rem);
}

.projects-story__rail {
    position: sticky;
    top: 7.3rem;
    height: calc(100svh - 9rem);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.projects-story__rail-head {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.projects-story__rail ol {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: .8rem 0;
}

.projects-story__rail ol::before {
    display: block;
    top: 1.7rem;
    bottom: 1.7rem;
    left: 50%;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(to bottom, rgba(255, 253, 247, .55) 0 9px, transparent 9px 17px);
    transform: translateX(-50%);
}

.projects-story__rail li {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.projects-story__rail a {
    width: 34px;
    height: 34px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    border: 2px solid rgba(255, 253, 247, .52);
    border-radius: 50%;
    background: var(--ink);
    color: rgba(255, 253, 247, .7);
    transition: color .25s ease, border-color .25s ease, background .25s ease, scale .25s ease, box-shadow .25s ease;
}

.projects-story__rail a > span {
    grid-row: auto;
    padding: 0;
    font-size: .54rem;
}

.projects-story__rail a strong {
    position: absolute;
    top: 50%;
    left: calc(100% + .8rem);
    padding: .38rem .55rem;
    border: 2px solid var(--ink);
    border-radius: 9px;
    background: var(--acid);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    text-transform: uppercase;
    transform: translate(-4px, -50%);
    transition: opacity .2s ease, transform .2s ease;
    white-space: nowrap;
}

.projects-story__rail a small { display: none; }

.projects-story__rail a:hover,
.projects-story__rail a.is-active {
    translate: 0 0;
}

.projects-story__rail a:hover strong,
.projects-story__rail a.is-active strong {
    opacity: 1;
    transform: translate(0, -50%);
}

.projects-story__rail a.is-active {
    scale: 1.2;
    border-color: var(--acid);
    background: var(--acid);
    box-shadow: 4px 4px 0 var(--ink);
    color: var(--ink);
}

@media (max-width: 900px) {
    .projects-story {
        display: block;
    }

    .projects-story__rail {
        top: 4.7rem;
        width: 100%;
        height: auto;
        min-height: 0;
        display: block;
        padding: .7rem 0 .85rem;
        border: 0;
        border-radius: 0;
        background: var(--ink);
        box-shadow: none;
    }

    .projects-story__rail ol {
        width: 100%;
        height: 25px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        margin: 0;
        padding: 0 .4rem;
    }

    .projects-story__rail ol::before {
        top: 50%;
        right: .8rem;
        bottom: auto;
        left: .8rem;
        width: auto;
        height: 2px;
        background: repeating-linear-gradient(to right, rgba(255, 253, 247, .55) 0 9px, transparent 9px 17px);
        transform: translateY(-50%);
    }

    .projects-story__rail li {
        width: auto;
        display: block;
    }

    .projects-story__rail a {
        min-width: 0;
        width: 24px;
        height: 24px;
        grid-template-columns: 1fr;
        padding: 0;
        border-width: 2px;
        border-radius: 50%;
        background: var(--ink);
        translate: 0 0;
    }

    .projects-story__rail a > span {
        font-size: .46rem;
    }

    .projects-story__rail a strong { display: none; }

    .projects-story__rail a.is-active {
        scale: 1.15;
        box-shadow: 3px 3px 0 var(--ink);
    }
}

/* Each project now reads from top to bottom: title, visual, then details. */
.project-chapter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.2rem, 3vh, 2.5rem);
    min-height: min(100svh, 1080px);
}

.project-chapter__copy {
    display: contents;
}

.project-chapter__copy > * {
    position: relative;
    z-index: 1;
}

.project-chapter__meta {
    order: 1;
    width: 100%;
}

.project-chapter__kicker,
.project-chapter__copy > .project-card__client,
.project-chapter__copy > .project-chapter__client {
    order: 2;
    align-self: flex-start;
}

.project-chapter h3 {
    order: 3;
    max-width: 1000px;
}

.project-chapter__visual {
    order: 4;
    width: 100%;
    min-height: min(48vh, 500px);
    margin: .3rem 0 .8rem;
}

.project-chapter__description,
.project-chapter__result,
.project-chapter .project-proof,
.project-chapter .project-novum__actions,
.project-chapter .project-tech {
    width: min(100%, 980px);
    max-width: 980px;
}

.project-chapter__lead {
    order: 5;
    width: min(100%, 980px);
    max-width: 980px;
    margin: .15rem 0 0;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.4vw, 2.7rem);
    line-height: .95;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.project-chapter__description { order: 6; }
.project-chapter__result,
.project-chapter .project-proof { order: 7; }
.project-chapter .project-novum__actions { order: 8; }
.project-chapter .project-tech { order: 9; }

@media (max-width: 900px) {
    .project-chapter {
        gap: 1.4rem;
        min-height: 0;
    }

    .project-chapter__visual {
        order: 4;
        min-height: min(48vh, 420px);
        margin: .2rem 0 .6rem;
    }
}

/* Accordion deck: one project expands while the others remain as colored tabs. */
.projects-story {
    display: block;
}

.projects-story__rail {
    display: none;
}

.projects-story__chapters {
    position: relative;
    height: 500svh;
    min-height: 3600px;
}

.projects-story__stage {
    position: sticky;
    top: 6.2rem;
    height: calc(100svh - 7.4rem);
    min-height: 600px;
    display: flex;
    gap: .45rem;
    overflow: hidden;
}

.project-chapter,
.project-chapter.is-active {
    flex: 0 0 clamp(62px, 6vw, 86px);
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    overflow: hidden;
    padding: 1.2rem .75rem;
    border: 3px solid var(--ink);
    border-radius: 24px;
    box-shadow: 6px 6px 0 var(--ink);
    cursor: pointer;
    transition: flex-basis .7s cubic-bezier(.2, .8, .2, 1), padding .5s ease, border-radius .5s ease, box-shadow .35s ease;
}

.project-chapter.is-active {
    flex: 1 1 0;
    padding: clamp(1.2rem, 2.6vw, 2.8rem);
    border-radius: 28px;
    cursor: default;
}

.project-chapter:not(.is-active) .project-chapter__backdrop {
    opacity: .28;
}

.project-chapter:not(.is-active) .project-chapter__meta {
    position: absolute;
    top: 1rem;
    left: 50%;
    width: max-content;
    padding: 0;
    border: 0;
    transform: translateX(-50%);
}

.project-chapter:not(.is-active) .project-chapter__meta span {
    display: block;
    color: currentColor;
    font-size: .5rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.project-chapter:not(.is-active) .project-chapter__meta b {
    display: none;
}

.project-chapter:not(.is-active) h3 {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    width: max-content;
    max-width: none;
    margin: 0;
    font-size: 0;
    letter-spacing: -.02em;
    line-height: 1;
    writing-mode: vertical-rl;
    white-space: nowrap;
    transform: translateX(-50%) rotate(180deg);
}

.project-chapter:not(.is-active) h3::after {
    content: attr(data-compact);
    display: block;
    color: var(--chapter-fg);
    font-family: var(--mono);
    font-size: clamp(.62rem, 1vw, .78rem);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.05;
    text-transform: uppercase;
}

.project-chapter:not(.is-active) h3 em {
    display: inline;
    color: currentColor;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.project-chapter:not(.is-active) .project-chapter__kicker,
.project-chapter:not(.is-active) .project-chapter__lead,
.project-chapter:not(.is-active) .project-chapter__description,
.project-chapter:not(.is-active) .project-chapter__result,
.project-chapter:not(.is-active) .project-card__client,
.project-chapter:not(.is-active) .project-chapter__client,
.project-chapter:not(.is-active) .project-proof,
.project-chapter:not(.is-active) .project-novum__actions,
.project-chapter:not(.is-active) .project-tech,
.project-chapter:not(.is-active) .project-chapter__visual {
    display: none;
}

.project-chapter.is-active .project-chapter__visual {
    min-height: min(34vh, 340px);
    margin: .2rem 0 .5rem;
    overflow: visible;
}

.project-chapter.is-active .novum-preview {
    width: min(100%, 720px);
}

.project-chapter.is-active .novum-preview__browser {
    display: flex;
    flex-direction: column;
}

.project-chapter.is-active .novum-preview__browser > a {
    min-height: 0;
}

.project-chapter.is-active .novum-preview img {
    max-height: min(36vh, 360px);
    object-fit: contain;
}

.project-chapter.is-active .project-chapter__copy > .project-card__client,
.project-chapter.is-active .project-chapter__copy > .project-chapter__client {
    order: 5;
    margin-top: .2rem;
}

.project-chapter.is-active .project-tech {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid currentColor;
}

.project-chapter.is-active .project-chapter__description,
.project-chapter.is-active .project-chapter__result,
.project-chapter.is-active .project-proof,
.project-chapter.is-active .project-tech {
    font-size: .82rem;
}

.project-chapter.is-active .project-tech__item {
    min-height: 32px;
    font-size: .53rem;
}

@media (max-width: 900px) {
    .projects-story__chapters {
        height: auto;
        min-height: 0;
    }

    .projects-story__stage {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        display: block;
        overflow: visible;
    }

    .project-chapter,
    .project-chapter.is-active {
        width: 100%;
        min-height: 0;
        height: auto;
        display: flex;
        overflow: hidden;
        margin-bottom: 1rem;
        padding: 4rem 1rem 5rem;
        border-radius: 22px;
        box-shadow: 5px 5px 0 var(--ink);
        cursor: default;
    }

    .project-chapter:not(.is-active) .project-chapter__backdrop { display: block; }
    .project-chapter:not(.is-active) .project-chapter__meta { display: flex; }
    .project-chapter:not(.is-active) h3,
    .project-chapter:not(.is-active) .project-chapter__kicker,
    .project-chapter:not(.is-active) .project-chapter__lead,
    .project-chapter:not(.is-active) .project-chapter__description,
    .project-chapter:not(.is-active) .project-card__client,
    .project-chapter:not(.is-active) .project-chapter__client { display: block; }
    .project-chapter:not(.is-active) .project-chapter__result,
    .project-chapter:not(.is-active) .project-proof { display: grid; }
    .project-chapter:not(.is-active) .project-novum__actions,
    .project-chapter:not(.is-active) .project-tech { display: flex; }
    .project-chapter:not(.is-active) .project-chapter__visual { display: grid; }
    .project-chapter:not(.is-active) .project-chapter__backdrop { opacity: 1; }
    .project-chapter:not(.is-active) .project-chapter__meta { position: relative; top: auto; left: auto; width: 100%; padding-bottom: .9rem; border-bottom: 2px solid currentColor; transform: none; }
    .project-chapter:not(.is-active) .project-chapter__meta span { display: inline; font-size: inherit; writing-mode: horizontal-tb; transform: none; }
    .project-chapter:not(.is-active) .project-chapter__meta b { display: inline-block; }
    .project-chapter:not(.is-active) h3::after { display: none; }
    .project-chapter:not(.is-active) h3 { position: relative; bottom: auto; left: auto; width: auto; max-width: 100%; margin: 0; font-size: clamp(2.45rem, 13vw, 4.1rem); line-height: .86; letter-spacing: -.055em; writing-mode: horizontal-tb; white-space: normal; transform: none; }
    .project-chapter:not(.is-active) h3 em { display: block; color: var(--chapter-accent); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--ink); }
    .project-chapter:not(.is-active) .project-chapter__visual { min-height: 300px; margin: .2rem 0 .6rem; }
}

/* Give the client visuals a stronger presence now that the deck has room. */
.project-chapter.is-active .project-chapter__visual .inventory-visual {
    transform: scale(1.28);
}

.project-chapter.is-active .project-chapter__visual .hospital-cross {
    width: clamp(190px, 23vw, 270px);
    height: clamp(190px, 23vw, 270px);
    transform: rotate(6deg) scale(1.1);
}

.project-chapter.is-active .project-chapter__visual .lab-app-visual {
    transform: scale(1.45);
}

.project-chapter.is-active .project-chapter__visual .invitation-card {
    width: clamp(220px, 26vw, 300px);
    height: clamp(270px, 34vw, 370px);
    font-size: 1.4rem;
}

@media (max-width: 900px) {
    .project-chapter.is-active .project-chapter__visual .inventory-visual {
        transform: scale(.98);
    }

    .project-chapter.is-active .project-chapter__visual .hospital-cross {
        transform: rotate(6deg) scale(1);
    }

    .project-chapter.is-active .project-chapter__visual .lab-app-visual {
        transform: scale(1);
    }

    .project-chapter.is-active .project-chapter__visual .invitation-card {
        width: 190px;
        height: 240px;
        font-size: 1.15rem;
    }
}

/* Carousel experiment: the selected project becomes the visual anchor. */
.projects-story[data-project-carousel] .projects-story__chapters {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.projects-story[data-project-carousel] .projects-story__stage {
    --carousel-card: clamp(260px, 28vw, 410px);
    --carousel-active: clamp(350px, 43vw, 650px);
    position: relative;
    top: auto;
    height: auto;
    min-height: 680px;
    display: flex;
    align-items: center;
    gap: clamp(.55rem, 1vw, 1rem);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding: 2.5rem max(1rem, calc((100% - var(--carousel-active)) / 2)) 3.5rem;
    scroll-padding-inline: 50%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.projects-story[data-project-carousel] .projects-story__stage::-webkit-scrollbar { display: none; }

.projects-story[data-project-carousel] .projects-story__stage.is-jumping {
    scroll-snap-type: none;
}

.projects-story[data-project-carousel] .projects-story__stage.is-jumping .project-chapter {
    transition: none !important;
}

.projects-story[data-project-carousel] .project-chapter,
.projects-story[data-project-carousel] .project-chapter.is-active {
    flex: 0 0 var(--carousel-card);
    width: var(--carousel-card);
    height: min(72svh, 690px);
    min-height: 0;
    margin: 0;
    padding: 1.3rem;
    border: 3px solid var(--ink);
    border-radius: 28px;
    box-shadow: 7px 7px 0 var(--ink);
    opacity: .48;
    filter: saturate(.7);
    scroll-snap-align: center;
    transform: scale(.84);
    transform-origin: center center;
    transition: flex-basis .65s cubic-bezier(.2, .8, .2, 1), width .65s cubic-bezier(.2, .8, .2, 1), padding .45s ease, opacity .35s ease, filter .35s ease, transform .65s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.projects-story[data-project-carousel] .project-chapter.is-active {
    flex-basis: var(--carousel-active);
    width: var(--carousel-active);
    padding: clamp(1.4rem, 2.5vw, 2.8rem);
    overflow-y: auto;
    opacity: 1;
    filter: none;
    transform: scale(1);
    box-shadow: 10px 10px 0 var(--ink);
}

.projects-story[data-project-carousel] .project-chapter.is-active::-webkit-scrollbar { display: none; }
.projects-story[data-project-carousel] .project-chapter.is-active { scrollbar-width: none; }

.projects-story[data-project-carousel] .project-chapter:not(.is-active) .project-chapter__backdrop {
    opacity: .18;
}

.projects-story[data-project-carousel] .project-chapter:not(.is-active) h3 {
    top: auto;
    right: 1rem;
    bottom: 1.2rem;
    left: 1rem;
    width: auto;
    max-width: none;
    font-size: 0;
    line-height: 1;
    writing-mode: horizontal-tb;
    white-space: normal;
    transform: none;
}

.projects-story[data-project-carousel] .project-chapter:not(.is-active) h3::after {
    font-size: .7rem;
    letter-spacing: .05em;
    line-height: 1.1;
}

.projects-story[data-project-carousel] .project-chapter:not(.is-active) .project-chapter__visual {
    display: grid;
    width: 100%;
    min-height: 56%;
    margin: 0;
    order: 2;
}

.projects-story[data-project-carousel] .project-chapter.is-active .project-chapter__visual {
    min-height: min(32vh, 325px);
    margin: .25rem 0 .6rem;
}

.projects-story[data-project-carousel] .project-chapter.is-active h3 {
    font-size: clamp(2.3rem, 4.2vw, 5.4rem);
}

.projects-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 4rem);
    margin: -.8rem auto 0;
}

.projects-carousel__arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 253, 247, .55);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-family: var(--mono);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, translate .2s ease;
}

.projects-carousel__arrow:hover,
.projects-carousel__arrow:focus-visible {
    background: var(--acid);
    color: var(--ink);
    translate: 0 -2px;
}

.projects-carousel__dots {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.projects-carousel__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 247, .38);
    cursor: pointer;
    transition: background .2s ease, scale .2s ease;
}

.projects-carousel__dots button.is-active,
.projects-carousel__dots button[aria-selected="true"] {
    background: var(--acid);
    scale: 1.4;
}

@media (max-width: 900px) {
    .projects-story[data-project-carousel] .projects-story__stage {
        --carousel-card: min(78vw, 360px);
        --carousel-active: min(86vw, 400px);
        min-height: 0;
        padding: 2rem max(1rem, calc((100% - var(--carousel-active)) / 2)) 3rem;
    }

    .projects-story[data-project-carousel] .project-chapter,
    .projects-story[data-project-carousel] .project-chapter.is-active {
        flex-basis: var(--carousel-card);
        width: var(--carousel-card);
        height: auto;
        min-height: 580px;
        padding: 1.2rem;
    }

    .projects-story[data-project-carousel] .project-chapter.is-active {
        flex-basis: var(--carousel-active);
        width: var(--carousel-active);
    }

    .projects-story[data-project-carousel] .project-chapter.is-active .project-chapter__visual {
        min-height: 260px;
    }

    .projects-carousel__controls {
        gap: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .sticker-cursor { display: none; }

    .projects-story__chapters {
        height: auto;
        min-height: 0;
    }

    .projects-story__stage {
        position: relative;
        top: auto;
        height: auto;
        display: block;
        overflow: visible;
    }

    .project-chapter,
    .project-chapter.is-active {
        width: 100%;
        min-height: 0;
        height: auto;
        margin-bottom: 1rem;
        cursor: default;
    }

    .project-chapter:not(.is-active) .project-chapter__backdrop { display: block; }
    .project-chapter:not(.is-active) .project-chapter__meta { display: flex; }
    .project-chapter:not(.is-active) h3,
    .project-chapter:not(.is-active) .project-chapter__kicker,
    .project-chapter:not(.is-active) .project-chapter__lead,
    .project-chapter:not(.is-active) .project-chapter__description,
    .project-chapter:not(.is-active) .project-card__client,
    .project-chapter:not(.is-active) .project-chapter__client { display: block; }
    .project-chapter:not(.is-active) .project-chapter__result,
    .project-chapter:not(.is-active) .project-proof { display: grid; }
    .project-chapter:not(.is-active) .project-novum__actions,
    .project-chapter:not(.is-active) .project-tech { display: flex; }
    .project-chapter:not(.is-active) .project-chapter__visual { display: grid; }

    .project-chapter:not(.is-active) .project-chapter__meta { position: relative; top: auto; left: auto; width: 100%; padding-bottom: .9rem; border-bottom: 2px solid currentColor; transform: none; }
    .project-chapter:not(.is-active) .project-chapter__meta span { display: inline; font-size: inherit; writing-mode: horizontal-tb; transform: none; }
    .project-chapter:not(.is-active) .project-chapter__meta b { display: inline-block; }
    .project-chapter:not(.is-active) h3 { position: relative; bottom: auto; left: auto; width: auto; max-width: 100%; margin: 0; font-size: clamp(2.45rem, 13vw, 4.1rem); line-height: .86; letter-spacing: -.055em; writing-mode: horizontal-tb; white-space: normal; transform: none; }
    .project-chapter:not(.is-active) h3 em { display: block; color: var(--chapter-accent); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--ink); }
    .project-chapter:not(.is-active) h3::after { display: none; }

}

@media (hover: none), (pointer: coarse) {
    .sticker-cursor { display: none; }
}

/* Sticky project showcase: one focused case study with a persistent index. */
.projects-story[data-project-showcase] {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4.5rem);
    width: 100%;
    max-width: none;
    align-items: start;
}

.projects-story[data-project-showcase] .projects-story__rail {
    position: sticky;
    top: 7.4rem;
    z-index: 5;
    height: calc(100svh - 9.8rem);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: .2rem 0 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.projects-story[data-project-showcase] .projects-story__rail-head {
    display: grid;
    gap: .25rem;
    padding: 0 0 .85rem;
    border-bottom: 2px solid rgba(255, 253, 247, .45);
}

.projects-story[data-project-showcase] .projects-story__rail-head span {
    color: rgba(255, 253, 247, .55);
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.projects-story[data-project-showcase] .projects-story__rail-head b {
    color: var(--acid);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.projects-story[data-project-showcase] .projects-story__rail ol {
    position: static;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.projects-story[data-project-showcase] .projects-story__rail ol::before,
.projects-story[data-project-showcase] .projects-story__rail a::before {
    display: none;
}

.projects-story[data-project-showcase] .projects-story__rail a {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .12rem .55rem;
    padding: .7rem .75rem;
    border: 2px solid rgba(255, 253, 247, .25);
    border-radius: 15px;
    background: rgba(255, 253, 247, .035);
    color: rgba(255, 253, 247, .62);
    translate: 0 0;
    transition: color .25s ease, border-color .25s ease, background .25s ease, translate .25s ease, box-shadow .25s ease;
}

.projects-story[data-project-showcase] .projects-story__rail a > span {
    grid-row: span 2;
    padding-top: .08rem;
    color: var(--acid);
    font-family: var(--mono);
    font-size: .58rem;
}

.projects-story[data-project-showcase] .projects-story__rail a strong {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-family: var(--display);
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: .95;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    text-transform: uppercase;
    transition: none;
    white-space: normal;
}

.projects-story[data-project-showcase] .projects-story__rail a small {
    display: block;
    color: rgba(255, 253, 247, .48);
    font-family: var(--mono);
    font-size: .49rem;
    letter-spacing: .03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.projects-story[data-project-showcase] .projects-story__rail a:hover,
.projects-story[data-project-showcase] .projects-story__rail a.is-active {
    translate: 4px 0;
    border-color: var(--acid);
    background: var(--acid);
    box-shadow: 4px 4px 0 var(--white);
    color: var(--ink);
}

.projects-story[data-project-showcase] .projects-story__rail a.is-active > span,
.projects-story[data-project-showcase] .projects-story__rail a.is-active small {
    color: var(--ink);
}

.projects-story[data-project-showcase] .projects-story__rail .projects-story__rail-detail {
    grid-column: 1 / -1;
    grid-row: auto;
    display: none;
    margin-top: .65rem;
    padding-top: .65rem;
    padding-bottom: 0;
    border-top: 1px solid rgba(255, 253, 247, .25);
    color: rgba(255, 253, 247, .78);
    font-family: var(--sans);
    font-size: .75rem;
    line-height: 1.45;
}

.projects-story[data-project-showcase] .projects-story__rail-detail-result,
.projects-story[data-project-showcase] .projects-story__rail-detail-tech {
    display: block;
    margin-top: .5rem;
    color: rgba(255, 253, 247, .58);
    font-family: var(--mono);
    font-size: .56rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.projects-story[data-project-showcase] .projects-story__rail a.is-active {
    padding: .9rem .85rem;
    border-color: rgba(255, 253, 247, .35);
    background: rgba(255, 253, 247, .1);
    box-shadow: 5px 5px 0 var(--acid);
    color: var(--white);
    translate: 0 0;
}

.projects-story[data-project-showcase] .projects-story__rail a.is-active strong {
    font-size: 1.42rem;
    line-height: .9;
}

.projects-story[data-project-showcase] .projects-story__rail a.is-active > span {
    color: var(--acid);
}

.projects-story[data-project-showcase] .projects-story__rail a.is-active small {
    color: rgba(255, 253, 247, .55);
}

.projects-story[data-project-showcase] .projects-story__rail a.is-active .projects-story__rail-detail {
    display: block;
}

.projects-story[data-project-showcase] .projects-story__rail .projects-carousel__controls {
    position: absolute;
    top: 50%;
    left: -2.6rem;
    z-index: 2;
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    margin: 0;
    transform: translateY(-50%);
}

.projects-story[data-project-showcase] .projects-story__rail .projects-carousel__arrow {
    width: 34px;
    height: 34px;
    border-color: rgba(255, 253, 247, .4);
    background: rgba(255, 253, 247, .06);
    font-size: 1rem;
}

.projects-story[data-project-showcase] .projects-story__chapters {
    position: relative;
    height: 500svh;
    min-height: 3600px;
    overflow: visible;
}

.projects-story[data-project-showcase] .projects-story__stage {
    position: sticky;
    top: 6.6rem;
    height: calc(100svh - 8rem);
    min-height: 620px;
    display: block;
    overflow: hidden;
    padding: 0;
    isolation: isolate;
}

.projects-story[data-project-showcase] .project-chapter,
.projects-story[data-project-showcase] .project-chapter.is-active {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: auto !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, .86fr) minmax(300px, 1.14fr);
    align-items: stretch;
    gap: clamp(1.5rem, 4vw, 5rem);
    margin: 0;
    padding: clamp(1.4rem, 3.2vw, 3.2rem);
    border: 3px solid var(--ink);
    border-radius: 28px;
    box-shadow: 10px 10px 0 var(--ink);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(1rem) scale(.985);
    transition: opacity .42s ease, visibility 0s linear .42s, transform .62s cubic-bezier(.2, .8, .2, 1);
}

.projects-story[data-project-showcase] .project-chapter.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
    overflow: auto;
    scrollbar-width: none;
}

.projects-story[data-project-showcase] .project-chapter.is-active::-webkit-scrollbar {
    display: none;
}

.projects-story[data-project-showcase] .project-chapter__copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .1rem;
    overflow: auto;
    scrollbar-width: none;
}

.projects-story[data-project-showcase] .project-chapter__copy::-webkit-scrollbar {
    display: none;
}

.projects-story[data-project-showcase] .project-chapter h3 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(3.4rem, 6.4vw, 8rem);
    line-height: .84;
}

.projects-story[data-project-showcase] .project-chapter__lead {
    max-width: 650px;
    margin-top: 1.5rem;
    font-size: clamp(1.25rem, 2.1vw, 2.35rem);
}

.projects-story[data-project-showcase] .project-chapter__description {
    max-width: 620px;
    margin-top: 1.35rem;
    font-size: .96rem;
    line-height: 1.6;
}

.projects-story[data-project-showcase] .project-chapter__result {
    max-width: 620px;
    margin-top: 1.15rem;
}

.projects-story[data-project-showcase] .project-chapter .project-tech {
    max-width: 650px;
    margin-top: auto;
}

.projects-story[data-project-showcase] .project-chapter__visual {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0 !important;
    height: 100%;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    padding: clamp(1rem, 2.5vw, 2.5rem);
    overflow: hidden;
}

.projects-story[data-project-showcase] .project-chapter__visual::after {
    opacity: .18;
}

.projects-story[data-project-showcase] .project-chapter__visual-label {
    right: 1.3rem;
    bottom: 1.1rem;
}

.projects-story[data-project-showcase] .project-chapter .novum-preview {
    width: 100%;
    max-width: 720px;
}

.projects-story[data-project-showcase] .project-chapter .novum-preview img {
    max-height: none;
    object-fit: contain;
}

.projects-story[data-project-showcase] .project-chapter .project-novum__actions {
    margin-top: 1.45rem;
}

.projects-story[data-project-showcase] .project-chapter--novum .project-chapter__lead {
    margin-top: 0;
}

.projects-story[data-project-showcase] .project-chapter--novum .button--acid {
    border: 2px solid var(--ink);
    color: var(--ink);
}

.projects-story[data-project-showcase] .project-chapter--novum .button--acid span {
    color: inherit;
}

@media (min-width: 901px) {
    .projects-story[data-project-showcase] .project-chapter--novum .project-chapter__copy {
        justify-content: center;
    }

    .projects-story[data-project-showcase] .project-chapter--novum .project-tech {
        margin-top: 1.5rem;
    }
}

.projects-story[data-project-showcase] .project-chapter .project-tech__item {
    min-height: 34px;
}

@media (max-width: 900px) {
    .projects-story[data-project-showcase] {
        display: block;
    }

    .projects-story[data-project-showcase] .projects-story__rail {
        position: sticky;
        top: 4.6rem;
        width: 100%;
        height: auto;
        min-height: 0;
        display: block;
        padding: .75rem 0 .85rem;
        border-bottom: 2px solid rgba(255, 253, 247, .22);
        background: var(--ink);
    }

    .projects-story[data-project-showcase] .projects-story__rail-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: .8rem;
        padding-bottom: .65rem;
    }

    .projects-story[data-project-showcase] .projects-story__rail ol {
        flex-direction: row;
        gap: .45rem;
        overflow-x: auto;
        padding: .15rem .1rem .35rem;
        scrollbar-width: none;
    }

    .projects-story[data-project-showcase] .projects-story__rail ol::-webkit-scrollbar {
        display: none;
    }

    .projects-story[data-project-showcase] .projects-story__rail li {
        flex: 0 0 auto;
    }

    .projects-story[data-project-showcase] .projects-story__rail a {
        min-width: 9.5rem;
        padding: .58rem .65rem;
    }

    .projects-story[data-project-showcase] .projects-story__rail a strong {
        font-size: .92rem;
    }

    .projects-story[data-project-showcase] .projects-story__rail .projects-carousel__controls {
        position: static;
        width: auto;
        flex-direction: row;
        margin: .35rem 0 0;
        transform: none;
    }

    .projects-story[data-project-showcase] .projects-story__rail .projects-story__rail-detail {
        display: none !important;
    }

    .projects-story[data-project-showcase] .projects-story__chapters {
        height: auto;
        min-height: 0;
    }

    .projects-story[data-project-showcase] .projects-story__stage {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        display: block;
        overflow: visible;
    }

    .projects-story[data-project-showcase] .project-chapter,
    .projects-story[data-project-showcase] .project-chapter.is-active {
        position: relative;
        inset: auto;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column;
        gap: 1.2rem;
        margin: 0 0 1rem;
        padding: 3.5rem 1rem 4.5rem;
        border-radius: 22px;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .projects-story[data-project-showcase] .project-chapter__copy {
        display: flex;
        order: 1;
    }

    .projects-story[data-project-showcase] .project-chapter__visual {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 300px !important;
        padding: 1rem;
    }

    .projects-story[data-project-showcase] .project-chapter h3 {
        font-size: clamp(2.55rem, 13vw, 4.4rem);
    }

    .projects-story[data-project-showcase] .project-chapter__description {
        font-size: .9rem;
    }

    .projects-story[data-project-showcase] .project-chapter .project-tech {
        margin-top: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-story[data-project-showcase] .project-chapter,
    .projects-story[data-project-showcase] .project-chapter.is-active {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
    .projects-story[data-project-showcase] .projects-story__chapters {
        height: auto;
        min-height: 0;
    }

    .projects-story[data-project-showcase] .projects-story__stage {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .projects-story[data-project-showcase] .project-chapter,
    .projects-story[data-project-showcase] .project-chapter.is-active {
        position: relative;
        inset: auto;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        margin: 0 0 1rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
}

/* Neutral state: the project area starts as one centered editorial card. */
.projects.projects--showcase > .projects__heading {
    display: none;
}

.projects-story[data-project-showcase]:not(.is-open) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    width: 100%;
    max-width: none;
    margin-inline: auto;
    min-height: clamp(500px, 68svh, 720px);
    padding: clamp(1.4rem, 3vw, 2.8rem);
    border: 3px solid var(--ink);
    border-radius: 30px;
    background: var(--blue);
    box-shadow: 11px 11px 0 var(--acid);
    overflow: visible;
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__rail {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    align-self: center;
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__chapters {
    display: none;
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__intro {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .9fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 3.5rem);
    min-height: 100%;
}

.projects-story__intro-copy {
    position: relative;
    z-index: 1;
}

.projects-story__intro-kicker {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: .45rem .65rem;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--acid);
    box-shadow: 4px 4px 0 var(--ink);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.projects-story__intro h3 {
    max-width: 680px;
    margin: 1.5rem 0 0;
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(3.6rem, 6vw, 7.3rem);
    font-weight: 400;
    line-height: .83;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.projects-story__intro h3 em {
    color: var(--acid);
    font-style: normal;
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
    text-shadow: 5px 5px 0 var(--ink);
}

.projects-story__intro-copy > p {
    max-width: 500px;
    margin: 1.5rem 0 0;
    color: rgba(255, 253, 247, .78);
    font-size: .98rem;
    line-height: 1.6;
}

.projects-story__intro-hint {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 2.4rem;
    color: var(--acid);
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.projects-story__intro-hint b {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid var(--acid);
    border-radius: 50%;
    font-size: .8rem;
}

.projects-story__intro-visual {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 24px;
    background: var(--paper);
    color: var(--ink);
    transform: rotate(2deg);
    box-shadow: 8px 8px 0 var(--ink);
}

.projects-story__intro-symbol {
    position: absolute;
    top: -.1em;
    right: -.05em;
    color: transparent;
    font-family: var(--mono);
    font-size: clamp(8rem, 18vw, 15rem);
    font-weight: 700;
    letter-spacing: -.14em;
    line-height: .8;
    -webkit-text-stroke: 2px var(--blue);
    opacity: .38;
}

.projects-story__intro-terminal {
    position: relative;
    z-index: 1;
    width: min(88%, 320px);
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 14px;
    background: var(--ink);
    box-shadow: 6px 6px 0 var(--orange);
    transform: rotate(-4deg);
}

.projects-story__intro-terminal > div {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .65rem;
    border-bottom: 2px solid rgba(255, 253, 247, .28);
    color: rgba(255, 253, 247, .62);
    font-family: var(--mono);
    font-size: .5rem;
}

.projects-story__intro-terminal > div i {
    width: 8px;
    height: 8px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--orange);
}

.projects-story__intro-terminal > div i:nth-of-type(2) { background: var(--acid); }
.projects-story__intro-terminal > div i:nth-of-type(3) { background: var(--aqua); }
.projects-story__intro-terminal > div span { margin-left: auto; }

.projects-story__intro-terminal pre {
    margin: 0;
    padding: 1.2rem 1.1rem 1.35rem;
    color: var(--white);
    font-family: var(--mono);
    font-size: .7rem;
    line-height: 1.7;
}

.projects-story__intro-terminal pre b { color: var(--acid); }
.projects-story__intro-terminal pre em { color: var(--orange); font-style: normal; }

.projects-story__intro-stamp {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: grid;
    gap: .15rem;
    padding: .45rem .55rem;
    border: 2px solid var(--ink);
    background: var(--aqua);
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-5deg);
}

.projects-story__intro-stamp b {
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: .8;
}

.projects-story__intro-stamp span {
    font-family: var(--mono);
    font-size: .42rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.projects-story[data-project-showcase].is-open {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.projects-story[data-project-showcase].is-open .projects-story__intro {
    display: none;
}

.projects-story[data-project-showcase].is-open .projects-story__chapters {
    display: block;
}

@media (max-width: 900px) {
    .projects-story[data-project-showcase]:not(.is-open) {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 1rem;
    }

    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail {
        display: block;
    }

    .projects-story[data-project-showcase]:not(.is-open) .projects-story__intro {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 1.5rem;
        padding: 2.5rem .25rem .5rem;
    }

    .projects-story[data-project-showcase]:not(.is-open) .projects-story__intro h3 {
        font-size: clamp(3.1rem, 14vw, 5.2rem);
    }

    .projects-story[data-project-showcase]:not(.is-open) .projects-story__intro-visual {
        min-height: 260px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .projects-story[data-project-showcase] .projects-story__intro-visual,
    .projects-story[data-project-showcase] .projects-story__intro-terminal,
    .projects-story[data-project-showcase] .projects-story__intro-stamp {
        transform: none;
    }
}

/* The selected project stays inside the same centered card. */
.projects-story[data-project-showcase] .projects-story__chapters {
    display: none;
    height: auto;
    min-height: 0;
}

.projects-story[data-project-showcase] .projects-story__stage {
    position: relative;
    top: auto;
    height: clamp(500px, 68svh, 720px);
    min-height: 0;
}

.projects-story[data-project-showcase].is-open {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    width: 100%;
    max-width: none;
    margin-inline: auto;
    min-height: clamp(500px, 68svh, 720px);
    padding: clamp(1.4rem, 3vw, 2.8rem);
    border: 3px solid var(--ink);
    border-radius: 30px;
    background: var(--blue);
    box-shadow: 11px 11px 0 var(--acid);
    overflow: visible;
}

.projects-story[data-project-showcase].is-open .projects-story__rail {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    align-self: center;
}

.projects-story[data-project-showcase].is-open .projects-story__chapters {
    display: block;
}

.projects-story[data-project-showcase].is-open .projects-story__stage {
    height: clamp(500px, 68svh, 720px);
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 900px) {
    .projects-story[data-project-showcase].is-open {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 1rem;
    }

    .projects-story[data-project-showcase].is-open .projects-story__rail {
        display: block;
    }

    .projects-story[data-project-showcase].is-open .projects-story__stage {
        height: clamp(560px, 78svh, 760px);
    }

    .projects-story[data-project-showcase].is-open .project-chapter,
    .projects-story[data-project-showcase].is-open .project-chapter.is-active {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column;
        gap: 1.1rem;
        margin: 0;
        padding: 2.5rem 1rem 3rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(1rem) scale(.985);
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .projects-story[data-project-showcase].is-open .project-chapter__copy {
        display: flex !important;
        order: 1;
        min-width: 0;
    }

    .projects-story[data-project-showcase].is-open .project-chapter__visual {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 220px !important;
        padding: .5rem;
    }
}

@media (max-width: 900px) {
    /* Keep the project controls in one vertical column beside the menu. */
    .projects-story[data-project-showcase] .projects-story__rail,
    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail,
    .projects-story[data-project-showcase].is-open .projects-story__rail {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
        column-gap: .7rem;
    }

    .projects-story[data-project-showcase] .projects-story__rail-head {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .projects-story[data-project-showcase] .projects-story__rail .projects-carousel__controls {
        grid-column: 1;
        grid-row: 2;
        position: static;
        width: 34px;
        flex-direction: column;
        gap: .55rem;
        margin: 0;
        transform: none;
    }

    .projects-story[data-project-showcase] .projects-story__rail ol {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
    }
}

/* Final project index layout: the heading lives on the black section, while
   the bordered card is reserved for the project index and the selected case. */
.projects.projects--showcase > .projects__heading {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto clamp(2.3rem, 4vw, 4.5rem);
}

.projects.projects--showcase > .projects__heading h2 {
    max-width: 1480px;
    margin: 0 auto;
}

.projects-story[data-project-showcase] .projects-story__rail a > span,
.projects-story[data-project-showcase] .projects-story__rail a small,
.projects-story[data-project-showcase] .projects-story__rail .projects-story__rail-detail,
.projects-story[data-project-showcase] .projects-story__rail .projects-story__rail-detail-result,
.projects-story[data-project-showcase] .projects-story__rail .projects-story__rail-detail-tech {
    display: none;
}

.projects-story[data-project-showcase] .projects-story__rail a {
    width: 100%;
    height: auto;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 54px;
    overflow: visible;
    text-align: left;
}

.projects-story[data-project-showcase] .projects-story__rail a strong {
    position: static;
    display: block;
    min-width: 0;
    width: 100%;
    overflow-wrap: normal;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: normal !important;
    hyphens: none;
    transform: none !important;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    line-height: .95;
}

.projects-story[data-project-showcase] .projects-story__rail a.is-active strong {
    font-size: clamp(1.08rem, 2vw, 1.55rem);
}

.projects-story[data-project-showcase]:not(.is-open) {
    display: grid;
    grid-template-columns: 34px minmax(280px, 520px);
    justify-content: start;
    align-items: center;
    min-height: 0;
    padding: clamp(1.1rem, 2.4vw, 2rem);
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__rail {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 34px minmax(280px, 520px);
    justify-content: start;
    align-items: center;
    width: 100%;
    min-height: 0;
    padding: 0;
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__rail ol {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
    width: 100%;
    margin: 0;
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__rail a {
    justify-content: flex-start;
    min-height: 58px;
    padding: .75rem .9rem;
    text-align: left;
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__rail a strong {
    font-size: clamp(.78rem, 1.6vw, 1.25rem);
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__rail .projects-carousel__controls {
    grid-column: 1;
    grid-row: 1;
    position: static;
    width: 34px;
    flex-direction: column;
    gap: .55rem;
    margin: 0;
    transform: none;
}

.projects-story[data-project-showcase]:not(.is-open) .projects-story__chapters {
    display: none !important;
}

.projects-story[data-project-showcase] .project-chapter:not(.is-active) h3 {
    writing-mode: horizontal-tb !important;
    transform: none !important;
}

.projects-story[data-project-showcase] .project-chapter.is-active h3 {
    max-width: 100%;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none;
}

@media (min-width: 901px) {
    .projects-story[data-project-showcase] .project-chapter.is-active {
        overflow: hidden;
    }

    .projects-story[data-project-showcase] .project-chapter.is-active .project-chapter__copy {
        min-height: 0;
        overflow-y: auto;
        padding-right: clamp(.35rem, 1vw, 1rem);
        scrollbar-width: thin;
    }

    .projects-story[data-project-showcase] .project-chapter.is-active h3 {
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        font-size: clamp(2.8rem, 4.7vw, 5.6rem);
    }

    .projects-story[data-project-showcase] .project-chapter.is-active .project-chapter__lead {
        font-size: clamp(1.12rem, 1.8vw, 1.9rem);
    }

    .projects-story[data-project-showcase] .project-chapter.is-active .project-chapter__description,
    .projects-story[data-project-showcase] .project-chapter.is-active .project-chapter__result {
        font-size: .88rem;
        line-height: 1.5;
    }

    .projects-story[data-project-showcase] .project-chapter.is-active .project-tech {
        flex-shrink: 0;
    }
}

@media (max-width: 900px) {
    .projects.projects--showcase > .projects__heading h2 {
        max-width: none;
    }

    .projects-story[data-project-showcase]:not(.is-open) {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 1rem;
    }

    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail ol {
        display: flex;
        flex-direction: column;
        gap: .45rem;
    }

    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail a {
        min-height: 54px;
    }

    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail a strong {
        font-size: .78rem;
    }

    .projects-story[data-project-showcase].is-open .projects-story__rail a strong,
    .projects-story[data-project-showcase].is-open .projects-story__rail a.is-active strong {
        font-size: .9rem;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .project-chapter__copy {
        overflow: visible;
    }
}

/* Client and freelance cases use a compact type scale so every field fits
   inside the project panel without creating an inner scroll area. */
@media (min-width: 901px) {
    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active {
        overflow: hidden;
    }

    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active .project-chapter__copy {
        justify-content: center;
        overflow: visible;
        padding-right: 0;
    }

    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active h3 {
        font-size: clamp(1.95rem, 3.05vw, 3.85rem);
        line-height: .88;
    }

    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active .project-card__client,
    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active .project-chapter__client {
        margin-top: 0;
        margin-bottom: .7rem;
        padding: .35rem .55rem;
        font-size: .52rem;
    }

    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active .project-chapter__description {
        margin-top: .8rem;
        font-size: .8rem;
        line-height: 1.45;
    }

    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active .project-chapter__result {
        margin-top: .8rem;
        padding: .6rem .7rem;
        font-size: .72rem;
        line-height: 1.35;
    }

    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active .project-tech {
        flex-shrink: 0;
        margin-top: 1rem !important;
        padding-top: .75rem;
    }
}

@media (max-width: 900px) {
    .projects-story[data-project-showcase] .project-chapter:not(.project-chapter--novum).is-active h3 {
        font-size: clamp(2.05rem, 9vw, 3.35rem);
        line-height: .9;
    }
}

/* Keep the laboratory illustration centered and fully inside its visual area. */
.projects-story[data-project-showcase] .project-chapter--lab .project-chapter__visual .lab-app-visual {
    width: min(100%, 420px);
    height: 260px;
    margin: 0;
    align-self: center;
    justify-self: center;
    transform: none;
    transform-origin: center;
}

.projects-story[data-project-showcase] .project-chapter--lab .project-chapter__visual .lab-app-visual > div {
    top: 4%;
    right: 12%;
    width: 68%;
    height: 64%;
}

.projects-story[data-project-showcase] .project-chapter--lab .project-chapter__visual .lab-app-visual div span {
    font-size: clamp(2.8rem, 5vw, 4rem);
}

.projects-story[data-project-showcase] .project-chapter--lab .project-chapter__visual .lab-app-visual > b {
    bottom: 4%;
    left: 12%;
    padding: .8rem 1rem;
    font-size: .82rem;
}

@media (max-width: 900px) {
    .projects-story[data-project-showcase] .project-chapter--lab .project-chapter__visual .lab-app-visual {
        width: min(100%, 340px);
        height: 220px;
    }
}

@media (max-width: 900px) {
    /* Mobile selector: previous arrow, active title, next arrow. */
    .projects-story[data-project-showcase] .projects-story__rail,
    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail,
    .projects-story[data-project-showcase].is-open .projects-story__rail {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) 36px !important;
        align-items: center;
        column-gap: .45rem;
        padding: .65rem 0;
    }

    .projects-story[data-project-showcase] .projects-story__rail .projects-carousel__controls {
        display: contents !important;
    }

    .projects-story[data-project-showcase] .projects-story__rail .projects-carousel__arrow {
        position: static;
        grid-row: 1;
        width: 34px;
        height: 34px;
        margin: 0;
    }

    .projects-story[data-project-showcase] .projects-story__rail .projects-carousel__arrow:first-child {
        grid-column: 1;
    }

    .projects-story[data-project-showcase] .projects-story__rail .projects-carousel__arrow:last-child {
        grid-column: 3;
    }

    .projects-story[data-project-showcase] .projects-story__rail ol,
    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail ol {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: block !important;
        width: 100%;
        height: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .projects-story[data-project-showcase] .projects-story__rail li {
        display: none !important;
        width: 100%;
    }

    .projects-story[data-project-showcase] .projects-story__rail li:has(a.is-active) {
        display: block !important;
    }

    .projects-story[data-project-showcase] .projects-story__rail a,
    .projects-story[data-project-showcase]:not(.is-open) .projects-story__rail a {
        justify-content: center;
        width: min(100%, 190px);
        justify-self: center;
        min-width: 0;
        min-height: 34px;
        padding: .4rem .5rem;
        border-radius: 999px;
        background: var(--paper);
        color: var(--ink);
        box-shadow: 3px 3px 0 var(--ink);
        text-align: center;
    }

    .projects-story[data-project-showcase] .projects-story__rail a strong,
    .projects-story[data-project-showcase].is-open .projects-story__rail a strong {
        width: auto;
        font-size: .82rem;
        line-height: 1;
    }

    .projects-story[data-project-showcase] .projects-story__rail a.is-active {
        min-height: 36px;
        padding: .45rem .5rem;
        background: var(--acid);
        color: var(--ink);
        box-shadow: 3px 3px 0 var(--ink);
    }

    .projects-story[data-project-showcase] .projects-story__rail {
        margin-bottom: .8rem;
        background: transparent !important;
        border-bottom: 0 !important;
        padding-top: .25rem;
        padding-bottom: .25rem;
    }

    .projects-story[data-project-showcase] .projects-story__rail .projects-carousel__arrow {
        border-color: var(--ink);
        background: transparent;
        color: var(--ink);
    }

    /* Let the active project grow naturally instead of stacking layers in a
       fixed-height viewport. */
    .projects-story[data-project-showcase].is-open .projects-story__stage {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .projects-story[data-project-showcase].is-open .project-chapter:not(.is-active) {
        display: none !important;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active {
        position: relative;
        inset: auto;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        overflow: visible;
        padding: 1.2rem .4rem 1.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .project-chapter__copy {
        flex: 0 0 auto;
        width: 100%;
        min-height: 0;
        overflow: visible;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .project-tech {
        margin-top: 1rem !important;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .project-chapter__visual {
        flex: 0 0 auto;
        width: 100%;
        height: 220px;
        min-height: 220px !important;
        margin: 1rem 0 0;
        padding: 0;
        overflow: hidden;
        order: 2;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .novum-preview img {
        max-height: none;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .projects-story[data-project-showcase].is-open .project-chapter--novum.is-active .project-chapter__visual {
        height: auto;
        min-height: 0 !important;
        overflow: visible;
        padding: 0 .1rem;
    }

    .projects-story[data-project-showcase].is-open .project-chapter--novum.is-active .novum-preview {
        width: 100%;
        max-width: none;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .inventory-visual {
        width: min(100%, 290px);
        height: 180px;
        transform: none;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .hospital-cross {
        width: 145px;
        height: 145px;
        transform: rotate(6deg);
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .lab-app-visual {
        width: min(100%, 320px);
        height: 205px;
        transform: none;
    }

    .projects-story[data-project-showcase].is-open .project-chapter.is-active .invitation-card {
        width: 175px;
        height: 220px;
        transform: rotate(8deg);
    }
}
