/* =====================================================================
   ABENEZER.L — CBRPNK label aesthetic
   Palette, radius, grain and bevel values are sampled from the reference
   board (black field, four printed "spec label" cards).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,100..900;1,62..125,100..900&family=Dela+Gothic+One&family=Yuji+Boku&display=swap');

/* ----- TOKENS ----- */
:root {
    --u: 1cqw;
    --bg: #000000;
    --red: #a54c43;          /* left tall card */
    --orange: #e0a15e;       /* CBRPNK card */
    --green: #668863;        /* DPM SYSTM card */
    --grey: #969696;         /* Retro ai card */
    --ink: #1a1a1a;          /* print black on cards */
    --ink-2: #3a2a1e;
    --accent: #aa5048;       /* red numeral / bar fill */
    --paper: #e9e4da;
    --white: #ffffff;
    --line: rgba(255, 255, 255, .14);

    --radius: 22px;
    --gap: 12px;

    --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-num: 'Dela Gothic One', 'Archivo', sans-serif;
    --font-jp: 'Yuji Boku', 'Noto Serif JP', serif;
}

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

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

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

::selection { background: var(--orange); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border: 2px solid #000; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ----- TYPE HELPERS ----- */
.wide  { font-stretch: 125%; }
.narrow{ font-stretch: 75%; }
.caps  { text-transform: uppercase; letter-spacing: .08em; }
.mono-ish { font-variant-numeric: tabular-nums; }

/* =====================================================================
   CARD — the printed label.
   Layers (bottom → top):
     1. flat ink colour + faint lighting gradient
     2. content
     3. grain (overlay blend, tiled PNG)   ::before
     4. bevel rim: 1px light stroke + 1px darker stroke inside   ::after
   ===================================================================== */
.card {
    --c: var(--grey);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--c);
    background-image:
        linear-gradient(155deg,
            rgba(255, 255, 255, .075) 0%,
            rgba(255, 255, 255, 0) 38%,
            rgba(0, 0, 0, 0) 62%,
            rgba(0, 0, 0, .10) 100%);
    color: var(--ink);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .85),           /* hard cut edge against the black field   */
        0 18px 40px -22px rgba(0, 0, 0, .9);     /* a hint of lift                           */
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: url('../images/noise.png') 0 0 / 128px 128px repeat;
    mix-blend-mode: overlay;
    opacity: .3;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .30),   /* light rim                   */
        inset 0 0 0 2px rgba(0, 0, 0, .085),        /* darker line just inside     */
        inset 0 1px 0 1px rgba(255, 255, 255, .10), /* extra catch-light on top    */
        inset 0 -1px 0 0 rgba(0, 0, 0, .14);        /* shade along the bottom lip  */
}

.card > * { position: relative; z-index: 2; }

.card.c-red    { --c: var(--red); }
.card.c-orange { --c: var(--orange); }
.card.c-green  { --c: var(--green); }
.card.c-grey   { --c: var(--grey); }

/* Rules & boxes drawn on the label */
.rule { height: 1px; background: var(--ink); opacity: .9; }
.rule.thick { height: 2px; }

.box {
    border: 2px solid var(--ink);
    border-radius: 2px;
}

/* ----- SPEC ROW (label ▸ [value]) ----- */
.spec-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: .6em;
}
.spec-row .k {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.05;
}
.spec-row .k small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; }
.spec-row .tri { width: 0; height: 0; border-style: solid; border-width: .32em 0 .32em .5em; border-color: transparent transparent transparent var(--ink); }
.spec-row .v {
    min-width: 3.6em;
    padding: .18em .5em;
    border: 2px solid var(--ink);
    border-radius: 2px;
    text-align: center;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ----- CHIP (tag) ----- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    padding: .28em .6em;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}
.chip::before { content: ""; width: .45em; height: .45em; background: var(--ink); border-radius: 50%; }

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .7em 1.1em;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
    transition: background .2s, color .2s, transform .2s;
}
.btn .arr { width: .9em; height: .9em; }
.btn:hover { background: var(--white); color: var(--ink); }
.btn.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.ink:hover { background: transparent; color: var(--ink); }
.btn.outline-ink { color: var(--ink); border-color: var(--ink); }
.btn.outline-ink:hover { background: var(--ink); color: var(--paper); }

/* =====================================================================
   NAV
   ===================================================================== */
nav#header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
    padding-inline: clamp(16px, 4.5vw, 56px);
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: height .3s;
}
nav#header.scrolled { height: 58px; }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-name {
    font-weight: 900;
    font-stretch: 125%;
    font-size: 20px;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translateY(-7px); }
.nav-logo span.sub { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; opacity: .55; }

.nav_menu_list { display: flex; gap: 6px; list-style: none; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    transition: color .2s;
}
.nav-link::before {
    content: "";
    width: 0; height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent currentColor;
    opacity: 0;
    transition: opacity .2s;
}
.nav-link:hover, .nav-link.active-link { color: var(--white); }
.nav-link.active-link::before { opacity: 1; color: var(--orange); }

.nav-menu-btn { display: none; }
.nav-menu-btn button { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 6px; }
.nav-menu-btn i { font-size: 22px; }

/* =====================================================================
   LAYOUT
   ===================================================================== */
.wrapper { padding-inline: clamp(16px, 4.5vw, 56px); }

.section { padding-block: clamp(56px, 8vw, 110px); }

