/* Jhapendra Kandel — the front page.
   A newsroom language: near-black canvas, a heavy condensed masthead,
   saturated colour-block story tiles, mono timestamps, flat 1px borders.
   No gradients, no glows, no glass. */

:root {
    --bg: #111111;
    --surface: #1b1b1b;
    --surface-2: #242424;
    --line: #333333;
    --ink: #ffffff;
    --ink-soft: #e6e6e6;
    --muted: #a6a6a6;
    --on-light: #111111;

    --yellow: #ffd60a;
    --orange: #ff7a1a;
    --red: #d81f26;
    --mint: #6ff2c8;
    --blue: #2457e6;
    --paper: #e7e5e0;

    --display: "Archivo", "Arial Narrow", Impact, sans-serif;
    --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --serif: "Erode", "Iowan Old Style", Georgia, serif; /* merged sections only */
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* taste-skill-ignore: code fragments only */

    --pad: clamp(16px, 4vw, 56px);
    --r-lg: 28px;
    --r-md: 18px;
    --ease: cubic-bezier(.2, .7, .1, 1);

    --t-body: clamp(1rem, .95rem + .2vw, 1.125rem);
    --t-lede: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
    --t-sec: clamp(3.5rem, 2rem + 7vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-color: var(--line) var(--bg); scrollbar-width: thin; }
[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: var(--t-body);
    line-height: 1.55;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--on-light); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--yellow); color: var(--on-light); padding: 10px 16px; border-radius: 999px;
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Shared type */
.display {
    font-family: var(--display);
    font-weight: 900;
    font-stretch: 62%;
    text-transform: uppercase;
}
.kicker {
    font-family: var(--mono);
    font-size: .8125rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
.sec-h {
    font-family: var(--display);
    font-stretch: 62%;
    font-weight: 900;
    font-size: var(--t-sec);
    line-height: .82;
    text-transform: uppercase;
    letter-spacing: -.01em;
}
.text-link {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    font-weight: 700;
    transition: text-underline-offset .25s var(--ease), color .2s;
}
.text-link:hover { text-underline-offset: 9px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 26px;
    border-radius: 999px;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn-solid { background: var(--yellow); color: var(--on-light); }
.btn-solid:hover { background: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-light); }
.btn-ink { background: var(--on-light); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--on-light); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Wire (live ticker) ---------- */
.wire {
    display: flex; align-items: stretch;
    height: 40px;
    background: var(--yellow); color: var(--on-light);
    font-size: .875rem; font-weight: 600;
    overflow: hidden;
}
.wire:not(.is-ready) { display: none; }
.wire-track { flex: 1; overflow: hidden; display: flex; align-items: center; min-width: 0; }
.wire-list { display: flex; white-space: nowrap; will-change: transform; padding-left: 18px; }
.wire-list li { display: flex; align-items: center; }
.wire-list li::after { content: "/"; margin: 0 22px; opacity: .45; }
.wire-list a { text-decoration: none; }
.wire-list a:hover { text-decoration: underline; }
.wire-list time { font-weight: 800; margin-right: 10px; }
.wire.is-moving .wire-list { animation: wire var(--wire-dur, 60s) linear infinite; }
.wire.is-moving:hover .wire-list, .wire.is-moving:focus-within .wire-list { animation-play-state: paused; }
@keyframes wire { to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px var(--pad);
    background: var(--bg);
}
.nav-mark {
    font-family: var(--display); font-stretch: 62%; font-weight: 900;
    font-size: 1.875rem; line-height: 1; text-decoration: none; letter-spacing: .02em;
    transition: color .2s;
}
.nav-mark:hover { color: var(--yellow); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    padding: 9px 13px; border-radius: 999px;
    text-decoration: none; font-weight: 600; font-size: .9375rem;
    transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--surface-2); }
.nav-links a.is-here { color: var(--yellow); }
.nav-links .nav-cta { background: var(--ink); color: var(--on-light); margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--yellow); }
.menu-btn {
    display: none;
    min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: var(--ink); color: var(--on-light); border: 0; font-weight: 700; cursor: pointer;
}

