:root {
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --primary: #070709;
    --secondary: rgba(255, 255, 255, 0.04);
    --accent: #ffffff;
    --accent-secondary: #d4d4d8;
    --text: #ffffff;
    --text-secondary: #ffffff;
    --gradient: linear-gradient(180deg, #ffffff 0%, #d4d4d8 100%);
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.035) 45%, rgba(255, 255, 255, 0.02) 100%);
    --glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.025) 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    --glass-blur: blur(10px) saturate(130%);
    --glass-blur-strong: blur(12px) saturate(140%);
}

@media (prefers-reduced-motion: reduce) {

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14.4px;
}

body {
    font-family: var(--font-text);
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.card-title {
    font-family: var(--font-display);
    color: #ffffff;
}

p,
span,
em,
a,
li {
    color: #ffffff;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--primary);
}

input,
textarea,
[contenteditable] {
    caret-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 80px;
    }
}

.header {
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
    position: relative;
    overflow: hidden;
    padding: 64px 0 40px;
}

@media (min-width: 768px) {
    .header {
        padding: 60px 0 40px;
    }
}

.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: drift 60s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hero: one grid so the same markup can reorder per breakpoint.
   Phones/tablets stack (name, photo + badge, bio); desktop puts the
   photo + badge in a fixed-width right column next to the text. */
.hero-grid {
    --badge-w: min(80vw, 280px);
    --hero-aside-w: 300px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "title"
        "aside"
        "copy";
    row-gap: 2.25rem;
    justify-items: center;
    text-align: center;
}

.hero-title {
    grid-area: title;
    min-width: 0;
}

.hero-title h1 {
    letter-spacing: -0.01em;
}

.hero-tagline {
    max-width: 44ch;
    margin: 0.2rem auto 0;
    font-size: 1.15rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.hero-tagline strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.hero-aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.hero-aside .avatar-container {
    z-index: 2;
}

.hero-copy {
    grid-area: copy;
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .hero-grid {
        --badge-w: 260px;
        row-gap: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        --badge-w: 280px;
        --name-size: clamp(2.75rem, 6.16vw, 6.05rem);
        --title-pad: 36px;
        grid-template-columns: minmax(0, 1fr) var(--hero-aside-w);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "title aside"
            "copy  aside";
        column-gap: clamp(40px, 5vw, 72px);
        row-gap: 1.75rem;
        justify-items: start;
        align-items: start;
        text-align: left;
    }

    .hero-title {
        padding-top: var(--title-pad);
    }

    .hero-title h1 {
        font-size: var(--name-size);
    }

    .hero-tagline {
        margin-left: 0;
    }

    .hero-aside {
        width: var(--hero-aside-w);
        /* top of the photo lines up with the top of the capital letters in the name
           (half-leading + ascender gap above cap height ≈ 0.19em) */
        padding-top: calc(var(--title-pad) + var(--name-size) * 0.19);
    }
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-link:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: underline;
}

.social-icon {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    vertical-align: -2px;
    margin-right: 6px;
}

.gradient-text {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    font-weight: 500;
}

.avatar-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .avatar-container {
        width: 180px;
        height: 180px;
    }
}

.avatar-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 45%, transparent 70%);
    filter: blur(12px);
    animation: avatarBreathe 4s ease-in-out infinite alternate;
    pointer-events: none;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.avatar-outer-reticle {
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    animation: reticleSpin 26s linear infinite;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.avatar-outer-reticle::before,
.avatar-outer-reticle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.8;
}

.avatar-outer-reticle::before {
    top: -3.5px;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.8);
}

.avatar-outer-reticle::after {
    bottom: -3px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.avatar-outer-reticle.pulse-top::before,
.avatar-outer-reticle.pulse-bottom::after {
    animation: reticleMarkerPulse 0.35s ease-out;
}

.avatar-orbit-beam {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2.5px;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.5) 70%, #ffffff 92%, #ffffff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
    pointer-events: none;
    transition: filter 0.4s ease;
    transform: rotate(0deg);
}

.avatar-orbit-plane {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(0deg);
    z-index: 3;
}