.sec-head {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 18px;
    margin-bottom: clamp(22px, 3vw, 36px);
    padding-bottom: 14px;
}
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.sec-head .idx {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .2em;
    opacity: .6;
    padding-bottom: 6px;
}
.sec-head h2 {
    font-weight: 900;
    font-stretch: 125%;
    white-space: nowrap;
    min-width: 0;
    font-size: clamp(24px, 7vw, 56px);
    line-height: .9;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.sec-head .meta {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .55;
    text-align: right;
    padding-bottom: 6px;
}

/* =====================================================================
   HERO BENTO — 1:1 to the board
   board 926×563 @1024 : red 261 | orange 637 ; green 311 | grey 315
   ===================================================================== */
.featured-box {
    padding-top: 92px;
    padding-bottom: 28px;
}

.bento {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 261fr 311fr 315fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--gap) 12px;
    aspect-ratio: 926 / 563;
    min-height: 560px;
    max-height: calc(100vh - 120px);
}

.bento .hero-red    { grid-row: 1 / 3; grid-column: 1;     --u: .282cqw; margin-right: calc(1.7 * 1cqw); }
.bento .hero-orange { grid-row: 1;     grid-column: 2 / 4; --u: .688cqw; }
.bento .hero-green  { grid-row: 2;     grid-column: 2;     --u: .336cqw; }
.bento .hero-grey   { grid-row: 2;     grid-column: 3;     --u: .340cqw; }
/* --u = 1% of the card's own width (derived from the board, so padding never feeds back into it) */

/* ---------- RED: portrait card ---------- */
.hero-red { padding: 0; }
.hero-red .corner-tl {
    position: absolute; top: calc(8 * var(--u)); left: calc(8.5 * var(--u));
    font-size: calc(6.6 * var(--u)); font-weight: 700; letter-spacing: .02em; line-height: 1;
}
.hero-red .corner-tr {
    position: absolute; top: calc(8.2 * var(--u)); right: calc(8.5 * var(--u));
    font-size: calc(3.1 * var(--u)); font-weight: 500; line-height: 1.25; text-align: right; letter-spacing: .01em;
}
.hero-red .portrait {
    position: absolute;
    right: calc(-9 * var(--u));
    bottom: calc(-1 * var(--u));
    width: calc(112 * var(--u));
    height: 66%;
    pointer-events: none;
    mix-blend-mode: luminosity;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
            mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}
.hero-red .portrait img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: right bottom;
    filter: grayscale(1) contrast(1.08) brightness(.98);
}
.hero-red .jp {
    position: absolute;
    left: calc(8 * var(--u));
    bottom: calc(17 * var(--u));
    writing-mode: vertical-rl;
    font-family: var(--font-jp);
    font-size: calc(15 * var(--u));
    line-height: 1;
    letter-spacing: .08em;
    color: var(--ink);
}
.hero-red .pill {
    position: absolute;
    left: calc(8.5 * var(--u)); bottom: calc(7.5 * var(--u));
    width: calc(12 * var(--u)); height: calc(4.6 * var(--u));
    border-radius: 999px;
    background: var(--ink);
    display: flex; align-items: center; padding-left: calc(1.4 * var(--u));
}
.hero-red .pill::before { content: ""; width: calc(2.2 * var(--u)); height: calc(2.2 * var(--u)); border-radius: 50%; background: var(--paper); }

/* ---------- ORANGE: CBRPNK spec card ---------- */
.hero-orange {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    padding: calc(3.1 * var(--u)) calc(3.4 * var(--u)) calc(3 * var(--u));
}
.hero-orange .row-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-orange .name {
    font-weight: 900;
    font-stretch: 125%;
    font-size: calc(7.9 * var(--u));
    line-height: .95;
    letter-spacing: -.012em;
    text-transform: uppercase;
    display: inline-flex; align-items: flex-start; gap: .12em;
}
.hero-orange .name .dot { width: .2em; height: .2em; border-radius: 50%; background: var(--accent); margin-top: .02em; }
.hero-orange .arrow { flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); margin-top: calc(.4 * var(--u)); color: var(--ink); }
.hero-orange .arrow svg { display: block; width: 100%; height: 100%; }

.hero-orange .row-mid {
    display: grid;
    grid-template-columns: calc(17 * var(--u)) calc(38 * var(--u)) minmax(0, 1fr);
    gap: calc(1.9 * var(--u));
    align-items: start;
    margin-top: calc(-.6 * var(--u));
}
.hero-orange .row-mid > * { min-width: 0; }
.spec .bd { min-width: 0; }

/* ADSR bars */
.adsr { height: calc(19.6 * var(--u)); padding: calc(1.5 * var(--u)) calc(1.3 * var(--u)) calc(1.1 * var(--u)); display: grid; grid-template-rows: 1fr auto; gap: calc(.8 * var(--u)); }
.adsr .bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(.9 * var(--u)); align-items: end; }
.adsr .bar { position: relative; height: 100%; border: 2px solid var(--ink); border-radius: 1px; background: linear-gradient(to top, var(--accent) var(--f, 50%), transparent var(--f, 50%)); }
.adsr .labels { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-weight: 800; font-size: calc(2.1 * var(--u)); letter-spacing: .08em; }

