/* Nidal SJ portfolio. Theme tokens live on :root[data-theme]; the footer uses the inverse surface. */
:root,
:root[data-theme="dark"] {
    --bg: #0f0f10;
    --fg: #fafafa;
    --mut: #8c8c91;
    --line: #232326;
    --pill: #141415;
    --chip: #1a1a1c;
    --card: #151516;
    --fbg: #f6f6f6;
    --ffg: #111;
    --fmut: #777;
    --fline: #bdbdbd;
    --dot: rgba(0, 0, 0, .2);
    color-scheme: dark
}

:root[data-theme="light"] {
    --bg: #fafafa;
    --fg: #0f0f10;
    --mut: #6a6a70;
    --line: #e4e4e6;
    --pill: #fff;
    --chip: #f0f0f1;
    --card: #fff;
    --fbg: #0f0f10;
    --ffg: #fafafa;
    --fmut: #8c8c91;
    --fline: #3a3a3d;
    --dot: rgba(255, 255, 255, .2);
    color-scheme: light
}

:root {
    --accent: #a2004c
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    background: var(--bg);
    color: var(--fg);
    font: 400 16px/1.6 "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    animation: pagein .5s ease both
}

body.leaving {
    opacity: 0;
    transition: opacity .25s
}

@keyframes pagein {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Theme switch is instant: transitions are switched off for the frame in which the theme changes */
html.no-trans *,
html.no-trans *::before,
html.no-trans *::after {
    transition: none !important
}

::selection {
    background: var(--fg);
    color: var(--bg)
}

.foot ::selection {
    background: var(--ffg);
    color: var(--fbg)
}

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

img {
    max-width: 100%;
    display: block
}

ul {
    list-style: none
}

:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 3px;
    border-radius: 8px
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--fg);
    color: var(--bg);
    padding: 8px 14px;
    border-radius: 999px;
    z-index: 100
}

.skip:focus {
    left: 12px
}

.band {
    border-top: 1px solid var(--line)
}

.band.first {
    border-top: 0
}

.frame {
    width: min(1080px, 100%);
    margin-inline: auto;
    border-inline: 1px solid var(--line);
    padding: 56px 48px
}

.frame.tight {
    padding-block: 36px
}

main {
    padding-top: 130px
}

.ico {
    display: inline-grid;
    width: 1em;
    height: 1em
}

.ico svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

.nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: var(--pill);
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap
}

.nav a,
.nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mut);
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: color .2s, background-color .2s
}

.nav a:hover,
.nav button:hover {
    color: var(--fg);
    background: var(--chip)
}

.nav a[aria-current="page"] {
    color: var(--fg);
    background: var(--chip);
    box-shadow: inset 0 0 0 1px var(--line)
}

.nav .brand {
    padding: 0 14px 0 4px;
    color: var(--fg)
}

.nav .brand i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--chip);
    display: grid;
    place-items: center;
    font: 600 12px/1 inherit;
    font-style: normal;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line)
}

.brand i img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.nav button {
    width: 40px;
    padding: 0;
    justify-content: center;
    font-size: 18px
}

.sun {
    display: none
}

:root[data-theme="light"] .sun {
    display: inline-grid
}

:root[data-theme="light"] .moon {
    display: none
}

h1 {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 500
}

h1 .dim,
h2 .dim {
    color: var(--mut)
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -.04em;
    font-weight: 600;
    line-height: 1.1
}

h2 .dim {
    font-weight: 500
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -.02em
}

p {
    color: var(--mut)
}

p+p {
    margin-top: 16px
}

p b {
    color: var(--fg);
    font-weight: 500
}

.lead {
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 560px;
    margin-top: 28px
}

.hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 56px;
    align-items: start
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    white-space:nowrap;
    cursor: pointer;
    background: var(--pill);
    color: var(--fg);
    font-family: inherit;
    transition: transform .25s, background-color .25s, opacity .25s
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--chip)
}

.btn.accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

.btn.accent:hover {
    background: var(--accent);
    opacity: .88
}

/* tech stack: two endless rows, no interaction */
.stack {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: center
}

.stack h2 {
    font-size: 1.2rem
}

.rows {
    display: grid;
    gap: 10px;
    min-width: 0;
    -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    pointer-events: none;
    user-select: none
}

.mq {
    overflow: hidden
}

.track {
    display: flex;
    width: max-content;
    animation: mq 65s linear infinite;
    will-change: transform;
    backface-visibility: hidden
}

.mq.rev .track {
    animation-direction: reverse
}

.set {
    display: flex;
    gap: 8px;
    padding-right: 8px
}

@keyframes mq {
    to {
        transform: translate3d(-50%, 0, 0)
    }
}

.tb {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--line);
    background: var(--pill);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500
}

.tb img {
    width: 18px;
    height: 18px;
    object-fit: contain
}