/* ---------- Masthead ---------- */
.mast { padding: clamp(20px, 3vw, 40px) var(--pad) clamp(40px, 6vw, 80px); }
.mast-name {
    font-family: var(--display);
    font-stretch: 62%;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 21.4vw;
    line-height: .8;
    letter-spacing: -.015em;
    margin: 0 0 clamp(24px, 3vw, 44px) -.03em;
}
.mast-line { display: block; overflow: hidden; padding: .02em 0 .03em; }
.mast-word { display: inline-block; }
.mast-line:nth-child(2) .mast-word { color: var(--yellow); }
.mast-jk {
    display: inline-block; vertical-align: top;
    font-weight: 700; text-transform: none; font-stretch: 100%; color: var(--muted);
    font-size: .2em; line-height: 1; margin: .16em 0 0 .16em;
}
.mast-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, .8fr);
    gap: clamp(16px, 2vw, 28px);
    align-items: stretch;
}
.mast-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; background: var(--surface); }
.mast-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.mast-deck { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 4px 0; }
.mast-lede { font-size: var(--t-lede); line-height: 1.3; font-weight: 500; max-width: 34ch; }
.mast-motto { font-stretch: 75%; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.08; max-width: 24ch; }
.mast-motto span { color: var(--muted); transition: color .6s var(--ease); }
.mast-motto span.is-on { color: var(--yellow); }
.mast-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mast-status {
    display: flex; flex-direction: column; justify-content: flex-start; gap: 14px;
    padding: 24px; border-radius: var(--r-lg);
    background: var(--mint); color: var(--on-light);
}
.status-on { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--on-light); position: relative; flex: none; }
.pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--on-light);
    animation: ring 2s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.status-big {
    font-family: var(--display); font-stretch: 62%; font-weight: 900;
    font-size: clamp(2.75rem, 2rem + 2.5vw, 4.5rem); line-height: .9;
    font-variant-numeric: tabular-nums;
}
.status-small { font-size: .9375rem; font-weight: 600; }

/* ---------- Facts ---------- */
.facts { padding: 0 var(--pad) clamp(72px, 9vw, 140px); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.fact {
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    min-height: 250px; padding: 24px; border-radius: var(--r-lg);
    will-change: transform;
}
@media (hover: none), (prefers-reduced-motion: reduce) { .fact { transition: transform .4s var(--ease); } .fact:hover { transform: translateY(-6px) rotate(-1deg); } }
.fact-num {
    font-family: var(--display); font-stretch: 62%; font-weight: 900;
    font-size: clamp(4rem, 3rem + 4vw, 7.5rem); line-height: .82; text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}
.fact-num sup { font-size: .35em; vertical-align: top; margin-left: .05em; position: relative; top: .3em; }
.fact-say { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; max-width: 24ch; }
.fact-yellow { background: var(--yellow); color: var(--on-light); }
.fact-orange { background: var(--orange); color: var(--on-light); }
.fact-red { background: var(--red); }
.fact-mint { background: var(--mint); color: var(--on-light); }

/* ---------- About ---------- */
.about { padding: 0 var(--pad) clamp(80px, 10vw, 160px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-h {
    font-family: var(--display); font-stretch: 70%; font-weight: 800;
    font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5.25rem); line-height: .92; letter-spacing: -.01em;
    margin-bottom: 28px; max-width: 18ch;
}
.about-text { font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.6; max-width: 60ch; color: var(--ink-soft); }
.about-lists { display: grid; gap: 16px; }
.about-list { padding: 26px; border-radius: var(--r-lg); background: var(--surface); }
.about-list-alt { background: var(--paper); color: var(--on-light); }
.about-list h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 12px; color: var(--yellow); }
.about-list-alt h3 { color: var(--on-light); }
.about-list ul { display: grid; gap: 14px; }
.about-list li {
    font-family: var(--display); font-stretch: 80%; font-weight: 700;
    font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); line-height: 1.15;
    padding-left: 22px; position: relative;
}
.about-list li::before {
    content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; border-radius: 50%; background: currentColor;
}