/* UA 570-B panel */
.spec { height: calc(19.6 * var(--u)); display: grid; grid-template-rows: calc(4 * var(--u)) minmax(0, 1fr); font-size: calc(1.35 * var(--u)); overflow: hidden; }
.spec .hd { white-space: nowrap; overflow: hidden; padding: 0 calc(1.6 * var(--u)); border-bottom: 2px solid var(--ink); font-size: calc(1.7 * var(--u)); font-weight: 500; letter-spacing: .02em; line-height: 1; display: flex; align-items: center; gap: .4em; }
.spec .hd b { font-weight: 700; }
.spec .hd .dim { opacity: .75; }
.spec .bd { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.spec .rows { display: grid; align-content: space-evenly; gap: calc(.4 * var(--u)); padding: calc(.8 * var(--u)) calc(1.4 * var(--u)); }
.spec .rows .spec-row { font-size: calc(1.25 * var(--u)); }
.spec .rows .spec-row .v { font-size: calc(2.6 * var(--u)); min-width: calc(8 * var(--u)); padding: .1em .4em; }
.spec .gauges { display: grid; grid-template-columns: auto auto; gap: calc(1.6 * var(--u)); padding: calc(.8 * var(--u)) calc(1.4 * var(--u)) calc(.8 * var(--u)) calc(1.1 * var(--u)); border-left: 2px solid var(--ink); font-size: calc(1.2 * var(--u)); font-weight: 600; }
.spec .gauge { display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: calc(.5 * var(--u)); }
.spec .gauge svg { height: 100%; width: calc(2.6 * var(--u)); }

/* paragraph */
.hero-orange .blurb {
    list-style: none;
    font-size: max(9px, calc(1.3 * var(--u)));
    line-height: 1.2;
    margin-top: calc(5.2 * var(--u));
    margin-left: calc(1 * var(--u));
    color: var(--ink);
    max-width: calc(36 * var(--u));
    border-top: 1px solid var(--ink);
}
.hero-orange .jobs li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: calc(1 * var(--u));
    align-items: baseline;
    padding: calc(.75 * var(--u)) 0;
    border-bottom: 1px solid var(--ink);
}
.hero-orange .jobs .role { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.hero-orange .jobs .co { font-weight: 500; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-orange .jobs .when { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* bottom strip */
.hero-orange .row-bot { display: flex; align-items: center; gap: calc(3 * var(--u)); margin-top: calc(1.4 * var(--u)); }
.hero-orange .code { font-weight: 800; font-size: calc(3.2 * var(--u)); letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.hero-orange .barcode { display: flex; align-items: center; gap: calc(.8 * var(--u)); margin-left: calc(1 * var(--u)); }
.hero-orange .barcode svg { height: calc(2.6 * var(--u)); width: auto; }
.hero-orange .barcode .tiny { font-size: max(5px, calc(.9 * var(--u))); line-height: 1.1; font-weight: 500; opacity: .85; }
.hero-orange .corp { font-weight: 900; font-style: italic; font-size: calc(2.3 * var(--u)); letter-spacing: .04em; display: inline-flex; align-items: center; gap: calc(.5 * var(--u)); }
.hero-orange .corp .mini { font-size: calc(1 * var(--u)); font-style: normal; font-weight: 500; border: 1px solid var(--ink); padding: 0 .3em; border-radius: 1px; }
.hero-orange .corp svg { width: calc(2 * var(--u)); height: calc(2 * var(--u)); }
.hero-orange .pies { margin-left: auto; display: flex; gap: calc(.7 * var(--u)); }
.hero-orange .pies svg { width: calc(3.2 * var(--u)); height: calc(3.2 * var(--u)); }

/* ---------- GREEN: DPM SYSTM card ---------- */
.hero-green {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto;
    padding: calc(5.2 * var(--u));
    color: var(--ink);
}
.hero-green .sys {
    display: flex; justify-content: space-between; align-items: center;
    padding: calc(2.4 * var(--u)) 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    font-weight: 600; font-stretch: 112%;
    font-size: calc(7.2 * var(--u)); letter-spacing: .01em; line-height: 1;
    text-transform: uppercase;
}
.hero-green .sys svg { width: calc(7.5 * var(--u)); height: calc(6 * var(--u)); }
.hero-green .mid { display: flex; justify-content: space-between; align-items: flex-start; padding: calc(3 * var(--u)) 0 calc(2.6 * var(--u)); border-bottom: 1px solid var(--ink); }
.hero-green .mid .lines { font-size: calc(3.4 * var(--u)); font-weight: 600; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; }
.hero-green .mid .right { text-align: right; font-size: calc(3.2 * var(--u)); font-weight: 500; display: grid; justify-items: end; gap: calc(1.6 * var(--u)); }
.hero-green .toggle { width: calc(7 * var(--u)); height: calc(3.2 * var(--u)); border: 1.5px solid var(--ink); border-radius: 999px; display: flex; align-items: center; padding: 0 calc(.35 * var(--u)); }
.hero-green .toggle::before { content: ""; width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u)); border-radius: 50%; background: var(--ink); }
.hero-green .big {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: calc(3 * var(--u));
}
.hero-green .big strong {
    font-weight: 800; font-stretch: 120%;
    font-size: calc(15 * var(--u)); line-height: .9; letter-spacing: -.01em;
}
.hero-green .big svg { width: calc(13.5 * var(--u)); height: calc(13.5 * var(--u)); }
.hero-green:hover .big strong { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .08em; }

/* ---------- GREY: Retro ai card ---------- */
.hero-grey { padding: calc(7 * var(--u)) calc(7.5 * var(--u)) calc(5.5 * var(--u)) calc(8.5 * var(--u)); display: grid; grid-template-rows: auto 1fr auto; color: var(--ink); }
.hero-grey .glyph { justify-self: end; width: calc(12 * var(--u)); height: calc(8 * var(--u)); }
.hero-grey .lead {
    align-self: center;
    font-size: calc(7 * var(--u)); font-weight: 500; font-stretch: 88%;
    line-height: 1.02; letter-spacing: -.01em;
}
.hero-grey .num {
    position: relative;
    justify-self: start;
    font-family: var(--font-num);
    font-size: calc(36 * var(--u));
    line-height: .82;
    letter-spacing: -.02em;
    display: inline-block;
    transform: translateY(calc(1.5 * var(--u)));
}
.hero-grey .num .r { color: var(--accent); }
.hero-grey .num sup {
    position: absolute; top: .02em; right: -.42em;
    font-family: var(--font); font-size: .16em; font-weight: 700;
    width: 1.3em; height: 1.3em; border: .12em solid var(--ink); border-radius: 50%;
    display: grid; place-items: center; line-height: 1;
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--gap) 14px;
}
.about-intro { padding: clamp(20px, calc(3.2 * var(--u)), 34px); display: grid; grid-template-rows: auto 1fr auto; gap: 22px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.card-top span:last-child { white-space: nowrap; }
.card-title {
    font-weight: 900; font-stretch: 125%;
    font-size: clamp(28px, calc(4.2 * var(--u)), 54px); line-height: .92; letter-spacing: -.012em; text-transform: uppercase;
}
.about-intro p { font-size: 14px; line-height: 1.55; max-width: 56ch; color: var(--ink); }
.ledger { display: grid; border-top: 1px solid var(--ink); }
.ledger .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--ink); font-size: 11px; }
.ledger .row b { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ledger .row span { font-weight: 500; }
.ledger .row em { font-style: normal; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.about-intro .stats { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.about-intro > * { min-width: 0; }
.about-intro .stats .spec-row { font-size: 10px; gap: .5em; }
.about-intro .stats .spec-row .v { font-size: 20px; min-width: 2.4em; }
.about-intro .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.skills-col { display: grid; gap: var(--gap); }
.skills-box { padding: 18px 20px 20px; display: grid; gap: 12px; }
.skills-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.skills-header h3 { font-size: 16px; font-weight: 600; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; }
.skills-header small { font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.skills-list { display: flex; flex-wrap: wrap; gap: 7px; }

/* =====================================================================
   PROJECTS
   ===================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap) 14px;
}
.project-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    padding: 20px 22px 22px;
    min-height: 300px;
}
.project-card:hover { --ty: -4px; }
.project-card.span-2 { grid-column: span 2; }
.project-card.span-3 { grid-column: 1 / -1; min-height: 0; }
.project-card .card-title { font-size: clamp(24px, calc(6.4 * var(--u)), 40px); }
.project-card .card-desc { font-size: 13px; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 14px; }
.card-links .links { display: flex; flex-wrap: wrap; gap: 8px; }
.card-cta { font-size: 11px; padding: .55em .8em; }
.card-links .serial { font-size: 10px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; opacity: .8; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--gap) 14px; }
.contact-info { padding: 22px 24px 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; }
.contact-info .lines { display: grid; gap: 10px; align-content: center; }
.contact-info .spec-row { grid-template-columns: auto auto 1fr; font-size: 10px; }
.contact-info .spec-row .v { font-size: 13px; text-align: left; justify-self: start; min-width: 0; }
.contact-info .spec-row .v a:hover { text-decoration: underline; }
.social_icons { display: flex; gap: 8px; flex-wrap: wrap; }
.icon {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1.5px solid var(--ink); border-radius: 50%;
    color: var(--ink);
    transition: background .2s, color .2s;
}
.icon i { font-size: 18px; }
.icon:hover { background: var(--ink); color: var(--paper); }

.form-card { padding: 22px 24px 24px; }
.form-control { display: grid; gap: 10px; }
.form-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-field, textarea {
    width: 100%;
    background: transparent;
    border: 2px solid var(--ink);
    border-radius: 3px;
    padding: 14px 14px;
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    outline: none;
}
.input-field::placeholder, textarea::placeholder { color: rgba(26, 26, 26, .62); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; }
.input-field:focus, textarea:focus { box-shadow: inset 0 0 0 1px var(--ink); }
textarea { min-height: 180px; resize: vertical; }
.form-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.form-button .hint { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .75; }

/* =====================================================================
   FOOTER
   ===================================================================== */
footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    padding: 28px clamp(16px, 4.5vw, 56px) 36px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.top-footer p { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 16px; }
.top-footer span { display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; opacity: .5; font-weight: 500; }
.footer-menu { display: flex; gap: 4px; list-style: none; }
.footer-menu a { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; color: rgba(255,255,255,.6); }
.footer-menu a:hover { color: var(--white); }
.footer-social-icons { display: flex; gap: 8px; justify-content: end; }
.footer-social-icons .icon { border-color: var(--line); color: var(--white); width: 36px; height: 36px; }
.footer-social-icons .icon:hover { background: var(--white); color: var(--ink); }

/* =====================================================================
   REVEAL (ScrollReveal sets inline styles; keep initial visible if JS off)
   ===================================================================== */

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card.span-2 { grid-column: span 2; }
    .project-card.span-3 { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    nav#header .nav-button { display: none; }
    .nav-menu-btn { display: block; }
    .nav-menu {
        position: fixed;
        top: 68px; left: 0; right: 0;
        padding: 18px clamp(16px, 4.5vw, 56px) 26px;
        background: rgba(0, 0, 0, .94);
        border-bottom: 1px solid var(--line);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: transform .25s, opacity .25s, visibility 0s .25s;
    }
    .nav-menu.responsive { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav_menu_list { flex-direction: column; gap: 2px; }
    .nav-link { font-size: 13px; padding: 12px 6px; }

    .bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        aspect-ratio: auto;
        max-height: none;
        min-height: 0;
    }
    .bento .hero-red    { grid-row: 1; grid-column: 1 / 3; aspect-ratio: auto; height: clamp(360px, 62vw, 520px); margin-right: 0; --u: 1cqw; }
    .bento .hero-orange { grid-row: 2; grid-column: 1 / 3; aspect-ratio: 637 / 272; --u: 1cqw; }
    .bento .hero-green  { grid-row: 3; grid-column: 1; aspect-ratio: 311 / 279; --u: .49cqw; }
    .bento .hero-grey   { grid-row: 3; grid-column: 2; aspect-ratio: 315 / 279; --u: .49cqw; }
    .hero-red .portrait { width: calc(60 * var(--u)); height: 92%; right: calc(2 * var(--u)); }
    .hero-red .jp { font-size: calc(9 * var(--u)); bottom: calc(10 * var(--u)); left: calc(5 * var(--u)); }
    .hero-red .corner-tl { font-size: calc(4 * var(--u)); top: calc(4.5 * var(--u)); left: calc(5 * var(--u)); }
    .hero-red .corner-tr { font-size: calc(2 * var(--u)); top: calc(4.5 * var(--u)); right: calc(5 * var(--u)); }
    .hero-red .pill { left: calc(5 * var(--u)); bottom: calc(4.5 * var(--u)); width: calc(8 * var(--u)); height: calc(3 * var(--u)); }
    .hero-red .pill::before { width: calc(1.5 * var(--u)); height: calc(1.5 * var(--u)); }

    .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .sec-head { grid-template-columns: auto 1fr; row-gap: 10px; }
    .sec-head .meta { grid-column: 1 / -1; text-align: left; padding-bottom: 0; }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.span-2, .project-card.span-3 { grid-column: auto; }
    .project-card { min-height: 0; }

    .bento { grid-template-columns: minmax(0, 1fr); }
    .bento > * { min-width: 0; }
    .bento .hero-red    { grid-column: 1; }
    .nav-logo .sub { display: none; }
    .bento .hero-orange { grid-column: 1; aspect-ratio: auto; }
    .bento .hero-green  { grid-row: 3; grid-column: 1; --u: 1cqw; }
    .bento .hero-grey   { grid-row: 4; grid-column: 1; --u: 1cqw; }

    /* reflow the CBRPNK card: panels wrap, text readable */
    .hero-orange { padding: 18px 18px 16px; gap: 14px; }
    .hero-orange .name { font-size: calc(7.1 * var(--u)); }
    .hero-orange .arrow { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
    .hero-orange .row-mid { grid-template-columns: calc(26 * var(--u)) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; margin-top: 0; }
    .adsr { height: calc(40 * var(--u)); padding: 10px 8px 8px; }
    .adsr .labels { font-size: 11px; }
    .spec { height: calc(40 * var(--u)); font-size: 9px; }
    .spec .hd { font-size: 11px; padding: 7px 9px; }
    .spec .rows { padding: 6px 9px; gap: 6px; }
    .spec .rows .spec-row { font-size: 8px; }
    .spec .rows .spec-row .v { font-size: 14px; min-width: 3.6em; }
    .spec .gauges { font-size: 8px; padding: 6px 6px; gap: 6px; }
    .spec .rows { padding: 6px 7px; }
    .spec .rows .spec-row { gap: .4em; }
    .spec .gauge svg { width: 12px; }
    .hero-orange .blurb { grid-column: 1 / 3; margin: 4px 0 0; max-width: none; font-size: 11px; }
    .hero-orange .jobs li { padding: 6px 0; gap: 10px; }
    .hero-orange .row-bot { flex-wrap: wrap; gap: 10px 16px; margin-top: 4px; }
    .hero-orange .code { font-size: 18px; }
    .hero-orange .barcode svg { height: 16px; }
    .hero-orange .barcode .tiny { font-size: 6px; }
    .hero-orange .corp { font-size: 13px; }
    .hero-orange .corp .mini { font-size: 7px; }
    .hero-orange .corp svg { width: 12px; height: 12px; }
    .hero-orange .pies svg { width: 18px; height: 18px; }

    .contact-info .spec-row .v { font-size: 12px; }
    .form-inputs { grid-template-columns: 1fr; }
    footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-social-icons { justify-content: center; }
}



/* =====================================================================
   MOTION
   ===================================================================== */
:root {
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-io: cubic-bezier(.7, 0, .2, 1);
    --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}
@property --f  { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --sh { syntax: '<number>';     inherits: false; initial-value: 0; }

/* ---- split text ---- */
.word { display: inline-block; overflow: hidden; white-space: nowrap; padding: .06em 0 .1em; margin: -.06em 0 -.1em; vertical-align: bottom; }
.ch { display: inline-block; white-space: pre; will-change: transform; }

/* ---- card: 3D tilt + cursor sheen (composes with reveal via --ty) ---- */
.card {
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
    transform-style: preserve-3d;
    transition: transform .8s var(--ease-out), opacity .9s var(--ease-out), --sh .45s ease;
    background-image:
        radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, var(--sh)) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(155deg,
            rgba(255, 255, 255, .075) 0%,
            rgba(255, 255, 255, 0) 38%,
            rgba(0, 0, 0, 0) 62%,
            rgba(0, 0, 0, .10) 100%);
}
.card.tilting { transition-duration: .14s, .9s, .45s; }
@media (hover: hover) { .card:hover { --sh: .17; } }

/* ---- print head (sweeps down each hero card as it is revealed) ---- */
.printhead {
    position: absolute; left: -2%; right: -2%; top: -6%;
    height: 3px; z-index: 7; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .95) 20%, rgba(255, 255, 255, .95) 80%, transparent 100%);
    box-shadow: 0 0 22px 6px rgba(255, 255, 255, .45), 0 0 60px 14px rgba(255, 240, 220, .25);
    mix-blend-mode: screen;
}

/* ---- keyframes ---- */
@keyframes cardIn {
    0%   { opacity: 0; transform: perspective(1200px) translateY(38px) scale(.975); clip-path: inset(0 0 100% 0 round var(--radius)); }
    25%  { opacity: 1; }
    100% { opacity: 1; transform: perspective(1200px) translateY(0) scale(1);   clip-path: inset(0 0 0 0 round var(--radius)); }
}
@keyframes sweep   { 0% { top: -6%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 101%; opacity: 0; } }
@keyframes rise    { from { transform: translateY(112%); } to { transform: none; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeUpL { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
@keyframes fadeL   { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes fadeR   { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes wipeR   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes growY   { from { transform: scaleY(0); } to { transform: none; } }
@keyframes growX   { from { transform: scaleX(0); } to { transform: none; } }
@keyframes pop     { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.18); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes spinIn  { from { transform: rotate(-140deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes arrowIn { from { opacity: 0; transform: translate(-45%, 45%); } to { opacity: 1; transform: none; } }
@keyframes fill    { from { --f: 0%; } }
@keyframes blink   { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes inkIn   { from { opacity: 0; filter: blur(6px); transform: translateY(10px) scale(1.06); } to { opacity: 1; filter: blur(0); transform: none; } }

/* ---- hero intro sequence ---- */
.js .bento:not(.is-in) { visibility: hidden; }
.js .bento:not(.is-in) .card { opacity: 0; }

.bento.is-in .card     { animation: cardIn 1.05s var(--ease-out) var(--d, 0s) both; }
.bento.is-in .printhead{ animation: sweep 1.05s var(--ease-out) var(--d, 0s) both; }

/* red */
.bento.is-in .hero-red .portrait  { animation: fadeUpL 1.3s var(--ease-out) calc(var(--d) + .35s) both; }
.bento.is-in .hero-red .corner-tl,
.bento.is-in .hero-red .corner-tr { animation: fadeUp .8s var(--ease-out) calc(var(--d) + .55s) both; }
.bento.is-in .hero-red .jp .ch    { animation: inkIn 1s var(--ease-out) calc(var(--d) + .7s + var(--i, 0) * .22s) both; }
.bento.is-in .hero-red .pill      { transform-origin: left center; animation: growX .7s var(--ease-out) calc(var(--d) + .9s) both; }
.hero-red .pill::before           { animation: blink 2.6s ease-in-out infinite; }

/* orange */
.bento.is-in .hero-orange .name .ch   { animation: rise .95s var(--ease-out) calc(var(--d) + .4s + var(--i, 0) * .045s) both; }
.bento.is-in .hero-orange .name .dot  { animation: pop .55s var(--ease-back) calc(var(--d) + 1s) both; }
.bento.is-in .hero-orange .arrow      { animation: arrowIn 1.1s var(--ease-out) calc(var(--d) + .6s) both; }
.bento.is-in .hero-orange .adsr,
.bento.is-in .hero-orange .spec       { animation: fadeUp .9s var(--ease-out) calc(var(--d) + .6s) both; }
.bento.is-in .adsr .bar               { animation: fill 1.5s var(--ease-out) calc(var(--d) + 1.05s + var(--i, 0) * .12s) both; }
.bento.is-in .adsr .labels span       { animation: fadeUp .6s var(--ease-out) calc(var(--d) + 1.2s + var(--i, 0) * .08s) both; }
.bento.is-in .spec .hd > *            { animation: fadeL .7s var(--ease-out) calc(var(--d) + .95s + var(--i, 0) * .12s) both; }
.bento.is-in .spec .rows .spec-row    { animation: fadeUp .7s var(--ease-out) calc(var(--d) + 1.05s + var(--i, 0) * .14s) both; }
.bento.is-in .spec .gauge span        { animation: fadeUp .6s var(--ease-out) calc(var(--d) + 1.2s) both; }
.bento.is-in .spec .gauge svg         { transform-origin: bottom center; animation: growY 1.1s var(--ease-out) calc(var(--d) + 1.25s + var(--i, 0) * .15s) both; }
.bento.is-in .hero-orange .jobs       { animation: fadeUp .8s var(--ease-out) calc(var(--d) + .9s) both; }
.bento.is-in .hero-orange .jobs li    { animation: fadeL .7s var(--ease-out) calc(var(--d) + 1.05s + var(--i, 0) * .12s) both; }
.bento.is-in .hero-orange .row-bot > *{ animation: fadeUp .7s var(--ease-out) calc(var(--d) + 1.35s + var(--i, 0) * .1s) both; }
.bento.is-in .hero-orange .barcode rect { transform-box: fill-box; transform-origin: bottom center; animation: growY .5s var(--ease-out) calc(var(--d) + 1.55s + var(--i, 0) * .018s) both; }
.bento.is-in .hero-orange .pies svg   { animation: spinIn .8s var(--ease-out) calc(var(--d) + 1.55s + var(--i, 0) * .1s) both; }
.hero-orange .pies svg:nth-child(2) use { transform-box: fill-box; transform-origin: center; animation: spin 16s linear infinite; }
.hero-orange .arrow { transition: transform .5s var(--ease-out); }
@media (hover: hover) { .hero-orange:hover .arrow { transform: translate(5%, -5%); } }

/* green */
.bento.is-in .hero-green .sys,
.bento.is-in .hero-green .mid,
.bento.is-in .hero-green .big         { animation: wipeR 1s var(--ease-io) calc(var(--d) + .5s + var(--i, 0) * .16s) both; }
.bento.is-in .hero-green .big strong .ch { animation: rise .9s var(--ease-out) calc(var(--d) + .95s + var(--i, 0) * .05s) both; }
.bento.is-in .hero-green .big svg     { animation: spinIn 1s var(--ease-out) calc(var(--d) + 1.1s) both; }
.hero-green .toggle::before { transition: transform .45s var(--ease-back); }
@media (hover: hover) { .hero-green:hover .toggle::before { transform: translateX(calc(4.1 * var(--u))); } }
.hero-green .big strong { display: inline-block; overflow: hidden; padding: .04em 0 .08em; margin: -.04em 0 -.08em; }

/* grey */
.bento.is-in .hero-grey .glyph        { animation: fadeR .9s var(--ease-out) calc(var(--d) + .5s) both; }
.bento.is-in .hero-grey .lead         { animation: fadeUp .9s var(--ease-out) calc(var(--d) + .65s) both; }
.bento.is-in .hero-grey .num          { animation: fadeUp 1s var(--ease-out) calc(var(--d) + .75s) both; }
.bento.is-in .hero-grey .num sup      { animation: pop .6s var(--ease-back) calc(var(--d) + 2s) both; }

/* odometer digits */
.odo { display: inline-block; height: .82em; overflow: hidden; vertical-align: top; }
.odo-col { display: block; transform: translateY(calc(var(--n, 0) * -.82em)); transition: transform 1.9s var(--ease-out); }
.odo-col span { display: block; height: .82em; line-height: .82em; }

/* portrait parallax after intro */
.hero-red .portrait { transform: translateY(calc(var(--sy, 0) * 48px)); }

/* ---- scroll reveal ---- */
.js [data-reveal] { opacity: 0; --ty: 28px; }
.js [data-reveal]:not(.card) { transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal] { transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; --ty: 0px; transform: none; }
.js .card[data-reveal].is-in { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.js .project-card[data-reveal].is-in:hover { --ty: -4px; }

/* section head: rule draws, letters rise */
.sec-head::after { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io) .15s; }
.sec-head.is-in::after { transform: none; }
.sec-head h2 { overflow: hidden; padding: .04em 0 .08em; margin: -.04em 0 -.08em; }
.js .sec-head h2 .ch { transform: translateY(112%); transition: transform .9s var(--ease-out); transition-delay: calc(.05s + var(--i, 0) * .035s); }
.js .sec-head.is-in h2 .ch { transform: none; }
.js .sec-head .idx, .js .sec-head .meta { opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease-out) .4s, transform .7s var(--ease-out) .4s; }
.js .sec-head.is-in .idx, .js .sec-head.is-in .meta { opacity: 1; transform: none; }
.js .sec-head { transform: none !important; }

/* inside revealed cards */
.js [data-reveal] .chip { opacity: 0; transform: translateY(8px) scale(.92); transition: opacity .6s var(--ease-out), transform .6s var(--ease-back); transition-delay: calc(.3s + var(--i, 0) * .045s); }
.js [data-reveal].is-in .chip { opacity: 1; transform: none; }
.js [data-reveal] .ledger .row { opacity: 0; transform: translateX(-12px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(.35s + var(--i, 0) * .1s); }
.js [data-reveal].is-in .ledger .row { opacity: 1; transform: none; }
.js [data-reveal] .card-title { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out) .15s, transform .8s var(--ease-out) .15s; }
.js [data-reveal].is-in .card-title { opacity: 1; transform: none; }
.js [data-reveal] .card-links { opacity: 0; transition: opacity .8s var(--ease-out) .5s; }
.js [data-reveal].is-in .card-links { opacity: 1; }
.js [data-reveal] .skills-header { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease-io) .1s; }
.js [data-reveal].is-in .skills-header { clip-path: inset(0 0 0 0); }

/* ---- hover micro-interactions ---- */
.btn { transition: background .25s, color .25s, transform .5s var(--ease-out); }
.btn .arr { transition: transform .4s var(--ease-out); }
.btn:hover .arr { transform: translate(2px, -2px); }
.nav-link::before { transform: translateX(-4px); transition: opacity .25s, transform .35s var(--ease-out); }
.nav-link.active-link::before { transform: none; }
.icon { transition: background .25s, color .25s, transform .4s var(--ease-back); }
.icon:hover { transform: translateY(-2px); }
.magnet { will-change: transform; transition: transform .55s var(--ease-out); }
.magnet.on { transition-duration: .12s; }
.chip { transition: background .2s, color .2s; }
.card:hover .chip { background: rgba(0,0,0,.05); }
.hero-grey .num .r { transition: color .3s; }
.hero-grey:hover .num .r { color: var(--ink); }
.hero-grey:hover .num { --tw: 1; }

/* nav entrance */
.js nav#header { opacity: 0; transform: translateY(-14px); transition: opacity .9s var(--ease-out) .1s, transform .9s var(--ease-out) .1s, height .3s; }
.js nav#header.is-in { opacity: 1; transform: none; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
    .js .bento:not(.is-in) { visibility: visible; }
    .js .bento:not(.is-in) .card, .js [data-reveal], .js nav#header { opacity: 1; transform: none; }
    .odo-col { transition: none; }
    .printhead { display: none; }
}

/* =====================================================================
   CV VIEWER (modal)
   ===================================================================== */
.cv-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(10px, 2.5vw, 28px); }
.cv-modal[hidden] { display: none; }
.cv-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s ease; }
.cv-modal.open .cv-backdrop { opacity: 1; }

.cv-dialog {
    position: relative;
    width: min(960px, 100%);
    height: min(92vh, 1100px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    opacity: 0;
    --ty: 26px;
    transform: perspective(1200px) translateY(var(--ty)) scale(.985);
    transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
}
.cv-modal.open .cv-dialog { opacity: 1; --ty: 0px; transform: perspective(1200px) translateY(0) scale(1); }
.cv-dialog.tilting, .cv-modal .cv-dialog:hover { --sh: 0; }  /* no tilt/sheen on the reader */

.cv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--ink); }
.cv-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; font-size: 13px; font-weight: 600; }
.cv-title .cv-idx { font-weight: 900; font-stretch: 125%; font-size: 18px; letter-spacing: -.01em; }
.cv-title #cvTitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-title .cv-meta { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .7; white-space: nowrap; }
.cv-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cv-actions .btn { font-size: 11px; padding: .55em .8em; }
.cv-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); transition: background .2s, color .2s, transform .4s var(--ease-back); }
.cv-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }

.cv-body { position: relative; margin: 14px 18px 0; border: 2px solid var(--ink); border-radius: 3px; background: #fff; overflow: hidden; min-height: 0; }
.cv-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.cv-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; background: var(--paper); color: var(--ink); font-size: 14px; }
.cv-fallback[hidden] { display: none; }
.cv-fb-title { font-weight: 900; font-stretch: 125%; font-size: 24px; text-transform: uppercase; line-height: 1; }
.cv-fallback .links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.cv-foot { display: flex; justify-content: space-between; padding: 10px 18px 14px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
body.cv-open { overflow: hidden; }

@media (max-width: 640px) {
    .cv-dialog { height: calc(100dvh - 20px); }
    .cv-head { flex-wrap: wrap; padding: 12px 14px; }
    .cv-title { width: 100%; }
    .cv-title .cv-meta { display: none; }
    .cv-actions { width: 100%; justify-content: space-between; }
    .cv-body { margin: 12px 14px 0; }
    .cv-foot span:first-child { display: none; }
}

/* =====================================================================
   PROJECTS — featured + expandable archive
   ===================================================================== */
.more-card {
    text-align: left;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    color: var(--ink);
    cursor: pointer;
}
.more-card .card-top { width: 100%; }
.more-num {
    font-family: var(--font-num);
    font-size: clamp(72px, 22cqw, 128px);
    line-height: .85;
    letter-spacing: -.02em;
    align-self: end;
}
.more-num .more-plus { font-family: var(--font); font-weight: 900; font-stretch: 125%; font-size: .55em; vertical-align: top; margin-right: .06em; color: var(--paper); }
.more-label { display: inline-flex; align-items: center; gap: .5em; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-top: 1px solid var(--ink); padding-top: 14px; width: 100%; }
.more-label .arr { width: .9em; height: .9em; transition: transform .45s var(--ease-out); }
.more-card:hover .more-label .arr { transform: translate(2px, -2px); }
.more-card[aria-expanded="true"] .more-label .arr { transform: rotate(135deg); }
.more-card .when-open { display: none; }
.more-card[aria-expanded="true"] .when-open { display: inline; }
.more-card[aria-expanded="true"] .when-closed { display: none; }
.more-card:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.more-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .75s var(--ease-io); }
.more-wrap.open { grid-template-rows: 1fr; }
.more-inner { min-height: 0; overflow: hidden; }
.more-wrap.open .more-inner { overflow: visible; }
.projects-more { padding-top: 14px; }
.more-wrap:not(.open) .projects-more { visibility: hidden; }

/* hero: GitHub links on the bottom strip */
.hero-orange .barcode, .hero-orange .code { color: var(--ink); }
.hero-orange .barcode .tiny { transition: opacity .2s; }
.hero-orange .barcode svg { transition: transform .4s var(--ease-out); }
.hero-orange .barcode:hover svg { transform: scaleY(1.12); }
.hero-orange .barcode:hover .tiny { text-decoration: underline; text-underline-offset: .15em; }
.hero-orange .code:hover { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.hero-orange .barcode:focus-visible, .hero-orange .code:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
