/* ── Theme Variables ─────────────────────────────────────── */
:root,
[data-theme="light"] {
    --bg:              #ffffff;
    --bg-dark:         #131313;
    --bg-card:         rgba(0,0,0,0.04);

    --text-primary:    rgba(0,0,0,0.85);
    --text-secondary:  rgba(0,0,0,0.55);
    --text-muted:      rgba(0,0,0,0.38);
    --text-faint:      rgba(0,0,0,0.30);
    --text-strong:     rgba(0,0,0,0.88);

    --accent:          #FF3D00;

    --loader-bg:       #ffffff;
    --loader-text:     #131313;
    --loader-sub:      rgba(19,19,19,0.5);
    --loader-track:    rgba(19,19,19,0.12);
    --loader-bar:      #131313;

}

[data-theme="dark"] {
    --bg:              #0f0f0f;
    --bg-dark:         #1a1a1a;
    --bg-card:         rgba(255,255,255,0.06);

    --text-primary:    rgba(255,255,255,0.85);
    --text-secondary:  rgba(255,255,255,0.55);
    --text-muted:      rgba(255,255,255,0.38);
    --text-faint:      rgba(255,255,255,0.30);
    --text-strong:     rgba(255,255,255,0.88);

    --accent:          #FF3D00;

    --loader-bg:       #0f0f0f;
    --loader-text:     rgba(255,255,255,0.85);
    --loader-sub:      rgba(255,255,255,0.4);
    --loader-track:    rgba(255,255,255,0.12);
    --loader-bar:      rgba(255,255,255,0.7);

}

/* ── Base ────────────────────────────────────────────────── */
html {
    margin: 0;
    cursor: none;
    scroll-behavior: auto;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}
body {
    background-color: var(--bg);
    margin: 0 auto;
    opacity: 1;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    transition: background-color 0.4s ease, color 0.3s ease;
    overflow-x: hidden;
}
/* Persistent Vanta background — fixed behind everything */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
#vanta-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    transition: opacity 0.4s ease;
}
#vanta-canvas.theme-fading {
    opacity: 0 !important;
}
/* ── Loader ─────────────────────────────────────────────── */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--loader-bg);
    z-index: 99999;
    pointer-events: none;
    transition: background-color 0.4s ease;
}
#loader__name {
    position: absolute;
    top: 5vh;
    left: 5vw;
    text-align: left;
}
#loader__title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--loader-sub);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 3px 0;
    opacity: 0;
    transform: translateY(10px);
}
#loader__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--loader-sub);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
}
#loader__counter-wrap {
    position: absolute;
    bottom: 10vh;
    left: 5vw;
    width: auto;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