.tb:not(:has(img)) {
    padding-left: 14px
}

.badge {
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid var(--line);
    background: var(--pill);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mut);
    transition: transform .25s, border-color .25s
}

.badge:hover {
    transform: translateY(-2px);
    border-color: var(--mut)
}

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

.split {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px
}

.job {
    padding: 24px 0;
    border-top: 1px solid var(--line)
}

.job:first-child {
    border-top: 0;
    padding-top: 0
}

.job .top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.job time,
.meta {
    font-size: 14px;
    color: var(--mut)
}

ul.dots {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    color: var(--mut);
    padding-left: 18px;
    list-style: disc;
    font-size: 15px
}

/* experience accordion + side card */
.xp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start
}

.xp>div>small {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px
}

.xlist {
    display: grid;
    gap: 12px
}

.xcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: border-color .25s
}

.xcard:hover {
    border-color: var(--mut)
}

.xcard>button {
    display: grid;
    gap: 4px;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 18px 20px;
    cursor: pointer;
    border-radius: 18px;
    position: relative
}

.xcard h3 {
    padding-right: 28px
}

.xcard .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--mut);
    font-weight: 500
}

.xcard>button::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 24px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid var(--mut);
    border-bottom: 1.6px solid var(--mut);
    transform: rotate(45deg);
    transition: transform .4s
}

.xcard.open>button::after {
    transform: rotate(-135deg);
    top: 28px
}

.xbody {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1)
}

.xcard.open .xbody {
    grid-template-rows: 1fr
}

.xbody>div {
    overflow: hidden;
    min-height: 0;
    padding: 0 20px
}

.xbody p {
    color: var(--fg);
    font-size: 15px;
    padding-top: 4px
}

.xbody ul {
    margin: 14px 0 20px
}

.xbody p+ul {
    margin-top: 14px
}

.side {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px;
    position: sticky;
    top: 100px;
    display: grid;
    gap: 14px
}

.av {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--chip);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-weight: 600;
    color: var(--mut)
}

.av img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.side h2 {
    font-size: 1.7rem;
    margin-top: 10px
}

.side p {
    font-size: 15px
}

.side .links {
    margin-top: 10px
}

/* experience page */
.intro {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: center
}

.portrait {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 28px;
    overflow: hidden;
    background: var(--chip);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 4rem;
    font-weight: 600;
    color: var(--mut)
}

.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(20, 20, 22, .78);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(6px)
}

.tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(162, 0, 76, .35)
}

.quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px
}

.quick span {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: var(--pill)
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 32px
}

.proj {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid var(--line)
}

.proj:first-child {
    border-top: 0;
    padding-top: 0
}

.shot {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--chip);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: .85rem;
    color: var(--mut);
    text-align: center;
    padding: 12px
}

.shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1)
}

.proj:hover .shot img {
    transform: scale(1.06)
}

.proj .pills {
    margin-top: 16px
}

.proj .pills .badge {
    font-size: 12px;
    padding: 4px 12px
}

.proj h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem
}

.proj h3 a {
    color: var(--mut);
    transition: transform .3s, color .3s
}

.proj h3 a:hover {
    color: var(--fg);
    transform: translate(2px, -2px)
}

/* skills bento */
.bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.sk {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: border-color .25s, transform .35s cubic-bezier(.2, .7, .2, 1)
}

.sk:hover {
    border-color: var(--mut);
    transform: translateY(-3px)
}

.sk.wide {
    grid-column: 1/-1
}

.sk.full {
    grid-column: 1/-1
}

.sk>* {
    position: relative
}

.sk-top {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.sk-top i {
    font: normal 500 11px ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .14em;
    color: var(--mut)
}

.sk-top::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    transition: background-color .25s, box-shadow .25s
}

.sk:hover .sk-top::after {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(162, 0, 76, .25)
}

.sk h3 {
    font-size: 1.3rem;
    letter-spacing: -.04em
}

.sk .badge {
    background: var(--chip);
    color: var(--fg)
}

.sk.wide::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .45;
    background-image: radial-gradient(circle, var(--mut) 1.3px, transparent 1.5px);
    background-size: 12px 12px;
    -webkit-mask: linear-gradient(250deg, #000, transparent 55%);
    mask: linear-gradient(250deg, #000, transparent 55%)
}

@media (max-width:720px) {
    .bento {
        grid-template-columns: 1fr
    }

    .sk {
        padding: 20px
    }
}

/* contact */
.chead {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start
}

.status {
    display: grid;
    gap: 14px
}

.status .live {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--fg)
}

.status .live::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(162, 0, 76, .3)
}

.status dl {
    display: grid;
    gap: 12px;
    font-size: 14px;
    margin-top: 6px
}

.status dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line)
}

.status dt {
    color: var(--mut)
}