/* ---------- Work: the stream ---------- */
.work { padding: 0 0 clamp(80px, 10vw, 160px); }
.work-head { padding: 0 var(--pad) clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 24px; }
.work-head .kicker { grid-column: 1 / -1; }
.work-hint { font-size: .9375rem; color: var(--muted); max-width: 28ch; text-align: right; }
.stream { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0 var(--pad); }
.story { --go-bg: var(--on-light); --go-fg: var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.story-link {
    display: flex; flex-direction: column; height: 100%;
    padding: 14px; text-decoration: none; color: inherit;
}
.story-pic { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; background: rgba(0, 0, 0, .25); }
.story-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
a.story-link:hover .story-pic img { transform: scale(1.05); }
.story-copy { display: flex; flex-direction: column; gap: 12px; padding: 22px 10px 10px; flex: 1; }
.story-tag { font-size: .9375rem; font-weight: 500; margin-top: -6px; }
.story h3 {
    font-family: var(--display); font-stretch: 62%; font-weight: 900;
    font-size: clamp(2.5rem, 1.6rem + 3vw, 4.75rem); line-height: .86; text-transform: uppercase;
}
.story-copy h3 + p { font-size: 1.0625rem; line-height: 1.5; max-width: 46ch; }
.story-stack { font-weight: 700; font-size: .9375rem; }
.story-go {
    margin-top: auto; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 46px; padding: 0 22px; border-radius: 999px;
    background: var(--go-bg); color: var(--go-fg); font-weight: 700;
    transition: transform .25s var(--ease);
}
.story-go::after { content: "\2192"; transition: transform .25s var(--ease); }
a.story-link:hover .story-go { transform: translateY(-2px); }
a.story-link:hover .story-go::after { transform: translateX(5px); }
.story-yellow { background: var(--yellow); color: var(--on-light); }
.story-orange { background: var(--orange); color: var(--on-light); }
.story-red { background: var(--red); color: var(--ink); }
.story-mint { background: var(--mint); color: var(--on-light); }
.story-white { background: var(--paper); color: var(--on-light); }
.story-blue { background: var(--blue); color: var(--ink); --go-bg: var(--ink); --go-fg: var(--on-light); }

/* Horizontal mode: switched on by script on wide screens */
.is-h .stream-pin { overflow: hidden; }
.is-h .stream { display: flex; gap: 24px; width: max-content; }
.is-h .story { width: min(66vw, 1040px); height: min(calc(100vh - 150px), 660px); }
.is-h .story-link { flex-direction: row; gap: 10px; padding: 16px; }
.is-h .story-pic { flex: 0 0 52%; aspect-ratio: auto; height: 100%; }
.is-h .story-copy { padding: 18px 20px 10px; }

/* Also built */
.also { padding: clamp(56px, 7vw, 100px) var(--pad) 0; }
.also-h {
    font-family: var(--display); font-stretch: 62%; font-weight: 900;
    font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); line-height: .86; text-transform: uppercase; margin-bottom: 24px;
}
.also-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.also-list li {
    display: flex; flex-direction: column; gap: 10px;
    padding-left: 20px; box-shadow: inset 4px 0 0 var(--yellow); /* taste-skill-ignore: a 4px colour bar marks each item, not a divider */
    transition: box-shadow .3s var(--ease);
}
.also-list li:hover { box-shadow: inset 10px 0 0 var(--yellow); }
.also-cat { font-size: .9375rem; color: var(--muted); order: 3; }
.also-list strong { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.75rem; line-height: 1; }
.also-list strong + span { color: var(--ink); line-height: 1.5; }
.also-list em { font-style: normal; font-weight: 700; color: var(--yellow); font-size: .9375rem; margin-top: auto; }

/* ---------- Method ---------- */
.method { padding: clamp(64px, 8vw, 120px) var(--pad); background: var(--yellow); color: var(--on-light); transition: background-color .5s var(--ease), color .5s; }
.method[data-stage="1"] { background: var(--red); color: var(--ink); }
.method[data-stage="2"] { background: var(--orange); color: var(--on-light); }
.method[data-stage="3"] { background: var(--mint); color: var(--on-light); }
.method .kicker { color: inherit; }
.method.is-pinned { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; box-sizing: border-box; }
.method.is-pinned .method-inner { width: 100%; }
.method-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.method-clause {
    font-family: var(--display); font-stretch: 62%; font-weight: 900;
    font-size: clamp(3rem, 1.8rem + 4.6vw, 6.5rem); line-height: .84; text-transform: uppercase;
    min-height: 1.68em;
}
.method-clause span { display: inline-block; }
.method-tools { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 500; max-width: 44ch; min-height: 3.2em; }
.method-control { margin-top: 28px; }
#stage { width: 100%; appearance: none; -webkit-appearance: none; height: 44px; background: transparent; cursor: pointer; margin: 0; color: inherit; }
#stage::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 30%, transparent); }
#stage::-moz-range-track { height: 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 30%, transparent); }
#stage::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -13px; border-radius: 50%; background: var(--on-light); border: 4px solid var(--ink); transition: transform .2s; }
#stage::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--on-light); border: 4px solid var(--ink); }
#stage:active::-webkit-slider-thumb { transform: scale(1.15); }
.method-stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.method-stops button {
    min-height: 44px; border-radius: 999px; border: 2px solid currentColor; background: transparent;
    font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.method-stops button:hover { transform: translateY(-2px); }
.method-stops button.is-on { background: var(--on-light); color: var(--ink); border-color: var(--on-light); }
.term { background: var(--bg); color: var(--ink); border-radius: var(--r-lg); padding: 18px 22px 26px; min-height: 290px; }
.term-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.term-bar span:first-child { background: var(--red); }
.frag {
    font-family: var(--mono); font-size: clamp(.8125rem, .76rem + .2vw, .9375rem); line-height: 1.7;
    white-space: pre-wrap; word-break: break-word; margin: 0;
    display: none;
}
.frag.is-on { display: block; animation: type-in .5s var(--ease); }
@keyframes type-in { from { opacity: 0; transform: translateY(10px); } }
.frag .c { color: var(--mint); }

/* ---------- Manuscript ---------- */
.manuscript { padding: 0 0 clamp(80px, 10vw, 140px); }
.manuscript-strip { overflow: hidden; background: var(--paper); }
.manuscript-strip img { height: clamp(140px, 16vw, 240px); width: auto; max-width: none; }
.manuscript figcaption { padding: 20px var(--pad) 0; font-stretch: 80%; font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.75rem); line-height: 1.2; max-width: 48ch; }