.avatar-orbit-plane-icon {
    position: absolute;
    top: 0;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%) rotate(45deg);
    filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 6px rgba(255, 255, 255, 0.75));
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    z-index: 2;
}

.avatar-container:hover .profile-picture {
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}

.avatar-container:hover .avatar-orbit-beam {
    animation-duration: 2.5s;
    filter: drop-shadow(0 0 12px #ffffff);
}

.avatar-container:hover .avatar-outer-reticle {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.45);
}

.avatar-container:hover .avatar-glow {
    opacity: 0.95;
    filter: blur(16px);
}



@keyframes reticleSpin {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes reticleMarkerPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.75;
        filter: brightness(1);
    }

    16% {
        transform: translateX(-50%) scale(1.8);
        opacity: 1;
        filter: brightness(1.35);
    }

    30% {
        transform: translateX(-50%) scale(1.05);
        opacity: 0.9;
        filter: brightness(1.1);
    }
}

@keyframes avatarBreathe {
    0% {
        transform: scale(0.95);
        opacity: 0.35;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.75;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.35;
    }
}

h1 {
    font-size: clamp(2.75rem, 8.8vw, 6.05rem);
    line-height: 1.1;
    color: #ffffff;
    font-weight: 500;
}

.bio,
.hero-cta {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 70ch;
    margin: 0 auto;
    text-align: center;
}

.bio {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.bio p + p {
    margin-top: 1em;
}

.hero-cta {
    margin-top: 1.7em;
    margin-bottom: 40px;
}

@media (min-width: 768px) {

    .bio,
    .hero-cta {
        font-size: 1.25rem;
    }

    .hero-cta {
        text-align: left;
    }
}

@media (min-width: 1024px) {

    .bio,
    .hero-cta {
        margin-left: 0;
    }
}

.card::before,
.ai-demo::before,
.download-link::before,
.audio-controls::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 28%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.12) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.card::after,
.ai-demo::after,
.download-link::after,
.audio-controls::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
}

.tech-badge::before,
.tech-badge::after {
    content: none;
}

.card>*,
.ai-demo>*,
.tech-badge,
.download-link,
.audio-controls>* {
    position: relative;
    z-index: 1;
}

.section {
    margin-top: 18px;
    padding: 12px 0;
}

@media (min-width: 768px) {
    .section {
        margin-top: 8px;
        padding: 20px 0;
    }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-align: center;
}

.company-name {
    color: #ffffff;
    font-style: italic;
    font-weight: normal;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
        text-align: left;
    }
}

.research-section {
    padding-top: 4px;
}

.research-shell {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: rgba(15, 17, 21, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    min-height: 700px;
}

.research-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.research-sidebar {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 14px 20px;
}



.research-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.research-nav-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.research-nav-label {
    padding: 0 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.research-nav-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.research-item {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 14px 14px 12px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.research-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.research-item.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 25px rgba(0, 0, 0, 0.12);
}

.research-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.research-item-title {
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.96);
}

.research-item-toggle {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-right: 1.5px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.research-item.is-active .research-item-toggle {
    transform: rotate(-135deg);
    border-color: rgba(255, 255, 255, 0.8);
}

.research-item-toggle--hint {
    animation: researchToggleHint 1.3s ease-in-out infinite;
}

@keyframes researchToggleHint {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.5;
        border-color: rgba(255, 255, 255, 0.45);
    }

    50% {
        transform: rotate(45deg) translate(2px, 2px);
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.85);
    }
}

@media (min-width: 900px) {
    .research-item-toggle {
        display: none;
    }
}