#loader__counter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(5rem, 14vw, 14rem);
    font-weight: 200;
    color: var(--loader-text);
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
    transform: translateY(100%);
    opacity: 0;
}
#loader__bar-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--loader-track);
}
#loader__bar {
    width: 0%;
    height: 100%;
    background-color: var(--loader-bar);
    opacity: 0.5;
}
/* circle-cursor-js */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}
.cursor__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
.cursor__circle--small {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: width 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                background-color 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Arrow icon inside small cursor circle — hidden by default */
.cursor__icon {
    position: absolute;
    font-size: 56px;
    color: var(--accent);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* When hovering a work card: shrink dot bg, show icon */
.cursor.is-on-card .cursor__circle--small {
    width: 56px;
    height: 56px;
    background-color: transparent;
}
.cursor.is-on-card .cursor__icon {
    opacity: 1;
    transform: scale(1);
}
.cursor__circle--large {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
}
.cursor-hide {
    display: none;
}
/* Hide page body colour until loader exits */
.preparation body {
    background-color: var(--bg);
}
/* Fade in on scroll */
.reveal{
position: relative;
transform: translateY(60px);
opacity: 0;
transition: 1s all ease;
}
.reveal.active{
transform: translateY(0);
opacity: 1;
}
/* ── Hero ────────────────────────────────────────────────── */
#hero {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    transform-origin: center center;
    overflow: hidden;
}
#hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-dark);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
    transition: background-color 0.4s ease;
}
/* Two-col description — top of hero */
#hero__desc {
    position: absolute;
    top: 36%;
    left: 0;
    width: 100%;
    padding: 0 5vw;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2vw;
    z-index: 1;
    opacity: 0;
}
/* line-mask: each text line clips from below */
.hero__line-mask {
    overflow: hidden;
}
.hero__line-mask > * {
    display: block;
    transform: translateY(100%);
}
.hero__name-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.2rem, 5.5vw, 6rem);
    font-weight: 200;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1;
}
.hero__tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0.6rem 0 0 0;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(10px);
}
#hero__scroll-hint {
    margin: 6px 0 0 0;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateY(8px);
    display: block;
}
/* Large display name — bottom of hero */
#hero__name {
    position: absolute;
    bottom: 8%;
    left: 0;
    width: 100%;
    padding: 0 5vw;
    box-sizing: border-box;
    z-index: 1;
    opacity: 0;
}
.splash_hello {
    font-family: 'Caveat', cursive;
    font-size: clamp(8rem, 19vw, 21rem);
    font-weight: 800;
    color: var(--accent);
    margin: 0;
    line-height: 0.85;
    letter-spacing: -0.03em;
    display: block;
}
/* ── Footer ─────────────────────────────────────────────── */
footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 3vh 5vw 6vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.footer__logo {
    height: 72px;
    width: auto;
}
.footer__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.footer__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}
.footer__tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    margin: 0;
    transition: color 0.3s ease;
}
.footer__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1;
}
.footer__link:hover {
    color: var(--accent);
}
.footer__link i {
    font-size: 1.15rem;
    line-height: 1;
}

/* ── About floating icons ────────────────────────────────── */
#about__floats {
    position: absolute;
    top: -20%;
    left: -5%;
    right: -5%;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}
/* Outer: positioned + parallax + horizontal drift target */
.about__float-outer {
    will-change: transform, filter;
}
/* Inner: float + rotation target */
.about__float {
    color: var(--text-primary);
    opacity: 0;
    will-change: transform;
    transition: color 0.3s ease;
}
.about__float svg {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.22;
}

/* ── About section ───────────────────────────────────────── */
#about {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8vh 5vw 10vh;
    box-sizing: border-box;
    background: transparent;
    overflow: visible;
}

#about__text {
    max-width: 820px;
    padding-bottom: 8vh;
    position: relative;
    z-index: 1;
}
.about__line-mask {
    overflow: hidden;
    margin-bottom: 0.15em;
}
.about__line {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-strong);
    margin: 0;
    display: block;
    opacity: 0;
    transition: color 0.3s ease;
}
.about__line--muted {
    color: var(--text-muted);
}
.about__line-mask:has(.about__line--pitch) {
    margin-top: 2.5rem;
}
.about__line--pitch {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ── Process section ─────────────────────────────────────── */
#process {
    position: relative;
    z-index: 1;
    padding: 14vh 0 24vh;
    background: transparent;
}
#process__inner {
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

/* Header block — indented to match site padding */
#process__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 5vw;
}
#process__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
    opacity: 0;
    transition: color 0.3s ease;
}
#process__label-aside {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-muted);
    margin-left: 0.4em;
    opacity: 0.6;
    vertical-align: baseline;
    transition: color 0.3s ease;
}
#process__tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0;
    transition: color 0.3s ease;
}

/* Steps grid — full width, edge to edge */
#process__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}
.process__step {
    position: relative;
    padding: 2.4rem 5vw 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0;
}
.process__step:first-child {
    padding-left: 5vw;
}
.process__step:last-child {
    padding-right: 5vw;
}
/* 3D icon canvas wrapper */
.process__step-icon {
    display: block;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    line-height: 0;
    margin-bottom: 0.4rem;
}
.process__step-icon canvas {
    display: block;
    width: 220px !important;
    height: 220px !important;
}