/* ---------- Hack Me ---------- */
.hackme {
    margin: 0 var(--pad) clamp(80px, 10vw, 160px);
    padding: clamp(28px, 4vw, 56px);
    border-radius: var(--r-lg);
    background: var(--red); color: var(--ink);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
    overflow: hidden;
}
.hackme .kicker { color: var(--ink); }
.hackme-h { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(4rem, 2.5rem + 7vw, 10rem); line-height: .8; text-transform: uppercase; margin-bottom: 22px; }
.hackme-sub { font-size: 1.25rem; font-weight: 800; margin: -8px 0 14px; }
.hackme-sub + p { font-size: 1.125rem; line-height: 1.55; max-width: 50ch; }
.hackme-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 28px; }
.hackme-pic { border-radius: var(--r-md); overflow: hidden; border: 2px solid var(--on-light); }
.hackme-pic img { transition: transform .6s var(--ease); }
.hackme-pic:hover img { transform: scale(1.03); }

/* ---------- Credentials ---------- */
.creds { padding: 0 var(--pad) clamp(80px, 10vw, 160px); }
.creds .sec-h { margin-bottom: clamp(28px, 4vw, 52px); }
.creds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cred-edu { padding: 28px; border-radius: var(--r-lg); background: var(--paper); color: var(--on-light); display: flex; flex-direction: column; gap: 14px; }
.cred-edu h3 { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1; }
.cred-when { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--on-light); color: var(--ink); font-weight: 700; font-size: .875rem; }
.cred-h { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; color: var(--yellow); }
.cred-list { display: grid; gap: 6px; }
.cred-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); transition: transform .3s var(--ease), background-color .3s; }
.cred-list li:hover { transform: translateX(6px); background: var(--surface-2); }
.cred-list strong { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.cred-list span { color: var(--ink-soft); font-size: .9375rem; }
.cred-list .cred-hi { color: var(--yellow); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { padding: clamp(64px, 9vw, 140px) var(--pad); background: var(--yellow); color: var(--on-light); }
.contact .kicker { color: inherit; }
.contact-h { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(3.25rem, 1.8rem + 6vw, 8.5rem); line-height: .84; text-transform: uppercase; max-width: 16ch; margin-bottom: clamp(36px, 5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 18px; font-size: 1.125rem; }
.contact-side > p:first-child { max-width: 40ch; }
.contact-mail {
    font-family: var(--display); font-stretch: 70%; font-weight: 800;
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2.5rem); line-height: 1.05; overflow-wrap: anywhere;
    text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
    transition: text-underline-offset .25s var(--ease);
    align-self: flex-start;
}
.contact-mail:hover { text-underline-offset: 10px; }
.contact-place { font-weight: 700; }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-social a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 2px solid var(--on-light); text-decoration: none; font-weight: 700; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.contact-social a:hover { background: var(--on-light); color: var(--yellow); transform: translateY(-2px); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--on-light); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); /* taste-skill-ignore: form fields */
    font-size: 1rem; transition: border-color .2s, background-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); background: var(--surface-2); }