.research-item-company {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.research-item-meta {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.research-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
}

.research-detail {
    width: 100%;
    padding: 20px 18px 26px;
}

.research-detail-card {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 0 0;
    animation: researchFadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.research-detail-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.research-date {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.research-detail-title {
    font-size: clamp(1.9rem, 2.7vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 18px;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.research-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.research-detail-body {
    display: grid;
    gap: 1.35rem;
    min-width: 0;
}

.research-detail-body p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    max-width: 72ch;
}

.research-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    transition: text-decoration-color 0.25s ease;
}

.research-link:hover {
    text-decoration-color: rgba(255, 255, 255, 0.9);
}

/* Project images: uniform format across all projects — rounded corners + soft shadow. */
.research-image-card {
    margin: 0;
}

.research-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.research-image--full {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

.research-media {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.research-media-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

.research-media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.research-media-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.78rem;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.research-media-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.research-media-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: currentColor;
}

.research-image-caption {
    margin-top: 6px;
    padding: 0 14px;
    font-size: 0.68rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes researchFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 900px) {
    .research-shell {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .research-sidebar {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
        padding: 18px 12px 18px 16px;
    }

    .research-detail {
        padding: 28px 32px 34px;
    }
}

@media (max-width: 899px) {
    .research-content {
        display: none;
    }

    .research-item {
        scroll-margin-top: 12px;
    }

    .research-mobile-detail {
        margin: 6px 0 16px;
        padding: 14px 14px 6px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
    }

    .research-mobile-detail .research-detail-card {
        padding-top: 0;
    }
}

@media (min-width: 900px) {
    .research-mobile-detail {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .research-item {
        padding: 12px 12px 10px;
    }

    .research-detail {
        padding: 16px 14px 20px;
    }

    .research-detail-body p {
        font-size: 0.98rem;
    }
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

.card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 22px;
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: var(--glass-border);
    height: 100%;
    box-shadow: var(--glass-shadow);
    color: #ffffff;
    isolation: isolate;
}

@media (min-width: 768px) {
    .card {
        padding: 32px;
    }
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
    background: var(--glass-bg-strong);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
}

.card-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.card p {
    color: #ffffff;
}

.education-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .education-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.education-header h3 {
    font-size: 1.3rem;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

@media (min-width: 768px) {
    .education-header h3 {
        font-size: 1.5rem;
    }
}

.skills-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.skills-group {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.skills-group h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 12px;
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .skills-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

.tech-badge,
.society-badge {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease;
    text-align: center;
    overflow: visible;
    isolation: auto;
}

.tech-badge:hover,
.society-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

@media (min-width: 768px) {

    .tech-badge,
    .society-badge {
        padding: 6px 14px;
        font-size: 0.9rem;
    }
}

.footer {
    text-align: center;
    padding: 20px 20px 24px;
    color: #ffffff;
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
}

@media (min-width: 768px) {
    .footer {
        margin-top: 32px;
        font-size: 0.82rem;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.footer-text {
    text-align: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.footer-social-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.footer-social-link:hover svg {
    transform: scale(1.1);
}

.education-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.societies-title {
    margin-bottom: 1rem;
    color: #ffffff;
}

.societies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .societies {
        justify-content: flex-start;
    }
}

.degree {
    color: #ffffff;
    font-style: italic;
    margin-top: -1rem;
    margin-bottom: 0.9rem;
}

.ai-demo {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-radius: 24px;
    padding: 32px;
    margin-top: 40px;
    border: var(--glass-border);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    color: #ffffff;
    isolation: isolate;
}

.ai-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .ai-demo {
        padding: 16px;
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease-out forwards;
}

.pdf-container {
    margin-top: 20px;
    width: 100%;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.pdf-object {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.download-link {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    isolation: isolate;
}

.download-link:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07));
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 26px rgba(0, 0, 0, 0.12);
}

.audio-controls {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#play-pause-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-text);
    font-size: 0.66rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ------------------------------------------------------------------
   Developer ID badge
   .id-badge        idle sway (rotate, origin = top of lanyard)
   .id-badge__stage perspective + press feedback
   .id-badge__tilt  cursor tilt + lift (transform set by id-badge.js)
   .id-badge__flip  rotateY flip
   .id-face         front / back, backface hidden
   ------------------------------------------------------------------ */
.id-badge-mount {
    --bw: var(--badge-w, 280px);
    --badge-r: calc(var(--bw) * 0.06);
    --pad: calc(var(--bw) * 0.065);
    --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    --badge-label: clamp(11px, calc(var(--bw) * 0.04), 12px);
    position: relative;
    z-index: 1;
    width: var(--bw);
    max-width: 100%;
    /* the strap starts behind the photo */
    margin-top: -46px;
}

.id-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 50% 0;
    animation: idBadgeSway 6s ease-in-out infinite;
}

@keyframes idBadgeSway {

    0%,
    100% {
        transform: rotate(-1.5deg);
    }

    50% {
        transform: rotate(1.5deg);
    }
}

/* Lanyard + clip */
.id-badge__lanyard {
    position: relative;
    width: 15px;
    height: 104px;
    overflow: hidden;
    /* embossed crocodile leather: round side shading and a soft center sheen over a scale tile */
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, transparent 24%, rgba(255, 255, 255, 0.05) 50%, transparent 76%, rgba(0, 0, 0, 0.4) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='47.73' viewBox='0 0 15 47.73'%3E%3Cdefs%3E%3CradialGradient id='d' cx='.45' cy='.38' r='.75'%3E%3Cstop offset='0' stop-color='%23333339'/%3E%3Cstop offset='.55' stop-color='%2328282d'/%3E%3Cstop offset='1' stop-color='%231e1e22'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='15' height='47.73' fill='%23141417'/%3E%3Cg fill='url%28%23d%29'%3E%3Crect x='-1.0' y='0.38' width='4.88' height='6.4' rx='1.88'/%3E%3Crect x='4.63' y='0.38' width='5.75' height='6.4' rx='1.90'/%3E%3Crect x='11.13' y='0.38' width='4.87' height='2.84' rx='1.09'/%3E%3Crect x='11.13' y='3.96' width='4.87' height='2.81' rx='1.08'/%3E%3Crect x='-1.0' y='7.53' width='5.0' height='2.36' rx='0.91'/%3E%3Crect x='-1.0' y='10.64' width='5.0' height='2.09' rx='0.80'/%3E%3Crect x='4.75' y='7.53' width='5.29' height='5.2' rx='1.90'/%3E%3Crect x='10.79' y='7.53' width='5.21' height='5.2' rx='1.90'/%3E%3Crect x='-1.0' y='13.48' width='4.56' height='3.59' rx='1.38'/%3E%3Crect x='-1.0' y='17.81' width='4.56' height='2.66' rx='1.02'/%3E%3Crect x='4.31' y='13.48' width='5.84' height='7.0' rx='1.90'/%3E%3Crect x='10.9' y='13.48' width='5.1' height='2.44' rx='0.94'/%3E%3Crect x='10.9' y='16.66' width='5.1' height='3.81' rx='1.47'/%3E%3Crect x='-1.0' y='21.23' width='5.36' height='2.67' rx='1.03'/%3E%3Crect x='-1.0' y='24.64' width='5.36' height='2.38' rx='0.92'/%3E%3Crect x='5.11' y='21.23' width='5.63' height='5.8' rx='1.90'/%3E%3Crect x='11.49' y='21.23' width='4.51' height='1.94' rx='0.75'/%3E%3Crect x='11.49' y='23.91' width='4.51' height='3.11' rx='1.20'/%3E%3Crect x='-1.0' y='27.78' width='4.95' height='2.56' rx='0.98'/%3E%3Crect x='-1.0' y='31.09' width='4.95' height='3.29' rx='1.27'/%3E%3Crect x='4.7' y='27.78' width='5.23' height='6.6' rx='1.90'/%3E%3Crect x='10.68' y='27.78' width='5.32' height='2.87' rx='1.10'/%3E%3Crect x='10.68' y='31.4' width='5.32' height='2.98' rx='1.15'/%3E%3Crect x='-1.0' y='35.12' width='4.87' height='4.9' rx='1.87'/%3E%3Crect x='4.62' y='35.12' width='6.01' height='4.9' rx='1.88'/%3E%3Crect x='11.38' y='35.12' width='4.62' height='4.9' rx='1.78'/%3E%3Crect x='-1.0' y='40.77' width='4.94' height='2.94' rx='1.13'/%3E%3Crect x='-1.0' y='44.46' width='4.94' height='2.51' rx='0.97'/%3E%3Crect x='4.69' y='40.77' width='5.76' height='6.2' rx='1.90'/%3E%3Crect x='11.2' y='40.77' width='4.8' height='2.43' rx='0.93'/%3E%3Crect x='11.2' y='43.96' width='4.8' height='3.02' rx='1.16'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 15px 47.73px repeat-y,
        #16161a;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.07), inset -1px 0 0 rgba(255, 255, 255, 0.07), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.id-badge__clip {
    position: relative;
    z-index: 2;
    width: 26px;
    height: 13px;
    margin-top: -2px;
    border-radius: 3px 3px 6px 6px;
    background: linear-gradient(180deg, #f0f0f4 0%, #b4b4bb 40%, #6c6c73 58%, #c4c4ca 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.55);
}

.id-badge__clip::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 40% 35%, #8c8c93, #2c2c31 70%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* jaw that reaches down into the card's slot */
.id-badge__clip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 9px;
    height: calc(var(--bw) * 0.035 + 9px);
    transform: translateX(-50%);
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, #77777e 0%, #e6e6ea 45%, #9a9aa1 100%);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.6);
}

/* 3D stack */
.id-badge__stage {
    position: relative;
    z-index: 1;
    width: 100%;
    perspective: 1000px;
    transition: transform 0.18s ease;
}

.id-badge__stage.is-pressed {
    transform: scale(0.97);
}

.id-badge__tilt {
    position: relative;
    display: block;
    border-radius: var(--badge-r);
    transform-origin: 50% 0;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.id-badge__tilt:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 6px;
}

.id-badge__flip {
    display: grid;
    aspect-ratio: 5 / 7;
    border-radius: inherit;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.25, 1.12);
}

.id-badge.is-flipped .id-badge__flip {
    transform: rotateY(180deg);
}

/* Faces */
.id-face {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--pad) var(--pad) calc(var(--pad) + 12px);
    border-radius: var(--badge-r);
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, 0.075), transparent 55%),
        linear-gradient(160deg, #1b1b20 0%, #0f0f13 55%, #131317 100%);
    box-shadow:
        0 18px 38px -14px rgba(0, 0, 0, 0.75),
        0 3px 8px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: left;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0.1px);
}

.id-face--back {
    transform: rotateY(180deg) translateZ(0.1px);
}

.id-face[aria-hidden="true"] {
    pointer-events: none;
}

/* deeper shadow while lifted (opacity only, driven by --lift) */
.id-face::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 42px 70px -20px rgba(0, 0, 0, 0.9), 0 14px 28px -8px rgba(0, 0, 0, 0.55);
    opacity: var(--lift, 0);
    pointer-events: none;
}

.id-face__texture,
.id-face__glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.id-face__texture {
    z-index: -1;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

.id-face__glare {
    --glare-x: calc(var(--gx, 50) * 1%);
    --glare-y: calc(var(--gy, 30) * 1%);
    z-index: 3;
    opacity: var(--lift, 0);
    background:
        radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 22%, transparent 55%),
        linear-gradient(105deg, transparent calc(var(--glare-x) - 28%), rgba(255, 255, 255, 0.06) var(--glare-x), transparent calc(var(--glare-x) + 28%));
}

/* the back face is mirrored, so the light has to be too */
.id-face--back .id-face__glare {
    --glare-x: calc((100 - var(--gx, 50)) * 1%);
}

.id-face__slot {
    position: absolute;
    top: calc(var(--bw) * 0.035);
    left: 50%;
    width: calc(var(--bw) * 0.17);
    height: 7px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #050507;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Front */
.id-face__header {
    margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0;
    padding: calc(var(--bw) * 0.035 + 7px + var(--pad) * 0.65) var(--pad) calc(var(--pad) * 0.75);
    border-radius: var(--badge-r) var(--badge-r) 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    text-align: center;
}

.id-face__title {
    font-family: var(--font-mono);
    font-size: var(--badge-label);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.id-face__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--pad) * 0.95);
}

.id-name,
.id-role {
    text-align: center;
}

.id-name {
    font-family: var(--font-display);
    font-size: calc(var(--bw) * 0.074);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
}

.id-role {
    margin-top: 3px;
    font-size: clamp(12px, calc(var(--bw) * 0.048), 14px);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.55);
}

.id-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--pad) * 0.75) calc(var(--pad) * 0.6);
    /* sit centred in whatever space the 5:7 card leaves */
    margin: auto 0;
    padding-top: calc(var(--pad) * 0.9);
}