.clink {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--line)
}

.clink:first-child {
    border-top: 0
}

.clink small {
    display: block;
    font-size: 14px;
    color: var(--mut)
}

.clink strong {
    font-size: clamp(1.4rem, 4.2vw, 2.6rem);
    letter-spacing: -.05em;
    font-weight: 600;
    line-height: 1.15;
    word-break: break-word
}

.clink .arr {
    flex: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    transition: transform .35s, background-color .25s, color .25s
}

.clink:hover .arr {
    transform: rotate(45deg);
    background: var(--fg);
    color: var(--bg)
}

.reveal {
    opacity: 0;
    transform: translateY(22px)
}

.reveal.in {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards
}

.rise {
    opacity: 0;
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: calc(var(--i, 0)*90ms + 120ms)
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* footer */
.foot {
    position: relative;
    overflow: hidden;
    background: var(--fbg);
    color: var(--ffg);
    isolation: isolate
}

.foot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--dot) 1.3px, transparent 1.5px);
    background-size: 12px 12px;
    -webkit-mask: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent);
    mask: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent)
}

.foot .in {
    width: min(1000px, 100% - 48px);
    margin-inline: auto;
    padding-top: 96px
}

.foot h2 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.06em
}

.foot h2 .dim {
    color: var(--fmut)
}

.fcols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px
}

.fcols small {
    display: block;
    font-size: 14px;
    color: var(--fmut);
    margin-bottom: 6px
}

.fcols a.l {
    font-size: 1.1rem;
    letter-spacing: -.02em
}

.fsoc {
    display: flex;
    gap: 8px
}

.fsoc a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ffg);
    color: var(--fbg);
    display: grid;
    place-items: center;
    transition: transform .25s
}

.fsoc a:hover {
    transform: translateY(-3px) rotate(-8deg)
}

.foot hr {
    border: 0;
    border-top: 1px solid var(--fline);
    margin: 36px 0
}

.fbot {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px
}

.idx {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 36px
}

.idx small {
    grid-column: 1/-1;
    color: var(--fmut);
    font-size: 13px
}

.idx a {
    position: relative;
    width: max-content
}

.idx a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s
}

.idx a:hover::after {
    transform: scaleX(1)
}

.copy {
    color: var(--fmut);
    align-self: end
}

.bigwrap {
    position: relative;
    height: clamp(90px, 17.5vw, 250px);
    margin-top: 36px;
    overflow: hidden
}

.big {
    font-size: clamp(5rem, 24vw, 22rem);
    line-height: .8;
    letter-spacing: -.07em;
    font-weight: 700;
    text-align: center;
    white-space: nowrap
}

.big span {
    display: inline-block
}

.big .swap {
    animation: swap .8s cubic-bezier(.2, .7, .2, 1)
}

@keyframes swap {
    from {
        transform: translateY(40%);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

.blur {
    position: absolute;
    inset: auto 0 0 0;
    height: 75%;
    pointer-events: none;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    -webkit-mask: linear-gradient(transparent, #000 85%);
    mask: linear-gradient(transparent, #000 85%)
}

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

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

    .reveal,
    .rise {
        opacity: 1;
        transform: none
    }

    .track {
        animation: none
    }

    .mq {
        overflow-x: auto
    }
}

/* lanyard / access pass */
.lanyard {
    position: relative;
    margin-top: -110px;
    display: grid;
    justify-items: center
}

.lw {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 590px;
    touch-action: pan-y
}

.lcard {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: 250px;
    margin-left: -125px;
    transform-origin: 50% 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden
}

.grabbing .lcard {
    cursor: grabbing
}

.clip {
    position: absolute;
    left: 50%;
    top: -16px;
    width: 26px;
    height: 34px;
    margin-left: -13px;
    border-radius: 5px 5px 3px 3px;
    background: linear-gradient(90deg, #8a8a8f, #ececef 45%, #8a8a8f);
    z-index: 2
}

.face {
    position: relative;
    height: 396px;
    background: var(--fbg);
    color: var(--ffg);
    border: 1px solid var(--fline);
    border-radius: 22px;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45)
}

.mono {
    font: 500 10.5px ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .14em;
    text-transform: uppercase
}

.slot {
    display: block;
    width: 54px;
    height: 8px;
    border-radius: 99px;
    background: var(--fline);
    opacity: .55;
    margin: 0 auto 14px
}

.lrow {
    display: flex;
    justify-content: space-between;
    color: var(--fmut);
    margin-bottom: 10px
}

.tiles {
    position: relative;
    display: grid;
    grid-template: 1fr 1fr/1fr 1fr;
    height: 116px;
    border-radius: 14px;
    overflow: hidden
}

.tiles i {
    display: flex;
    padding: 7px 9px;
    font: normal 500 9.5px ui-monospace, SFMono-Regular, Menlo, monospace
}

.tiles i:nth-child(1) {
    background: var(--accent);
    color: #fff
}

.tiles i:nth-child(2) {
    background: var(--ffg);
    color: var(--fbg);
    justify-content: flex-end
}

.tiles i:nth-child(3) {
    background: #777;
    background: color-mix(in srgb, var(--ffg) 70%, var(--fbg));
    color: var(--fbg);
    align-items: flex-end
}

.tiles i:nth-child(4) {
    background: #ddd;
    background: color-mix(in srgb, var(--ffg) 18%, var(--fbg));
    color: var(--ffg);
    justify-content: flex-end;
    align-items: flex-end
}

.seal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 50%;
    background: var(--fbg);
    color: var(--ffg);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.03em;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .35)
}

.seal img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none
}