.field textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; background: var(--yellow); color: var(--on-light); }
.contact-form .btn:hover { background: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 100px) var(--pad) 28px; overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-jk { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 3.5rem; line-height: .9; color: var(--yellow); margin-bottom: 10px; }
.footer-say p:last-child { font-stretch: 80%; font-weight: 700; font-size: 1.375rem; line-height: 1.15; max-width: 22ch; }
.footer-cols nav { display: flex; flex-direction: column; gap: 4px; }
.footer-cols nav p { font-size: .9375rem; font-weight: 800; color: var(--yellow); margin-bottom: 6px; }
.footer-cols nav a { text-decoration: none; font-weight: 600; padding: 4px 0; transition: color .2s, transform .25s var(--ease); align-self: flex-start; }
.footer-cols nav a:hover { color: var(--yellow); transform: translateX(4px); }
.wordmark {
    margin: clamp(32px, 5vw, 64px) 0 16px;
    font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
    font-size: 12.6vw; line-height: .8; white-space: nowrap; color: var(--yellow);
    letter-spacing: -.01em; overflow: hidden;
}
.wordmark span { display: inline-block; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; font-size: .875rem; color: var(--muted); }
.back-top { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.back-top:hover { background: var(--ink); color: var(--on-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav-links a { padding: 8px 9px; font-size: .875rem; }
}
@media (max-width: 1080px) {
    .mast-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mast-status { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .also-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .creds-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cred-edu { grid-column: 1 / -1; }
    .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-say { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .menu-btn { display: inline-flex; align-items: center; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--pad) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 4px; font-size: 1.25rem; border-radius: 0; }
    .nav-links .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
}
@media (max-width: 899px) {
    .about-grid, .method-inner, .hackme, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .stream { grid-template-columns: minmax(0, 1fr); }
    .work-head { grid-template-columns: 1fr; }
    .work-hint { display: none; }
}
@media (max-width: 640px) {
    .mast-name { font-size: 20.5vw; }
    .mast-jk { display: block; margin: .3em 0 0; font-size: .22em; }
    .mast-grid { grid-template-columns: minmax(0, 1fr); }
    .mast-photo { min-height: 0; aspect-ratio: 16 / 10; }
    .mast-status { flex-direction: column; align-items: flex-start; }
    .fact { min-height: 190px; padding: 20px; }
    .fact-say { font-size: .9375rem; }
    .also-list { grid-template-columns: minmax(0, 1fr); }
    .creds-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-form { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Tech Briefing (homepage block + /tech/ page) ---------- */
.techb { padding: clamp(48px, 6vw, 96px) var(--pad); }
.techb:not(.is-ready) { display: none; }
.techb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
.techb-h { font-size: clamp(3rem, 1.5rem + 6vw, 7rem); }
.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tech-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tcard { padding: 24px; border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; gap: 12px; transition: background-color .3s, transform .4s var(--ease); }
.tcard:hover { background: var(--surface-2); transform: translateY(-4px); }
.tcard h3 { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.05; }
.tcard-sum { color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; }
.tcard-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .875rem; }
.tcard-foot time { font-weight: 700; color: var(--yellow); }
.tcard-foot a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tcard-foot a:hover { color: var(--yellow); }
.tech-main { padding: clamp(40px, 6vw, 80px) var(--pad) clamp(48px, 6vw, 96px); max-width: 1500px; margin: 0 auto; }
.tech-h { margin-bottom: clamp(20px, 3vw, 32px); }
.tech-lede { color: var(--ink-soft); max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.tech-status { margin-top: 16px; color: var(--muted); min-height: 1.5em; }
.tech-morewrap { margin-top: 12px; text-align: center; }
.tech-foot { padding: 32px var(--pad) 56px; color: var(--muted); }
@media (max-width: 1080px) { .tech-grid, .tech-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tech-grid, .tech-grid-4 { grid-template-columns: minmax(0, 1fr); gap: 14px; } .tcard { padding: 20px; } }

/* ================= Polish pass 2026-11-13 ================= */
/* Scroll progress under the nav (CSS scroll timeline, progressive) */
@supports (animation-timeline: scroll()) {
    .site-nav::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
        background: var(--yellow); transform: scaleX(0); transform-origin: left center;
        animation: read-progress linear both; animation-timeline: scroll(root);
    }
    @keyframes read-progress { to { transform: scaleX(1); } }
}

/* Nav: underline sweep + active marker */
@media (min-width: 961px) {
    .nav-links a:not(.nav-cta) { position: relative; }
    .nav-links a:not(.nav-cta)::after {
        content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
        background: var(--yellow); transform: scaleX(0); transform-origin: left center;
        transition: transform .3s var(--ease);
    }
    .nav-links a:not(.nav-cta):hover::after, .nav-links a.is-here::after { transform: scaleX(1); }
    .nav-links a:not(.nav-cta):hover { background: transparent; }
}
.nav-links a:active { transform: scale(.97); }
.nav-links a[aria-current], .nav-links a.is-here { color: var(--yellow); }

/* Wire: softened edges, label rhythm, bigger hit area */
.wire-list a { padding: 10px 0; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.wire-list time { font-variant-numeric: tabular-nums; letter-spacing: .02em; opacity: .75; }

/* Buttons and focus */
.btn:focus-visible, .back-top:focus-visible { outline-offset: 4px; border-radius: 999px; }
.method :focus-visible, .contact :focus-visible, .wire :focus-visible { outline-color: var(--on-light); }
.hackme :focus-visible { outline-color: var(--ink); }
.nav-links a:focus-visible { border-radius: 999px; }
.btn-line:active, .btn-solid:active { transition-duration: .08s; }

/* Masthead */
.mast-photo { isolation: isolate; }
.mast-lede::first-line { color: var(--ink); }
.status-small { opacity: .8; }

.story-copy h3 { transition: letter-spacing .4s var(--ease); }
a.story-link:hover h3 { letter-spacing: .01em; }
.story-link:focus-visible { outline-offset: -6px; border-radius: var(--r-lg); outline-color: var(--ink); }
.story-yellow .story-link:focus-visible, .story-mint .story-link:focus-visible, .story-orange .story-link:focus-visible, .story-white .story-link:focus-visible { outline-color: var(--on-light); }
.also-list li { padding-top: 2px; padding-bottom: 2px; }
.also-list strong { transition: color .25s; }
.also-list li:hover strong { color: var(--yellow); }

/* Method */
.method-stops button:focus-visible { outline-offset: 2px; }
#stage:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; border-radius: 999px; }
.term-bar span:nth-child(2) { background: var(--yellow); }
.term-bar span:nth-child(3) { background: var(--mint); }

/* Manuscript */
.manuscript figcaption { border-left: 4px solid var(--yellow); margin-left: var(--pad); padding: 4px 0 4px 18px; }

/* Hack Me */
.hackme-links .btn { background: var(--on-light); color: var(--ink); }
.hackme-links .btn:hover { background: var(--ink); color: var(--on-light); }
.hackme .text-link:hover { text-underline-offset: 9px; }

/* Credentials */
.cred-list li:focus-within { background: var(--surface-2); }
.cred-list li { border-left: 3px solid transparent; }
.cred-list li:hover { border-left-color: var(--yellow); }

/* Contact form: fields, states, note */
.field label { transition: color .2s; }
.field:focus-within label { color: var(--yellow); }
.field input, .field textarea { min-height: 48px; border-color: #4a4a4a; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field input:hover, .field textarea:hover { border-color: #6a6a6a; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--yellow); outline: 2px solid var(--yellow); outline-offset: 2px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--orange); border-width: 2px; padding: 13px 15px; }
.field input:user-valid, .field textarea:user-valid { border-color: var(--mint); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--surface) inset; /* taste-skill-ignore: autofill override */ }
.contact-form .btn { min-height: 56px; padding: 0 34px; }
.contact-form .btn:focus-visible { outline-color: var(--yellow); }
.contact-form .btn[disabled] { opacity: .6; transform: none; }
.form-note { font-size: .8125rem; line-height: 1.5; color: var(--muted); margin: 0; max-width: 52ch; }
.contact-mail:focus-visible { outline-offset: 6px; }

/* Footer: finished wordmark + legal row */
.site-footer { padding-bottom: 20px; }
.footer-cols nav a { min-height: 32px; display: inline-flex; align-items: center; }
.footer-cols nav a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color .2s, transform .25s var(--ease), text-decoration-color .25s; }
.footer-cols nav a:hover { text-decoration-color: currentColor; }
.wordmark { margin: clamp(36px, 5vw, 72px) 0 8px; padding-bottom: .04em; line-height: .82; text-align: left; user-select: none; }
.footer-legal { margin-top: 0; padding: 22px 0 0; font-size: .875rem; }
.footer-legal p { color: var(--muted); }
.back-top:hover { background: var(--yellow); color: var(--on-light); }
.back-top:active { transform: scale(.97); }

/* Initial state set by JS only (pages read fully without it) */

@media (pointer: coarse) {
    .footer-cols nav a { min-height: 44px; }
    .wire-list a { padding: 12px 0; }
}
@media (max-width: 640px) {
    .site-footer { padding-top: 48px; }
    .footer-jk { font-size: 3rem; }
    .footer-legal { flex-direction: column; align-items: flex-start; }
    .wordmark { font-size: 12.2vw; }
    .contact-form .btn { width: 100%; justify-self: stretch; }
    .manuscript figcaption { margin-left: var(--pad); }
}
@media (prefers-reduced-motion: reduce) {
    .site-nav::after { animation: none; transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .tcard:hover { transform: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Loading screen (homepage, first visit per session) ---------- */
.loader { display: none; }
.preload .loader {
    display: grid; position: fixed; inset: 0; z-index: 9999; background: var(--yellow); color: #111;
    place-items: center; pointer-events: none;
}
.loader-jk {
    font-family: "Archivo", sans-serif; font-stretch: 62%; font-weight: 900; text-transform: uppercase;
    font-size: 28vw; line-height: .8; letter-spacing: -.02em;
}
.loader-n {
    position: absolute; left: 16px; bottom: 18px; font-family: "Archivo", sans-serif; font-weight: 800;
    font-size: clamp(14px, 2vw, 22px); font-variant-numeric: tabular-nums;
}
.loader-bar {
    position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #111;
    transform: scaleX(0); transform-origin: left;
}
@media (prefers-reduced-motion: reduce) { .preload .loader { display: none; } }

/* ================= Merged from /Page-Dash (2026-11-14) =================
   Skills board, journey, certificate sheet and the contact form. Serif = Erode. */
:root { --s-small: clamp(.8125rem, .79rem + .1vw, .875rem); --s-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); --paper-2: #d4d3ce; --muted-p: #45433e; }

/* ---------- Skills: the board ---------- */
.skills {
    padding: 0 var(--pad) clamp(80px, 10vw, 160px);
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
}
.skills-h {
    grid-column: 1 / 6; position: sticky; top: 100px;
    font-family: var(--serif); font-weight: 500; font-size: clamp(4.5rem, 9.6vw, 9.5rem); line-height: .82; letter-spacing: -.045em;
}
.board { grid-column: 6 / 13; display: grid; gap: 6px; }
.board li { background: var(--surface); }
.b-fill {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: calc(var(--v) * 1%); min-width: max-content; min-height: 54px; padding: 0 18px;
    background: var(--yellow); color: var(--on-light); white-space: nowrap;
}
.board li[data-v="92"] { --v: 92; } .board li[data-v="90"] { --v: 90; } .board li[data-v="88"] { --v: 88; }
.board li[data-v="85"] { --v: 85; } .board li[data-v="82"] { --v: 82; } .board li[data-v="80"] { --v: 80; }
.board li[data-v="78"] { --v: 78; } .board li[data-v="75"] { --v: 75; } .board li[data-v="70"] { --v: 70; }
.b-name { font-weight: 700; font-size: 1rem; }
.b-val { font-family: var(--serif); font-weight: 600; font-size: var(--s-lead); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 899px) {
    .skills { display: block; }
    .skills-h { position: static; margin-bottom: 24px; }
    .b-fill { padding: 0 14px; }
    .b-name { font-stretch: 86%; }
}

/* ---------- Journey ---------- */
.journey {
    padding: clamp(80px, 10vw, 160px) var(--pad);
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
}
.journey-head { grid-column: 1 / 5; position: sticky; top: 100px; }
.journey-h { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.3rem + 3.2vw, 4rem); line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.journey-rail { display: block; width: 100%; height: 6px; margin-top: 28px; background: var(--surface); }
.journey-rail i { display: block; height: 100%; background: var(--yellow); transform-origin: left; }
.journey-list { grid-column: 6 / 13; display: grid; gap: clamp(48px, 5.4vw, 80px); }
.entry h3 { font-family: var(--serif); font-weight: 500; font-size: var(--s-lead); line-height: 1.15; letter-spacing: -.02em; }
.entry-time { margin-top: 6px; font-size: var(--s-small); font-weight: 700; color: var(--yellow); }
.entry-text { margin-top: 14px; max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { padding: 6px 12px; background: var(--surface); font-size: var(--s-small); font-weight: 600; }
.entry .text-link { margin-top: 12px; color: var(--yellow); }
.entry-pic figure { overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.entry-pic img { width: 100%; height: 100%; object-fit: cover; }
.pic-note { margin-top: 10px; font-size: var(--s-small); color: var(--muted); }
@media (max-width: 899px) {
    .journey { display: block; }
    .journey-head { position: static; margin-bottom: 40px; }
}

/* ---------- Credentials: the certificate sheet under the listing ---------- */
.programme {
    width: min(100%, 860px); margin: clamp(56px, 7vw, 104px) auto 0; padding: clamp(32px, 5vw, 72px) clamp(22px, 5vw, 72px);
    background: var(--paper); color: var(--on-light); text-align: center; transform: rotate(-1deg);
}
.prog-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.3rem + 3.2vw, 4rem); line-height: .98; letter-spacing: -.025em; margin-bottom: clamp(28px, 3.6vw, 48px); }
.prog-tag { display: inline-block; padding: 4px 12px; background: var(--on-light); color: var(--paper); font-size: var(--s-small); font-weight: 700; margin-bottom: 16px; }
.prog-main { font-family: var(--serif); font-weight: 500; font-size: var(--s-lead); line-height: 1.15; letter-spacing: -.015em; }
.prog-when { font-size: var(--s-small); font-weight: 700; margin: 4px 0 10px; }
.prog-block > p:last-child { max-width: 52ch; margin-inline: auto; }
.prog-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: clamp(36px, 4vw, 56px); }
.prog-list { display: grid; gap: 20px; }
.prog-list li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.prog-list strong { font-family: var(--serif); font-weight: 600; font-size: var(--s-lead); line-height: 1.2; letter-spacing: -.01em; }
.prog-list span { font-size: var(--s-small); color: var(--muted-p); }
.prog-list mark { background: var(--yellow); color: var(--on-light); font-size: var(--s-small); font-weight: 700; margin-top: 4px; padding: 2px 8px; }
@media (max-width: 599px) { .prog-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact: the coupon form on the yellow field ---------- */
.contact-form.coupon-form {
    position: relative; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: center;
    padding: clamp(28px, 4vw, 56px); border-radius: 0; border-left: 6px dotted var(--yellow);
    background: var(--paper); color: var(--on-light);
}
.coupon-form::before, .coupon-form::after { /* the two notches */
    content: ""; position: absolute; left: -3px; width: 32px; height: 32px; border-radius: 50%;
    background: var(--yellow); transform: translate(-50%, -50%);
}
.coupon-form::before { top: 0; }
.coupon-form::after { top: 100%; }
.coupon-form .field { display: grid; gap: 6px; }
.coupon-form .field label, .coupon-form .field:focus-within label { font-size: var(--s-small); font-weight: 700; color: var(--on-light); }
.coupon-form .field input, .coupon-form .field textarea {
    width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 0; background: var(--paper-2); color: var(--on-light);
    font-size: 1rem; transition: background-color .2s;
}
.coupon-form .field textarea { resize: vertical; min-height: 132px; }
.coupon-form .field input:hover, .coupon-form .field textarea:hover { background: #cfcabf; }
.coupon-form .field input:focus-visible, .coupon-form .field textarea:focus-visible { background: #fff; outline: 3px solid var(--on-light); outline-offset: 0; }
.coupon-form .field input:user-invalid, .coupon-form .field textarea:user-invalid { padding: 12px 16px; outline: 3px solid var(--red); outline-offset: 0; }
.coupon-form .field input:-webkit-autofill { -webkit-text-fill-color: var(--on-light); box-shadow: 0 0 0 100px var(--paper-2) inset; /* taste-skill-ignore: autofill override */ }
.contact-form.coupon-form .btn {
    width: 100%; min-height: 56px; margin-top: 6px; justify-self: stretch; gap: 10px; border-radius: 0;
    background: var(--on-light); color: var(--paper);
}
.contact-form.coupon-form .btn::after { content: "\2192"; transition: transform .3s var(--ease); }
.contact-form.coupon-form .btn:hover, .contact-form.coupon-form .btn:focus-visible { background: #000; color: var(--yellow); transform: none; }
.contact-form.coupon-form .btn:hover::after, .contact-form.coupon-form .btn:focus-visible::after { transform: translateX(5px); }
.contact-form.coupon-form .btn:focus-visible { outline-color: var(--on-light); border-radius: 0; }
.coupon-form .form-note { color: var(--muted-p); font-size: var(--s-small); }
@media (max-width: 899px) {
    .contact-form.coupon-form { border-left: 0; border-top: 6px dotted var(--yellow); }
    .coupon-form::before, .coupon-form::after { display: none; }
}