/* Horizontal rule above each step */
.process__step-rule {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    opacity: 0.15;
    margin-bottom: 0.4rem;
    transform-origin: left center;
    transform: scaleX(0);
    transition: background 0.3s ease;
}

/* Step number */
.process__step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* Step title */
.process__step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 300;
    color: var(--text-strong);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: color 0.3s ease;
}

/* Step description */
.process__step-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 280px;
    transition: color 0.3s ease;
}

/* ── Work section ────────────────────────────────────────── */
#work {
    position: relative;
    z-index: 1;
    padding: 4vh 5vw 18vh;
    background: transparent;
}

/* Section title */
#work__header {
    margin-bottom: 6vw;
    overflow: hidden;
}
.work__line-mask {
    overflow: hidden;
    padding-bottom: 0.2em;
}
#work__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    transform: translateY(110%);
    opacity: 0;
    transition: color 0.3s ease;
}

/* ── List: stacked rows ─────────────────────────────────── */
#work__list {
    display: flex;
    flex-direction: column;
}

/* ── Hairline rule ─────────────────────────────────────── */
.work__rule {
    width: 100%;
    height: 1px;
    overflow: visible;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.work__rule-svg {
    display: block;
    width: 100%;
    height: 1px;
    overflow: visible;
}
/* The <line> starts invisible; JS scales it in from left */
.work__rule-line {
    stroke: currentColor;
    stroke-width: 1px;
    transform-origin: left center;
    transform: scaleX(0);
    transition: stroke 0.3s ease;
    opacity: 0.18;
}

.work__row {
    cursor: none;
}

/* ── Row body: two-column (text left, illus right) ─────── */
.work__row-body {
    display: grid;
    grid-template-columns: 1fr 200px;
    align-items: center;
    gap: 0 4vw;
    padding: 3.5vw 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    text-decoration: none;
    color: inherit;
    cursor: none;
    transition: background 0.45s ease, box-shadow 0.45s ease;
    border-radius: 6px;
}
.work__row:hover .work__row-body {
    background: rgba(255, 255, 255, 0.01);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
[data-theme="light"] .work__row:hover .work__row-body {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* ── SVG illustration (right side) ─────────────────────── */
.work__illus {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.work__illus svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
/* Base paths start invisible — DrawSVGPlugin draws them in */
.work__illus svg path {
    opacity: 0;
    transition: opacity 0.45s ease,
                stroke 0.45s ease;
}
/* Resting state after draw-in: dim base strokes to 0.2 */
.work__illus.is-drawn svg > path {
    opacity: 0.2;
}
/* Hover: brighten base strokes to 0.5 */
.work__row:hover .work__illus.is-drawn svg > path {
    opacity: 0.5;
}
/* Energy overlay: hidden by default, full opacity on card hover */
.work__energy-overlay {
    opacity: 0;
    transition: opacity 0.45s ease;
}
.work__row:hover .work__energy-overlay {
    opacity: 1;
}

/* ── Meta panel ─────────────────────────────────────────── */
.work__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* starts offset; GSAP slides up */
    transform: translateY(18px);
    opacity: 0;
    will-change: transform, opacity;
}
/* "Read more" link — hidden by default (shown on mobile via mobile.css) */
.work__read-more {
    display: none;
}

.work__meta-index {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.70rem;
    font-weight: 400;
    letter-spacing: 0.20em;
    color: var(--text-faint);
    margin: 0;
    transition: color 0.3s ease;
}
.work__meta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-strong);
    margin: 0;
    transition: color 0.3s ease;
}
.work__meta-tags {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    transition: color 0.3s ease;
}
.work__meta-services {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-faint);
    margin: 0;
    transition: color 0.3s ease;
}