.face h3 {
    font-size: 1.4rem;
    letter-spacing: -.045em;
    line-height: 1.1;
    margin-top: 16px
}

.role {
    display: block;
    color: var(--fmut);
    font-size: .9rem;
    margin-top: 2px
}

.face dl {
    margin-top: auto;
    display: grid;
    gap: 7px
}

.face dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.face dt {
    color: var(--fmut)
}

.face dd {
    font-weight: 600
}

.face dd.open::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 7px;
    vertical-align: 1px
}

.bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px
}

.code {
    flex: 1;
    height: 34px;
    background: repeating-linear-gradient(90deg, var(--ffg) 0 2px, transparent 2px 4px, var(--ffg) 4px 5px, transparent 5px 8px, var(--ffg) 8px 11px, transparent 11px 13px, var(--ffg) 13px 14px, transparent 14px 17px)
}

.bar small {
    color: var(--fmut);
    font-size: 9.5px
}

.hint {
    position: absolute;
    left: -6px;
    top: 64px;
    z-index: 4;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font: 600 1.45rem/1 "Caveat", cursive;
    color: var(--accent);
    transform: rotate(-6deg);
    pointer-events: none;
    transition: opacity .5s
}

.touched .hint {
    opacity: 0
}

.lcl {
    display: flex;
    gap: 10px;
    margin-top: 6px
}

.lcl a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    border: 1px solid var(--line);
    background: var(--pill);
    transition: transform .25s, background-color .25s
}

.lcl a:hover {
    transform: translateY(-3px);
    background: var(--chip)
}

/* no-JS / before-JS fallback: card simply hangs straight down */
.lw:not(.live) .lcard {
    left: 50%;
    top: 166px
}

.lw::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 19px;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border: 3px solid var(--mut);
    border-radius: 50%;
    background: var(--bg);
    z-index: 2;
    box-sizing: border-box
}

.strap {
    position: absolute;
    left: 50%;
    top: 33px;
    z-index: 1;
    width: calc(22px*var(--s, 1));
    height: calc(133px*var(--s, 1));
    margin-left: calc(-11px*var(--s, 1));
    transform-origin: 50% 0;
    background: var(--accent);
    overflow: hidden;
    display: flex;
    justify-content: center;
    pointer-events: none;
    will-change: transform
}

.strap span {
    writing-mode: vertical-rl;
    padding-top: calc(8px*var(--s, 1));
    font: 600 calc(9px*var(--s, 1))/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap
}

/* the swinging card must never widen the page (that shifts the fixed nav on phones) */
.band {
    overflow-x: clip
}

@supports not (overflow:clip) {
    .band {
        overflow-x: hidden
    }
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none
}

/* work in numbers */
.nums {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 12px
}

.num {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-height: 150px;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: border-color .25s, transform .35s cubic-bezier(.2, .7, .2, 1)
}

.num:hover {
    border-color: var(--mut);
    transform: translateY(-3px)
}

.num i {
    font: normal 500 11px ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .14em;
    color: var(--mut)
}

.num b {
    display: block;
    font-size: clamp(2.3rem, 5vw, 3.3rem);
    font-weight: 600;
    letter-spacing: -.06em;
    line-height: 1;
    font-variant-numeric: tabular-nums
}

.num span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--mut)
}

.num.feat {
    grid-row: span 2
}

.num.feat::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(circle, var(--mut) 1.3px, transparent 1.5px);
    background-size: 12px 12px;
    -webkit-mask: linear-gradient(160deg, transparent 30%, #000);
    mask: linear-gradient(160deg, transparent 30%, #000)
}

.num.feat>* {
    position: relative
}

.num.feat b {
    font-size: clamp(4rem, 9vw, 6.5rem)
}

@media (max-width:720px) {
    .nums {
        grid-template-columns: 1fr 1fr
    }

    .num.feat {
        grid-column: 1/-1;
        grid-row: auto
    }

    .num {
        min-height: 130px;
        padding: 20px
    }
}