/* ============================================================
   ETHAN WILSON — PORTFOLIO
   Comic-ink robotics: white paper, black ink, halftone shading,
   cobalt + signal-orange accents.
   ============================================================ */

:root{
    --ink:      #141414;
    --paper:    #ffffff;
    --paper-2:  #f5f4ef;
    --blue:     #3A56F0;
    --orange:   #FF6A2B;
    --yellow:   #FFC531;
    --shadow:   8px 8px 0 rgba(20,20,20,.9);

    --font-display: 'Archivo Black', sans-serif;
    --font-body:    'Space Grotesk', sans-serif;
    --font-mono:    'Space Mono', monospace;

    --dots: radial-gradient(circle, rgba(20,20,20,.16) 1.3px, transparent 1.5px);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a{ color: inherit; }
a:focus-visible,
button:focus-visible{
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

::selection{ background: var(--blue); color: #fff; }

/* ---------- header ---------- */
.site-header{
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px clamp(20px, 4vw, 56px);
    font-family: var(--font-mono);
}

.brand{
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .06em;
    font-size: 15px;
}
.brand-dot{ color: var(--blue); margin-left: 6px; }

.site-nav{ display: flex; gap: clamp(14px, 2.5vw, 34px); }
.site-nav a{
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: .04em;
    position: relative;
}
.site-nav a::after{
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -4px;
    height: 3px;
    background: var(--orange);
    transition: right .25s ease;
}
.site-nav a:hover::after{ right: 0; }

/* ---------- hero ---------- */
.hero{
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 90px;
    background:
        var(--dots),
        var(--paper);
    background-size: 26px 26px, auto;
    overflow: hidden;
}

.blob{ position: absolute; pointer-events: none; }
.blob-tr{ top: -2px; right: -2px; width: clamp(220px, 34vw, 520px); }
.blob-bl{ bottom: -2px; left: -2px; width: clamp(180px, 28vw, 420px); }

.doodle{ position: absolute; pointer-events: none; animation: bob 5.5s ease-in-out infinite; }
.doodle-planet{ width: clamp(70px, 9vw, 130px); left: 8%; top: 20%; animation-delay: -1s; }
.doodle-star{ width: clamp(30px, 4vw, 56px); right: 16%; bottom: 24%; animation-delay: -2.6s; }
.doodle-claw{ width: clamp(60px, 7vw, 105px); right: 7%; top: 42%; animation-duration: 7s; }

@keyframes bob{
    0%, 100%{ transform: translateY(0) rotate(-2deg); }
    50%     { transform: translateY(-16px) rotate(3deg); }
}

.hero-inner{
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
}

.eyebrow{
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .12em;
    margin: 0 0 18px;
}

.hero-name{
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 13.5vw, 10.5rem);
    line-height: .92;
    margin: 0 0 30px;
    letter-spacing: .01em;
}
.hero-name .line{
    display: block;
    overflow: hidden;
    padding: .04em .1em; /* room for shadows */
}
.hero-name .line-2{ color: var(--blue); }

.ltr{
    display: inline-block;
    text-shadow: 6px 6px 0 var(--blue);
    animation: ltr-drop .72s cubic-bezier(.2, .9, .3, 1.15) both;
    animation-delay: calc(var(--i) * 60ms + 150ms);
}
.ltr.alt{
    color: var(--blue);
    text-shadow: 6px 6px 0 var(--ink);
}
@keyframes ltr-drop{
    from{ transform: translateY(-120%) rotate(-8deg); }
    to  { transform: translateY(0) rotate(0deg); }
}

.hero-sub{
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    max-width: 640px;
    margin: 0 auto 34px;
}
.hero-sub strong{ box-shadow: inset 0 -0.45em 0 rgba(58,86,240,.25); font-weight: 700; }

.hero-cta{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn{
    font-family: var(--font-mono);
    font-size: 15px;
    text-decoration: none;
    padding: 14px 24px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease;
    background: var(--paper);
    box-shadow: 5px 5px 0 var(--ink);
}
.btn:hover{ transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active{ transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-solid{ background: var(--ink); color: var(--paper); }
.btn-solid:hover{ box-shadow: 8px 8px 0 var(--blue); }

.scroll-cue{
    position: relative;
    z-index: 2;
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .18em;
}
.cue-bar{
    width: 54px; height: 3px;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}
.cue-bar::after{
    content: "";
    position: absolute; inset: 0;
    background: var(--blue);
    transform: translateX(-100%);
    animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{ to{ transform: translateX(100%); } }

/* generic load-reveal */
.reveal-up{ animation: rise .8s cubic-bezier(.2,.8,.3,1) both; animation-delay: .25s; }
.reveal-up.d2{ animation-delay: .8s; }
.reveal-up.d3{ animation-delay: 1.05s; }
.reveal-up.d4{ animation-delay: 1.3s; }
@keyframes rise{
    from{ opacity: 0; transform: translateY(24px); }
    to  { opacity: 1; transform: translateY(0); }
}

/* ---------- marquee ---------- */
.marquee{
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    padding: 14px 0;
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
}
.marquee-track{
    display: flex;
    width: max-content;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: .1em;
    animation: marquee 22s linear infinite;
}
@keyframes marquee{ to{ transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section{ padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 70px); }

.section-head{ max-width: 1200px; margin: 0 auto 48px; }

.sec-tag{
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .16em;
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    padding: 6px 14px;
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--blue);
    margin-bottom: 18px;
}

.section-head h2{
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin: 0;
    line-height: 1.05;
}
.sec-sub{
    font-family: var(--font-mono);
    font-size: 14px;
    margin: 14px 0 0;
    opacity: .75;
}

/* ---------- about ---------- */
.about{ background: var(--paper-2); }

.about-grid{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    grid-template-areas: "photo copy" "photo facts";
    gap: 40px 60px;
    align-items: start;
}

.about-photo{ grid-area: photo; margin: 0; position: relative; }
.about-photo img{
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow);
    background: var(--dots), var(--paper);
    background-size: 14px 14px, auto;
}
.about-photo::before{
    content: "";
    position: absolute;
    inset: 18px -14px -14px 18px;
    background: var(--dots);
    background-size: 10px 10px;
    border-radius: 14px;
    z-index: -1;
}
.about-photo figcaption{
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    margin-top: 26px;
    text-align: center;
}

.about-copy{ grid-area: copy; max-width: 640px; }
.about-lede{
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
}
.about-copy strong{ box-shadow: inset 0 -0.45em 0 rgba(255,106,43,.35); }

.about-quote{
    margin: 26px 0 0;
    padding: 14px 22px;
    border-left: 6px solid var(--blue);
    font-family: var(--font-mono);
    font-style: italic;
    background: var(--paper);
    border-radius: 0 12px 12px 0;
}

.about-facts{
    grid-area: facts;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.about-facts li{
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--paper);
    padding: 14px 16px;
    box-shadow: 5px 5px 0 rgba(20,20,20,.85);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform .18s ease;
}
.about-facts li:hover{ transform: translate(-2px,-2px); }
.fact-k{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--blue); font-weight: 700; }
.fact-v{ font-size: 15px; line-height: 1.45; }

/* ---------- skills ---------- */
.skills{
    background:
        var(--dots),
        var(--paper);
    background-size: 26px 26px, auto;
    text-align: center;
}
.skills .section-head{ text-align: center; }

.tv-wall{
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.tv-wall img{ width: 100%; height: auto; }
.tv-on{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .12s ease;
}
.tv-on.lit{ opacity: 1; }

.skill-cols{
    max-width: 1100px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    text-align: left;
}
.skill-col{
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--paper);
    padding: 18px 20px;
    box-shadow: 5px 5px 0 rgba(20,20,20,.85);
}
.skill-col h3{
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
}
.skill-col p{ margin: 0; font-size: 15px; }

/* ============================================================
   PROJECTS — the robotic arm stage
   Design space: 1100 × 640, scaled to fit by JS.
   ============================================================ */
.projects{ background: var(--paper-2); overflow: hidden; }
.projects .section-head{ text-align: center; }

.stage-viewport{
    position: relative;
    cursor: crosshair; /* the glass is, in fact, tappable */
    max-width: 1180px;
    margin: 0 auto;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background:
        var(--dots),
        var(--paper);
    background-size: 24px 24px, auto;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.stage-viewport.shaken{ animation: stage-shake .45s cubic-bezier(.3,.1,.3,1); }
.stage-viewport.tapped{ animation: stage-tap .3s cubic-bezier(.3,.1,.3,1); }
@keyframes stage-shake{
    0%  { transform: translate(0,0) rotate(0); }
    15% { transform: translate(-7px, 5px) rotate(-.4deg); }
    30% { transform: translate(6px, -4px) rotate(.35deg); }
    45% { transform: translate(-4px, 3px) rotate(-.25deg); }
    60% { transform: translate(3px, -2px) rotate(.15deg); }
    80% { transform: translate(-2px, 1px) rotate(0); }
    100%{ transform: translate(0,0); }
}
@keyframes stage-tap{
    0%  { transform: translate(0,0); }
    25% { transform: translate(-4px, 3px); }
    55% { transform: translate(3px, -2px); }
    100%{ transform: translate(0,0); }
}

/* ----- glass cracks (from tapping the stage) ----- */
.crack{
    position: absolute;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px; /* centre on the tap point */
    z-index: 15;
    pointer-events: none;
    animation: crack-pop .22s cubic-bezier(.3,1.5,.5,1) both;
}
.crack svg{ width: 100%; height: 100%; overflow: visible; }
@keyframes crack-pop{
    from{ transform: scale(0) rotate(-25deg); }
    to  { transform: scale(1) rotate(0deg); }
}
.crack.fixed{ animation: crack-fix .55s ease forwards; }
@keyframes crack-fix{
    0%  { opacity: 1; filter: none; }
    30% { filter: drop-shadow(0 0 7px var(--orange)) drop-shadow(0 0 3px var(--yellow)); }
    100%{ opacity: 0; transform: scale(.5); filter: none; }
}

.arm-stage{
    position: absolute;
    top: 0; left: 0;
    width: 1100px;
    height: 640px;
    transform-origin: top left;
}

.stage-floor{
    position: absolute;
    left: 0; right: 0;
    top: 560px;
    bottom: 0;
    border-top: 3px solid var(--ink);
    background: repeating-linear-gradient(45deg, transparent 0 7px, rgba(20,20,20,.12) 7px 10px);
}

.drop-zone{
    position: absolute;
    left: 396px;
    top: 336px;
    width: 348px;
    height: 224px;
    border: 3px dashed rgba(20,20,20,.45);
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.drop-zone span{
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .2em;
    color: rgba(20,20,20,.5);
    transform: translateY(24px);
}

.stage-star{ position: absolute; width: 34px; opacity: .9; }
.stage-star.s1{ right: 90px; top: 70px; }
.stage-star.s2{ right: 190px; top: 150px; width: 22px; }

/* ----- crate (project card) ----- */
.crate{
    position: absolute;
    left: -999px; /* parked off-stage until the arm collects it */
    top: 300px;
    width: 320px;
    height: 210px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 10px;
    box-shadow: 6px 6px 0 rgba(20,20,20,.85);
    padding: 34px 18px 14px;
    overflow: hidden;
    z-index: 5;
}
.crate::after{ /* halftone shading along the bottom, like the reference art */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 26px;
    background: var(--dots);
    background-size: 8px 8px;
    opacity: .5;
    pointer-events: none;
}
.crate-tape{
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 22px;
    background: repeating-linear-gradient(45deg, var(--yellow) 0 12px, var(--ink) 12px 24px);
    border-bottom: 3px solid var(--ink);
    opacity: .92;
}
.crate-head{
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .2em;
    margin-bottom: 4px;
}
.crate-cargo{ color: var(--blue); font-weight: 700; }
.crate-title{
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.12;
    margin: 0 0 6px;
}
.crate-desc{
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0 0 6px;
    opacity: .85;
}
.crate-tags{
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .05em;
    color: var(--blue);
    margin: 0 0 4px;
}
.crate{ pointer-events: auto; } /* stays clickable even while the arm (pointer-events: none) holds it */

.crate-link{
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 var(--orange);
}
.crate-link::after{ /* stretched link: the whole crate is the click target */
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.crate-link:hover{ color: var(--orange); }
.crate:hover{ box-shadow: 6px 6px 0 var(--blue); }

.crate-weld-overlay{
    position: absolute;
    inset: 0;
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
}
.crate.welding .crate-weld-overlay{ animation: weld-flicker 1.3s steps(1, end); }
@keyframes weld-flicker{
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    16%  { opacity: 0; }
    28%  { opacity: 1; }
    40%  { opacity: .15; }
    52%  { opacity: 1; }
    66%  { opacity: 0; }
    78%  { opacity: .9; }
    88%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ----- the arm ----- */
.arm-root{ position: absolute; inset: 0; z-index: 10; pointer-events: none; }

.seg{
    position: absolute;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 16px;
    transition: transform 1s cubic-bezier(.5,.05,.2,1);
    will-change: transform;
}
.seg-hatch{
    position: absolute;
    top: 12%;
    bottom: 12%;
    right: 6px;
    width: 34%;
    border-radius: 8px;
    background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(20,20,20,.22) 5px 7.5px);
    pointer-events: none;
}

.seg1{
    left: 147px;
    top: 250px;
    width: 46px;
    height: 280px;
    transform-origin: 23px 280px;
}
.seg2{
    left: 4px;
    top: -238px;
    width: 38px;
    height: 250px;
    transform-origin: 19px 250px;
}

.claw{
    position: absolute;
    left: -41px;
    top: -86px;
    width: 120px;
    height: 96px;
    transform-origin: 60px 96px;
    transition: transform 1s cubic-bezier(.5,.05,.2,1);
    will-change: transform;
}
.claw-plate{
    position: absolute;
    left: 14px;
    top: 52px;
    width: 92px;
    height: 40px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 10px;
    background-image: repeating-linear-gradient(45deg, transparent 0 5px, rgba(20,20,20,.14) 5px 7.5px);
}
.jaw{
    position: absolute;
    top: -20px;
    width: 20px;
    height: 78px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 8px 8px 5px 5px;
    transform-origin: 50% 82%;
    transition: transform .28s ease;
}
.jaw::after{ /* inward hook at the tip */
    content: "";
    position: absolute;
    top: -3px;
    width: 16px;
    height: 12px;
    background: var(--ink);
    border-radius: 4px;
}
.jaw-l{ left: 22px; }
.jaw-l::after{ left: 12px; }
.jaw-r{ right: 22px; }
.jaw-r::after{ right: 12px; }

.claw.open .jaw-l{ transform: rotate(30deg); }
.claw.open .jaw-r{ transform: rotate(-30deg); }

.claw-hold{
    position: absolute;
    left: 60px;
    top: 4px;
    width: 0;
    height: 0;
    transform: rotate(180deg); /* cancels the arm's cumulative 180° so cargo stays upright */
}
.claw-hold .crate{ box-shadow: none; }

.cap{
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--ink);
    z-index: 3;
}
.cap::after{
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--blue);
    border: 2.5px solid var(--ink);
}
.cap-shoulder{ left: 152px; top: 512px; }
.cap-elbow{ left: 5px; top: -6px; }   /* inside seg1, at its top */
.cap-wrist{ left: 1px; top: -8px; }   /* inside seg2, at its top */

.arm-base{
    position: absolute;
    left: 80px;
    top: 470px;
    width: 180px;
    height: 90px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 14px 14px 4px 4px;
    z-index: 2;
    overflow: hidden;
}
.base-stripes{
    position: absolute;
    left: -2px; right: -2px; bottom: -2px;
    height: 30px;
    background: repeating-linear-gradient(45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
    border-top: 3px solid var(--ink);
}
.base-label{
    position: absolute;
    top: 12px;
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 700;
}

/* ----- weld sparks ----- */
.sparks{ position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.spark{
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 6px var(--yellow);
}
.spark.hot{ background: var(--yellow); }

/* ============================================================
   CONNECT — dark finale
   ============================================================ */
.connect{
    background: var(--ink);
    color: var(--paper);
    min-height: 92svh;
    display: flex;
    align-items: center;
}
.connect-inner{ max-width: 1200px; margin: 0 auto; width: 100%; }

.tc-mini{
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.6vw, 18px);
    letter-spacing: .22em;
    margin: 0 0 10px;
}
.tc-mini .num{ color: var(--orange); font-weight: 700; }

.tc-head{
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7.5vw, 6.2rem);
    line-height: 1.02;
    margin: 0 0 54px;
}
.tc-head .accent{
    color: var(--ink);
    -webkit-text-stroke: 2px var(--paper);
    text-shadow: 5px 5px 0 var(--blue);
}

/* words blend in from the left once the section is reached */
.connect .w{
    display: inline-block;
    opacity: 0;
    transform: translateX(-56px);
    filter: blur(6px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1), filter .7s ease;
    transition-delay: calc(var(--d) * 90ms);
}
.connect.in .w{
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.socials{
    list-style: none;
    margin: 0 0 70px;
    padding: 0;
    border-top: 2px solid rgba(255,255,255,.25);
}
.socials a{
    display: grid;
    grid-template-columns: 130px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 8px;
    border-bottom: 2px solid rgba(255,255,255,.25);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: background .2s ease, padding-left .25s ease;
}
.socials a:hover{
    background: rgba(58,86,240,.28);
    padding-left: 22px;
}
.soc-k{ font-size: 12px; letter-spacing: .2em; opacity: .7; }
.soc-v{ font-size: clamp(15px, 2.4vw, 22px); font-weight: 700; }
.soc-a{ font-size: 20px; transition: transform .2s ease; }
.socials a:hover .soc-a{ transform: translate(4px, -4px); color: var(--orange); }

.site-footer{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    opacity: .6;
}

/* ---------- fixed T-minus countdown ---------- */
.tminus{
    position: fixed;
    left: clamp(14px, 2.5vw, 32px);
    bottom: clamp(14px, 2.5vw, 28px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-mono);
    color: #fff;
    mix-blend-mode: difference; /* stays visible on light AND dark sections */
    pointer-events: none;
}
.t-label{ font-size: 10px; letter-spacing: .3em; }
.t-sub{ opacity: .8; }
.t-window{
    height: 58px;
    overflow: hidden;
    display: block;
}
.t-num{
    display: block;
    font-family: var(--font-display);
    font-size: 54px;
    line-height: 58px;
    letter-spacing: .02em;
}
.t-num.rolling{ animation: t-roll .5s cubic-bezier(.3,.7,.2,1); }
@keyframes t-roll{
    0%  { transform: translateY(-105%); }
    100%{ transform: translateY(0); }
}

/* ============================================================
   Responsive & accessibility
   ============================================================ */
@media (max-width: 900px){
    .about-grid{
        grid-template-columns: 1fr;
        grid-template-areas: "photo" "copy" "facts";
    }
    .about-photo{ max-width: 340px; }
    .socials a{ grid-template-columns: 92px 1fr auto; }
}

@media (max-width: 560px){
    .site-nav a:not(:last-child){ display: none; }
    .ltr{ text-shadow: 3px 3px 0 var(--blue); }
    .ltr.alt{ text-shadow: 3px 3px 0 var(--ink); }
    .t-num{ font-size: 40px; line-height: 44px; }
    .t-window{ height: 44px; }
}

@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html{ scroll-behavior: auto; }
    .marquee-track{ animation: none; transform: none; }
    .arm-root{ display: none; }
    .connect .w{ opacity: 1; transform: none; filter: none; }
    .ltr{ animation: none; }
    .reveal-up{ animation: none; opacity: 1; }
}