/* ── CTA section ─────────────────────────────────────────── */
#cta {
    position: relative;
    z-index: 1;
    padding: 0 3.5vw 6vh;
    /* Perspective on the parent so the card tilts in true 3D */
    perspective: 900px;
}

#cta__card {
    position: relative;
    border-radius: 20px;
    padding: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 6vw, 6rem);

    /* Dark mode: near-invisible white base */
    background: rgba(255, 255, 255, 0.01);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);

    /* Tilt is applied via JS — smooth spring-back on leave */
    will-change: transform;
    transform-style: preserve-3d;
    transition: box-shadow 0.7s ease;
}

/* Light mode */
[data-theme="light"] #cta__card {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* Elevated shadow — JS adds .is-tilting when cursor is inside the card.
   Three layers: a large distant ambient, a mid-range body, and a tight contact. */
#cta__card.is-tilting {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.10),
        0 80px 120px rgba(0,0,0,0.36),
        0 32px 48px  rgba(0,0,0,0.22),
        0  6px 14px  rgba(0,0,0,0.16);
}
[data-theme="light"] #cta__card.is-tilting {
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.10),
        0 80px 120px rgba(0,0,0,0.10),
        0 32px 48px  rgba(0,0,0,0.07),
        0  6px 14px  rgba(0,0,0,0.05);
}

#cta__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 3.5vw, 3rem);
    max-width: 680px;
}

#cta__text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.8rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.88);
    margin: 0;
    opacity: 0;
    transition: color 0.3s ease;
}

[data-theme="light"] #cta__text {
    color: rgba(0,0,0,0.82);
}

#cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    text-decoration: none;

    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: rgba(255,255,255,0.5);

    padding: 0.7em 1.4em;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;

    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);

    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;

    width: fit-content;
    opacity: 0;
}

[data-theme="light"] #cta__btn {
    color: rgba(0,0,0,0.5);
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.03);
}

#cta__btn:hover {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
}

[data-theme="light"] #cta__btn:hover {
    color: rgba(0,0,0,0.85);
    border-color: rgba(0,0,0,0.28);
    background: rgba(0,0,0,0.06);
}

#cta__btn-arrow {
    display: inline-block;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

#cta__btn:hover #cta__btn-arrow {
    transform: translate(2px, -2px);
}

/* ── Theme Toggle Switch ─────────────────────────────────── */
/*
   Layout maths:
   knob = 28px, padding = 4px each side, 2 icon slots = 28px each
   total width = 4 + 28 + 28 + 4 = 64px
   knob travel = 64 - 4 - 4 - 28 = 28px  → translateX(28px) for dark
*/
#theme-toggle {
    position: fixed;
    top: 5vh;
    right: 5vw;
    z-index: 100000;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: 999px;
    padding: 4px;
    cursor: pointer;
    width: 64px;
    height: 36px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, opacity 0.4s ease, filter 0.4s ease;
    user-select: none;
}
#theme-toggle.is-dimmed {
    opacity: 0.5;
    filter: grayscale(1);
}
#theme-toggle.is-dimmed:hover {
    opacity: 1;
    filter: grayscale(0);
}
[data-theme="dark"] #theme-toggle {
    border-color: rgba(255,255,255,0.45);
}
.theme-toggle__knob {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    left: 4px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
[data-theme="dark"] .theme-toggle__knob {
    transform: translateX(28px);
}
.theme-toggle__icon {
    /* Each icon slot is exactly knob-width so they sit centred in their half */
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
    pointer-events: none;
    font-size: 22px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    /* inactive: match border tone */
    color: rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}
[data-theme="dark"] .theme-toggle__icon {
    color: rgba(255,255,255,0.35);
}
/* Active icon (under the knob) is white */
[data-theme="light"] .theme-toggle__icon[data-mode="light"],
[data-theme="dark"]  .theme-toggle__icon[data-mode="dark"] {
    color: #ffffff;
}
/* dark_mode glyph optical correction */
.theme-toggle__icon[data-mode="dark"] {
    padding-top: 2px;
}