.id-field {
    min-width: 0;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.id-field dt {
    font-family: var(--font-mono);
    font-size: var(--badge-label);
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.id-field dd {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: calc(var(--bw) * 0.075);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.id-field dd small {
    display: block;
    margin-top: 2px;
    font-family: var(--font-text);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
}

.id-face__footer {
    margin-top: auto;
    padding-top: calc(var(--pad) * 0.9);
}

.id-barcode {
    height: calc(var(--bw) * 0.13);
}

.id-barcode svg {
    display: block;
    width: 100%;
    height: 100%;
}

.id-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--pad) * 0.35);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-align: center;
    color: #66666e;
}

.id-hint span {
    color: inherit;
}

.id-hint__icon {
    display: inline-block;
    transform: rotate(90deg);
}

.id-hint__pointer {
    display: none;
}

/* Back */
.id-back__stripe {
    flex-shrink: 0;
    height: calc(var(--bw) * 0.08);
    margin: calc(var(--bw) * 0.035 + 7px + var(--pad) * 0.55) calc(var(--pad) * -1) 0;
    background: linear-gradient(180deg, #08080a, #1b1b1f 45%, #0b0b0d);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.id-back__quote {
    margin: auto 0;
    padding: calc(var(--pad) * 0.8) 0;
}

/* decorative opening mark */
.id-back__quote::before {
    content: '\201C';
    display: block;
    height: calc(var(--bw) * 0.065);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: calc(var(--bw) * 0.13);
    font-style: italic;
    font-weight: 300;
    line-height: 1;
    color: #ffffff;
}

.id-back__quote p {
    white-space: pre-line;
    font-family: var(--font-display);
    font-size: calc(var(--bw) * 0.066);
    font-weight: 600;
    line-height: 1.22;
    text-wrap: balance;
    color: #ffffff;
}

.id-back__signature {
    padding-top: calc(var(--pad) * 0.9);
}

.id-back__sig {
    padding: 0 4px 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* drawn signature (outlines + ballpoint, animated by id-badge.js) */
.id-sig {
    display: block;
    width: 86%;
    height: auto;
    overflow: visible;
}

.id-sig__fill {
    fill: rgba(255, 255, 255, 0.94);
}

.id-sig__stroke {
    fill: none;
    stroke: rgba(255, 255, 255, 0.94);
    stroke-width: 2;
    stroke-linejoin: round;
}

.id-sig__flourish {
    fill: rgba(255, 255, 255, 0.85);
}

.id-sig__mask-line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 14;
}

.id-back__sig-label {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* Desktop / fine pointers: click hint. Touch: no selection, no callout. */
@media (hover: hover) and (pointer: fine) {
    .id-hint__touch {
        display: none;
    }

    .id-hint__pointer {
        display: inline;
    }
}

@media (hover: none),
(pointer: coarse) {
    .id-badge__tilt {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
}

@media (min-width: 1024px) {
    .id-badge__lanyard {
        height: 118px;
    }
}

/* No sway or tilt; the flip becomes a short crossfade */
@media (prefers-reduced-motion: reduce) {
    .id-badge {
        animation: none !important;
        transform: none;
    }

    .id-badge__stage.is-pressed {
        transform: none;
    }

    .id-badge .id-badge__flip,
    .id-badge.is-flipped .id-badge__flip {
        transform: none;
    }

    .id-badge .id-face {
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
        transform: none;
        transition: opacity 0.25s ease, visibility 0.25s !important;
    }

    .id-badge .id-face--back,
    .id-badge.is-flipped .id-face--front {
        opacity: 0;
        visibility: hidden;
    }

    .id-badge.is-flipped .id-face--back {
        opacity: 1;
        visibility: visible;
    }
}
