/* ==========================================================================
   DB_OS — Dhruv Bhoir portfolio
   1. Tokens   2. Base   3. Layout helpers   4. Nav   5. Hero   6. Windows
   7. About   8. Projects   9. Experience   10. Reviews   11. Skills
   12. Music   13. Contact/Terminal   14. Motion & a11y
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
    /* Brand */
    --silver: #DDE3E8;   /* main */
    --plum:   #3A0F34;   /* secondary */
    --gold:   #EAAA00;   /* accent */
    /* Supporting */
    --ink:      #111111;
    --paper:    #F8F7F2;
    --lime:     #C6FF00;
    --blue:     #365CFF;
    --pink:     #FF4FD8;
    --orange:   #FF5A1F;
    --lavender: #B8A0FF;

    --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --gutter: clamp(16px, 4vw, 48px);
    --radius: 14px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

.theme-dark  { --bg: var(--ink);   --fg: var(--silver); --muted: #9aa3ab; --line: rgba(221, 227, 232, .2); --focus: var(--lime); }
.theme-plum  { --bg: var(--plum);  --fg: var(--silver); --muted: #c9b4c3; --line: rgba(221, 227, 232, .22); --focus: var(--lime); }
.theme-light { --bg: var(--silver); --fg: var(--plum);  --muted: #6b4a66; --line: rgba(58, 15, 52, .25);   --focus: var(--blue); }
.theme-gold  { --bg: var(--gold);  --fg: var(--plum);   --muted: #4d2a46; --line: rgba(58, 15, 52, .35);   --focus: var(--plum); }

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.6;
    background: var(--ink);
    color: var(--silver);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.is-booting, body.menu-open { overflow: hidden; }

/* static film grain, one cheap fixed layer */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

:focus-visible { outline: 3px solid var(--focus, var(--lime)); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: fixed; left: 12px; top: -60px; z-index: 300;
    background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 200; }
.progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.cursor {
    position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none;
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 2px solid var(--gold); border-radius: 50%;
    opacity: 0; transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s;
    mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(234, 170, 0, .25); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 3. LAYOUT HELPERS -------------------------------------------------------- */
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.section {
    position: relative;
    background: var(--bg);
    color: var(--fg);
    padding: clamp(72px, 11vw, 150px) 0;
    overflow-x: clip;
}

.sec-head {
    display: flex; align-items: center; gap: 16px;
    font: 500 .78rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: clamp(20px, 3vw, 36px);
}
.sec-head__rule { flex: 1; height: 1px; background: var(--line); transform-origin: left; }

.sec-title {
    font-size: clamp(2.6rem, 9vw, 8rem);
    line-height: .92; letter-spacing: -.035em; font-weight: 800; text-transform: uppercase;
    margin-bottom: clamp(32px, 5vw, 64px);
    overflow-wrap: break-word;
}

.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: .9em 1.5em; min-height: 48px;
    border: 2px solid currentColor; border-radius: 999px;
    font-weight: 700; font-size: .95rem; line-height: 1.2;
    transition: background .25s, color .25s, border-color .25s;
}
.btn--gold  { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover  { background: var(--lime); border-color: var(--lime); }
.btn--ghost { color: var(--silver); border-color: rgba(221, 227, 232, .5); }
.btn--ghost:hover { background: var(--silver); color: var(--ink); border-color: var(--silver); }
.btn--text  { border-color: transparent; padding-inline: .6em; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.btn--text:hover { color: var(--gold); }
.btn--solid { background: var(--c, var(--gold)); border-color: var(--c, var(--gold)); color: var(--on, var(--ink)); }
.btn--solid:hover { background: var(--silver); border-color: var(--silver); color: var(--ink); }
.btn--plum  { background: var(--plum); border-color: var(--plum); color: var(--silver); }
.btn--plum:hover { background: var(--ink); border-color: var(--ink); }
.btn--disabled { opacity: .55; border-style: dashed; cursor: default; font-weight: 500; font-size: .85rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 .75rem var(--font-mono); padding: .35em .8em; border: 1.5px solid currentColor; border-radius: 999px; }

/* 4. NAV ------------------------------------------------------------------- */
.nav {
    position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
    width: min(1100px, calc(100% - 2 * var(--gutter))); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(17, 17, 17, .94);
    border: 1.5px solid rgba(221, 227, 232, .22);
    border-radius: 999px;
    padding: 8px 10px 8px 22px;
    color: var(--silver);
}
.nav__brand { font: 800 1.15rem var(--font-display); letter-spacing: -.02em; position: relative; z-index: 2; }
.nav__brand i { font-style: normal; color: var(--gold); margin-left: 2px; }

.nav__list { display: none; }
.nav__toggle {
    position: relative; z-index: 2;
    font: 500 .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
    background: var(--gold); color: var(--ink); border-radius: 999px; padding: 12px 20px; min-height: 44px; font-weight: 700;
}

.nav.is-open .nav__list {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 90px var(--gutter) 40px;
    background: var(--plum);
}
.nav.is-open .nav__list a {
    display: block; font-size: clamp(2.2rem, 11vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; line-height: 1.15;
}
.nav.is-open .nav__list a[aria-current="true"] { color: var(--gold); }

@media (min-width: 900px) {
    .nav { padding: 6px 10px 6px 24px; }
    .nav__toggle { display: none; }
    .nav__list { display: flex; gap: 2px; }
    .nav__list a {
        position: relative; display: block; padding: 10px 14px; border-radius: 999px;
        font: 500 .76rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
        color: rgba(221, 227, 232, .78); transition: color .2s, background .2s;
    }
    .nav__list a:hover { color: var(--ink); background: var(--silver); }
    .nav__list a[aria-current="true"] { color: var(--ink); background: var(--gold); font-weight: 700; }
}

/* 5. HERO ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: clamp(110px, 16vh, 160px) 0 clamp(48px, 8vh, 90px);
    background: var(--bg); color: var(--fg);
    overflow-x: clip;
}
.hero__grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); } }

.eyebrow { font: 500 .78rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }

.hero__title {
    font-size: clamp(3rem, 8.6vw, 7.6rem);
    line-height: .9; letter-spacing: -.04em; font-weight: 800; text-transform: uppercase;
    margin-bottom: 28px;
}
.line--outline > span { color: transparent; -webkit-text-stroke: 2px var(--silver); }
.line--gold > span { color: var(--gold); }

.hero__lede { max-width: 34em; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; color: #c7ced4; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 44px; }

.hero__meta { display: grid; gap: 16px; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 640px) { .hero__meta { grid-template-columns: repeat(3, 1fr); } }
.hero__meta dt { font: 500 .7rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero__meta dd { font-size: .92rem; line-height: 1.4; }
.hero__meta [data-clock] { font-family: var(--font-mono); color: var(--gold); }

.hero__visual { display: flex; justify-content: center; }
.monitor { position: relative; width: min(100%, 380px); }
.monitor__vinyl-wrap { position: absolute; z-index: 0; width: 92%; aspect-ratio: 1; right: -16%; bottom: -14%; }
@media (min-width: 900px) { .monitor__vinyl-wrap { right: -26%; } }
.monitor__vinyl {
    width: 100%; height: 100%; border-radius: 50%; position: relative;
    background:
        conic-gradient(from 20deg, rgba(255, 255, 255, .12), transparent 18%, transparent 50%, rgba(255, 255, 255, .12) 68%, transparent 85%),
        repeating-radial-gradient(circle, #1b1b1b 0 2px, #0a0a0a 2px 4px);
    border: 2px solid #2a2a2a;
    animation: spin 10s linear infinite;
}
.monitor__vinyl::before { content: ''; position: absolute; inset: 33%; border-radius: 50%; background: var(--gold); }
.monitor__vinyl::after { content: ''; position: absolute; inset: 48.5%; border-radius: 50%; background: var(--ink); }

.monitor__body {
    position: relative; z-index: 1;
    background: var(--silver); color: var(--ink);
    border: 3px solid var(--ink); border-radius: 16px;
    box-shadow: 10px 10px 0 var(--gold);
    overflow: hidden;
}
.monitor__screen { position: relative; aspect-ratio: 4 / 5; background: var(--plum); overflow: hidden; border-block: 3px solid var(--ink); }
.monitor__screen img { width: 100%; height: 100%; object-fit: cover; }
.monitor__screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px); }
.monitor__scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(198, 255, 0, .16), transparent); animation: scan 5s linear infinite; }
.monitor__tag { position: absolute; left: 12px; bottom: 12px; z-index: 3; background: var(--ink); color: var(--lime); font: 700 .72rem var(--font-mono); letter-spacing: .08em; padding: 6px 10px; border-radius: 6px; }
.monitor__foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font: 700 .72rem var(--font-mono); letter-spacing: .08em; }
.monitor__foot-right { margin-left: auto; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #2ecc40; box-shadow: 0 0 0 2px rgba(46, 204, 64, .3); animation: blink 2s steps(2) infinite; }

/* Marquee */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; padding: 14px 0; display: flex; align-items: center; }
.marquee li::after { content: '\25CF'; font-size: .5em; margin: 0 clamp(20px, 3vw, 40px); color: var(--plum); }

/* 6. WINDOWS --------------------------------------------------------------- */
.win {
    position: relative;
    background: var(--paper); color: var(--ink);
    border: 3px solid var(--ink); border-radius: var(--radius);
    box-shadow: 8px 8px 0 var(--ink);
    overflow: hidden;
}
.win.is-dragging { box-shadow: 14px 14px 0 var(--ink); }
.win__bar {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 14px; background: var(--ink); color: var(--silver);
    font: 700 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
    user-select: none;
}
[data-drag] .win__bar { touch-action: none; }
.drag-on [data-drag] .win__bar { cursor: grab; }
.drag-on [data-drag].is-dragging .win__bar { cursor: grabbing; }
.monitor__bar { background: var(--ink); }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.win__dots i:nth-child(2) { background: var(--lime); }
.win__dots i:nth-child(3) { background: var(--pink); }
.win__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__btn { width: 28px; height: 28px; border: 1.5px solid var(--silver); border-radius: 6px; line-height: 1; font-size: 1rem; display: grid; place-items: center; }
.win__btn:hover { background: var(--silver); color: var(--ink); }
.win__body { padding: clamp(18px, 2.4vw, 28px); }

.win--ink { background: #1b1b1b; color: var(--silver); box-shadow: 8px 8px 0 var(--blue); border-color: var(--ink); }
.win--lime { background: var(--lime); box-shadow: 8px 8px 0 var(--plum); }
.win--paper { box-shadow: 8px 8px 0 var(--plum); }

.code { font: 400 .82rem/1.75 var(--font-mono); white-space: pre; overflow-x: auto; }
.win--ink .code { white-space: pre-wrap; overflow-wrap: anywhere; }
.code .k { color: var(--gold); }
.code .s { color: var(--lime); }
.code .p { color: #8a929a; }
.code .c { color: var(--lavender); font-style: italic; }

/* 7. ABOUT ----------------------------------------------------------------- */
.about__grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.prose p { font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; }
.prose p + p { margin-top: 1em; }
.certs { display: grid; gap: 14px; font-size: .92rem; line-height: 1.4; }
.certs span { font: 500 .74rem var(--font-mono); opacity: .8; }
@media (min-width: 900px) {
    .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 28px; }
    .about__text { grid-column: 1 / 8; }
    .about__profile { grid-column: 8 / 13; margin-top: 64px; }
    .about__certs { grid-column: 3 / 10; margin-top: -8px; }
}

/* 8. PROJECTS -------------------------------------------------------------- */
.project {
    display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr);
    padding: clamp(36px, 6vw, 80px) 0; border-top: 1px solid var(--line); align-items: center;
}
@media (min-width: 900px) {
    .project { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .project--flip .project__visual { order: 2; }
}
.project__visual {
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
    background: var(--c); color: var(--on); overflow: hidden;
    border: 3px solid var(--silver);
    transition: border-color .3s;
}
.project:hover .project__visual { border-color: var(--c); }
.project__visual .art { position: absolute; inset: 6%; display: grid; place-items: center; }
.project__visual svg { width: 100%; height: 100%; }
.project__num {
    position: absolute; bottom: 3%; left: 5%;
    font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -.05em;
    color: transparent; -webkit-text-stroke: 2px var(--on);
}
.project__note { position: absolute; right: 12px; bottom: 10px; font: 500 .66rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--silver); padding: 4px 8px; border-radius: 4px; }

.project__type { font: 500 .76rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: 12px; }
.project h3 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; letter-spacing: -.03em; font-weight: 800; margin-bottom: 16px; }
.project__summary { font-size: 1.05rem; color: #c7ced4; margin-bottom: 20px; }
.project__facts { display: grid; gap: 14px; margin-bottom: 22px; }
.project__facts dt { font: 500 .7rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.project__facts dd { font-size: .95rem; line-height: 1.5; }
.project .chips { margin-bottom: 24px; color: var(--c); }
.project__links { display: flex; flex-wrap: wrap; gap: 10px; }

.sites { margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.sites__title { font: 500 .8rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.sites__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sites__grid a {
    display: flex; flex-direction: column; gap: 2px; height: 100%;
    border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px;
    transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.sites__grid strong { font-size: 1.05rem; }
.sites__grid span { font: 500 .74rem var(--font-mono); color: var(--muted); transition: color .25s; }
.sites__grid a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-4px); }
.sites__grid a:hover span { color: var(--ink); }

/* 9. EXPERIENCE ------------------------------------------------------------ */
.timeline { position: relative; padding-left: clamp(22px, 4vw, 44px); }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__progress { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--gold); transform-origin: top; }
.job { position: relative; display: grid; gap: 14px; padding-bottom: clamp(36px, 6vw, 72px); }
.job::before {
    content: ''; position: absolute; left: calc(-1 * clamp(22px, 4vw, 44px) + 1px); top: 6px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--jc, var(--gold)); box-shadow: 0 0 0 4px var(--plum);
}
.job__date { font: 500 .8rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--jc, var(--gold)); padding-top: 2px; }
.job__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.job h3 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.job__role { color: #d9c9d5; font-weight: 500; }
.logo { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; background: var(--paper); border-radius: 12px; overflow: hidden; transition: transform .25s var(--ease); }
.logo:hover { transform: rotate(-6deg) scale(1.08); }
.logo--dark { background: var(--ink); }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.job__list { display: grid; gap: 8px; max-width: 46em; }
.job__list li { position: relative; padding-left: 22px; line-height: 1.5; }
.job__list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--jc, var(--gold)); }
.job__list a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
    .job { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}

/* 10. REVIEWS -------------------------------------------------------------- */
.reviews__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.reviews__top .sec-title { margin-bottom: clamp(24px, 4vw, 48px); }
.reviews__ctrl { display: flex; gap: 10px; margin-bottom: clamp(24px, 4vw, 48px); }
.round { width: 52px; height: 52px; border: 2.5px solid var(--plum); border-radius: 50%; font-size: 1.3rem; display: grid; place-items: center; transition: background .2s, color .2s; }
.round:hover { background: var(--plum); color: var(--silver); }

.reviews__track {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px max(var(--gutter), calc((100% - 1280px) / 2)) 22px;
    scroll-padding-inline: max(var(--gutter), calc((100% - 1280px) / 2));
}
.review {
    flex: 0 0 clamp(270px, 80vw, 380px); scroll-snap-align: start;
    background: var(--paper); color: var(--ink);
    border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--plum);
    padding: 26px; display: flex; flex-direction: column; gap: 22px;
}
.review blockquote { font-size: 1.05rem; line-height: 1.5; font-weight: 500; flex: 1; }
.review figcaption { display: grid; gap: 2px; font-size: .85rem; line-height: 1.35; }
.review figcaption span { color: #5b4256; }
.avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--plum); color: var(--gold); display: grid; place-items: center; font-weight: 800; border: 2px solid var(--ink); overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 11. SKILLS --------------------------------------------------------------- */
.skills__grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.skills__intro p { max-width: 28em; color: #c7ced4; font-size: 1.05rem; }
@media (min-width: 900px) { .skills__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .skills__intro .sec-title { margin-bottom: 28px; font-size: clamp(2.6rem, 6vw, 5.4rem); } }
.editor { background: #1b1b1b; color: var(--silver); box-shadow: 8px 8px 0 var(--lime); border-color: var(--silver); }
.editor code { display: block; white-space: normal; counter-reset: ln; }
.editor .l { display: block; white-space: pre; counter-increment: ln; padding-left: 3.2em; position: relative; }
.editor .l::before { content: counter(ln); position: absolute; left: 0; width: 2.2em; text-align: right; color: #5c646b; user-select: none; }

/* 12. MUSIC ---------------------------------------------------------------- */
.player { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .player { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.record-wrap { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; }
.record-pan { width: 100%; height: 100%; }
.record {
    position: relative; width: 100%; height: 100%; border-radius: 50%;
    background:
        conic-gradient(from 30deg, rgba(255, 255, 255, .14), transparent 16%, transparent 50%, rgba(255, 255, 255, .14) 66%, transparent 84%),
        repeating-radial-gradient(circle, #1d1d1d 0 2px, #090909 2px 4px);
    border: 3px solid #2d2d2d; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    animation: spin 5.5s linear infinite; animation-play-state: paused;
}
.player.is-playing .record { animation-play-state: running; }
.record__label { position: absolute; inset: 31%; border-radius: 50%; background: var(--gold); overflow: hidden; display: grid; place-items: center; color: var(--plum); font-size: 2.4rem; border: 3px solid var(--ink); }
.record__label img { width: 100%; height: 100%; object-fit: cover; }
.record__label::after { content: ''; position: absolute; inset: 44%; border-radius: 50%; background: var(--plum); border: 2px solid var(--ink); }
.tonearm { position: absolute; top: -2%; right: -3%; width: 54%; height: 8px; background: var(--silver); border-radius: 8px; transform-origin: 94% 50%; transform: rotate(-38deg); transition: transform 1s var(--ease); }
.tonearm::before { content: ''; position: absolute; right: -10px; top: -14px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.tonearm::after { content: ''; position: absolute; left: -10px; top: -5px; width: 22px; height: 18px; background: var(--ink); border-radius: 3px; }
.player.is-playing .tonearm { transform: rotate(-14deg); }

.status { display: inline-block; font: 700 .76rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1.5px solid currentColor; margin-bottom: 18px; }
.status.is-now { color: var(--lime); }
.track { font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; overflow-wrap: anywhere; }
.artist { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 600; margin-top: 8px; color: var(--silver); }
.album { color: var(--muted); font-style: italic; margin-top: 2px; }
.featuring { color: var(--lavender); font: 500 .85rem var(--font-mono); margin-top: 8px; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin: 26px 0 14px; }
.bars span { flex: 1; max-width: 10px; height: 100%; background: var(--gold); border-radius: 3px; transform: scaleY(.12); transform-origin: bottom; animation: bar var(--d, 1s) ease-in-out var(--dl, 0s) infinite alternate; animation-play-state: paused; }
.player.is-playing .bars span { animation-play-state: running; }
.player__src { font-size: .82rem; color: var(--muted); max-width: 36em; }
.player__src a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.recent__title { font: 500 .76rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.recent li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.35; }
.recent li:last-child { border-bottom: 1px solid var(--line); }
.recent .n { font: 500 .78rem var(--font-mono); color: var(--gold); padding-top: 2px; }
.recent b { font-weight: 700; }
.recent span.by { color: var(--muted); }

/* 13. CONTACT + TERMINAL --------------------------------------------------- */
.contact__grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact__email {
    display: inline-block; font-size: clamp(1.05rem, 2.5vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
    overflow-wrap: anywhere; border-bottom: 4px solid var(--plum); margin-bottom: 28px; transition: color .2s, border-color .2s;
}
.contact__email:hover { color: var(--ink); border-color: var(--ink); }
.contact__links ul { display: grid; margin-bottom: 30px; }
.contact__links li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1.5px solid var(--line); align-items: baseline; }
.contact__links li:last-child { border-bottom: 1.5px solid var(--line); }
.contact__links li span { font: 500 .74rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__links li a, .contact__links li b { font-weight: 600; overflow-wrap: anywhere; }
.contact__links li a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.contact__links li a:hover { color: var(--ink); }

.win--term { background: var(--ink); color: var(--silver); box-shadow: 8px 8px 0 var(--plum); font-family: var(--font-mono); }
.win--term .win__bar { background: var(--plum); }
.term__body { padding: 16px; }
.term__out { height: clamp(220px, 34vh, 330px); overflow-y: auto; font-size: .82rem; line-height: 1.55; padding-right: 6px; }
.term__out p { white-space: pre-wrap; overflow-wrap: anywhere; }
.term__out .cmd { color: var(--lime); }
.term__out .err { color: var(--orange); }
.term__out .dim { color: var(--muted); }
.term__out a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.term__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.term__chips button { font: 500 .74rem var(--font-mono); border: 1.5px solid rgba(221, 227, 232, .4); border-radius: 999px; padding: 8px 14px; min-height: 40px; transition: background .2s, color .2s; }
.term__chips button:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.term__form { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(221, 227, 232, .2); padding-top: 12px; }
.term__prompt { color: var(--lime); font-size: .8rem; white-space: nowrap; }
.term__form input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--silver); font: inherit; font-size: 16px; padding: 8px 0; caret-color: var(--gold); }
.term__form input:focus-visible { outline: none; }
.term__form:focus-within { border-top-color: var(--gold); }
.win--term.is-min .term__body { display: none; }

.footer { background: var(--ink); color: var(--silver); padding: 28px 0; border-top: 3px solid var(--gold); font-size: .85rem; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer a { font: 500 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 4px; }
.footer a:hover { color: var(--gold); }

/* Boot screen: only exists visually when JS is on, motion is allowed and it's the first visit */
.boot { display: none; }
.js .boot { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--plum); color: var(--silver); padding: var(--gutter); }
.js.skip-boot .boot { display: none; }
.boot__inner { width: min(560px, 100%); font-family: var(--font-mono); }
.boot__brand { font-size: clamp(2.2rem, 8vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; color: var(--gold); margin-bottom: 20px; }
.boot__brand span { font-size: .35em; color: var(--silver); letter-spacing: .1em; }
.boot__log { min-height: 8.2em; font-size: .85rem; line-height: 1.7; color: var(--silver); }
.boot__log .ok { color: var(--lime); }
.boot__meter { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.boot__bar { flex: 1; height: 10px; border: 2px solid var(--silver); border-radius: 4px; padding: 1px; }
.boot__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.boot__pct { width: 3.5em; text-align: right; font-size: .85rem; }
.boot__skip { margin-top: 26px; font: 500 .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--silver); border: 1.5px solid rgba(221, 227, 232, .5); border-radius: 999px; padding: 10px 18px; min-height: 44px; }
.boot__skip:hover { background: var(--silver); color: var(--plum); }

/* 14. KEYFRAMES + MOTION + A11Y -------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { from { transform: translateY(-120%); } to { transform: translateY(520%); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bar { from { transform: scaleY(.12); } to { transform: scaleY(1); } }

@media (max-width: 480px) {
    .btn { width: 100%; }
    .btn--text { width: auto; }
    .hero__cta { gap: 10px; }
    .contact__links li { grid-template-columns: 1fr; gap: 2px; }
    .win { box-shadow: 5px 5px 0 var(--ink); }
    .win--ink { box-shadow: 5px 5px 0 var(--blue); }
    .win--lime, .win--paper { box-shadow: 5px 5px 0 var(--plum); }
    .editor { box-shadow: 5px 5px 0 var(--lime); }
    .win--term { box-shadow: 5px 5px 0 var(--plum); }
    .monitor__body { box-shadow: 6px 6px 0 var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .boot { display: none !important; }
    .marquee__track { width: auto; flex-wrap: wrap; }
    .marquee ul[aria-hidden="true"] { display: none; }
    .bars span { transform: scaleY(.5); }
    .progress { display: none; }
}
