:root {
    --paper: #ffffff;
    --paper-strong: #ffffff;
    --ink: #161514;
    --ink-soft: #4b4844;
    --ink-faint: #7a756d;
    --rule: rgba(22, 21, 20, 0.14);
    --rule-strong: rgba(22, 21, 20, 0.26);
    --accent: #7c141c;
    --accent-soft: rgba(124, 20, 28, 0.12);
    --shadow: 0 18px 40px rgba(22, 21, 20, 0.06);
    --display: "Newsreader", serif;
    --body: "Public Sans", sans-serif;
    --mono: "IBM Plex Mono", monospace;
    --chroma-warm: rgba(180, 20, 32, 0.88);
    --chroma-cool: rgba(28, 78, 210, 0.74);
    --chroma-warm-shadow: rgba(180, 20, 32, 0.46);
    --chroma-cool-shadow: rgba(28, 78, 210, 0.38);
    --chroma-glow: rgba(28, 78, 210, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    overflow-x: hidden;
}

body::before {
    display: none;
}

.paper-noise {
    display: none;
}

.paper-rule {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(22, 21, 20, 0.12) 8%, rgba(22, 21, 20, 0.12) 92%, transparent);
    pointer-events: none;
    z-index: -1;
}

.paper-rule-left {
    left: clamp(22px, 7vw, 92px);
}

.paper-rule-right {
    right: clamp(22px, 7vw, 92px);
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    margin: 0;
    padding: 16px max(24px, calc((100vw - 1200px) / 2)) 14px;
    background: rgba(8, 8, 8, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(18px);
}

.topbar-is-hidden {
    display: none;
}

.topbar-left {
    display: grid;
    gap: 3px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.brand,
.meta-kicker,
.meta-page,
.rail-label,
.section-kicker,
.note-label,
.article-type,
.article-subhead,
.article-stamp,
.note-sheet-label,
.essay-state {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.document-state {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.timezone-chip {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-top: 1px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    text-align: right;
}

.timezone-label {
    color: rgba(255, 255, 255, 0.48);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.timezone-value {
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
}

.timezone-chip-plain {
    padding-top: 0;
    padding-left: 0;
    border-left: 0;
    gap: 2px;
    margin-left: auto;
    text-align: right;
}

.timezone-chip-plain .timezone-label {
    color: var(--ink-faint);
}

.timezone-chip-plain .timezone-value {
    color: var(--ink);
}

.nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 2px;
}

.nav a,
.inline-link,
.text-link,
.clean-list-links a {
    position: relative;
    text-decoration: none;
}

.nav a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.94rem;
    font-weight: 500;
}

.nav a:hover,
.nav a:focus-visible {
    color: #ffffff;
}

.nav a::after,
.inline-link::after,
.text-link::after,
.clean-list-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.08em;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.18);
    transform-origin: left center;
    opacity: 0.28;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.inline-link:hover::after,
.inline-link:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.clean-list-links a:hover::after,
.clean-list-links a:focus-visible::after {
    transform: scaleX(1);
    opacity: 0.9;
}

.paper-shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 72px;
}

.hero-sheet,
.closing-sheet {
    padding: 28px 0 32px;
}

.hero-sheet {
    position: relative;
    overflow: clip;
}

.closing-sheet {
    border-top: 1px solid var(--rule-strong);
}

.sheet-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    color: var(--ink-faint);
}

.sheet-meta-hero {
    justify-content: space-between;
}

.meta-kicker {
    color: var(--accent);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--ink-faint);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.paper-article h3,
.essay-card h3,
.note-entry-title,
.post-title,
.closing-copy h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: none;
    font-size: clamp(4rem, 9vw, 7.2rem);
    line-height: 0.9;
}

.chromatic-text {
    position: relative;
    isolation: isolate;
    z-index: 0;
    --chroma-before-size: 108px;
    --chroma-after-size: 142px;
}

.hero-summary,
.section-intro,
.article-summary,
.article-note,
.essay-card p,
.profile-block p,
.closing-copy p {
    color: var(--ink-soft);
    line-height: 1.72;
}

.hero-inline-link {
    display: inline-block;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 21, 20, 0.22);
    transition:
        color 160ms ease,
        border-color 160ms ease;
}

.hero-inline-link:hover,
.hero-inline-link:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

.hero-copy-home {
    position: relative;
    z-index: 2;
    max-width: min(52rem, calc(100% - 300px));
}

.hero-lead {
    max-width: 26rem;
    margin: 16px 0 0;
    font-family: var(--display);
    font-size: clamp(1.45rem, 2.7vw, 2.15rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero-summary {
    max-width: 42rem;
    margin: 14px 0 0;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
}

.hero-firesetorm {
    position: absolute;
    top: 62px;
    right: 6px;
    width: clamp(180px, 26vw, 310px);
    aspect-ratio: 1;
    pointer-events: auto;
    cursor: pointer;
    --fx: 50%;
    --fy: 50%;
    --firesetorm-size: 0px;
    z-index: 1;
}

.hero-firesetorm:focus-visible {
    outline: 1px solid rgba(145, 24, 24, 0.42);
    outline-offset: 6px;
}

.hero-sheet.is-firesetorm-active .hero-firesetorm,
.hero-firesetorm.is-firesetorm-active {
    --firesetorm-size: 94px;
}

.hero-firesetorm-layer {
    position: absolute;
    inset: 0;
    -webkit-mask-image: url("./firesetorm.svg");
    mask-image: url("./firesetorm.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0;
    will-change: opacity, transform, clip-path;
    transition:
        opacity 180ms ease,
        -webkit-clip-path 240ms ease,
        clip-path 240ms ease,
        transform 240ms ease;
    -webkit-clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%));
    clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%));
}

.hero-firesetorm-ink {
    background: rgba(22, 21, 20, 0.92);
}

.hero-firesetorm-pinned-ink {
    background: rgba(22, 21, 20, 0.92);
}

.hero-firesetorm-warm,
.hero-firesetorm-cool {
    background-repeat: no-repeat;
    transform-origin: center;
}

.hero-firesetorm-warm {
    background-image: radial-gradient(
        circle at calc(var(--fx, 50%) - 8px) calc(var(--fy, 50%) - 2px),
        var(--chroma-warm) 0,
        var(--chroma-warm) 16px,
        rgba(0, 0, 0, 0) 60px
    );
    filter: blur(0.18px) saturate(1.1);
    mix-blend-mode: multiply;
}

.hero-firesetorm-cool {
    background-image: radial-gradient(
        circle at calc(var(--fx, 50%) + 8px) calc(var(--fy, 50%) + 2px),
        var(--chroma-cool) 0,
        var(--chroma-cool) 18px,
        rgba(0, 0, 0, 0) 64px
    );
    filter: blur(0.24px) saturate(1.08);
    mix-blend-mode: screen;
}

.hero-sheet.is-firesetorm-active:not(.is-firesetorm-pinned) .hero-firesetorm-ink,
.hero-firesetorm.is-firesetorm-active:not(.is-firesetorm-pinned) .hero-firesetorm-ink,
.hero-sheet.is-firesetorm-active.is-firesetorm-pinned .hero-firesetorm-ink,
.hero-firesetorm.is-firesetorm-active.is-firesetorm-pinned .hero-firesetorm-ink {
    -webkit-clip-path: circle(var(--firesetorm-size) at var(--fx, 50%) var(--fy, 50%));
    clip-path: circle(var(--firesetorm-size) at var(--fx, 50%) var(--fy, 50%));
    opacity: 0.88;
}

.hero-sheet.is-firesetorm-pinned .hero-firesetorm-pinned-ink,
.hero-firesetorm.is-firesetorm-pinned .hero-firesetorm-pinned-ink {
    -webkit-clip-path: inset(-2px);
    clip-path: inset(-2px);
    opacity: 0.92;
}

.hero-sheet.is-firesetorm-active .hero-firesetorm-warm,
.hero-sheet.is-firesetorm-active .hero-firesetorm-cool,
.hero-firesetorm.is-firesetorm-active .hero-firesetorm-warm,
.hero-firesetorm.is-firesetorm-active .hero-firesetorm-cool {
    -webkit-clip-path: circle(var(--firesetorm-size) at var(--fx, 50%) var(--fy, 50%));
    clip-path: circle(var(--firesetorm-size) at var(--fx, 50%) var(--fy, 50%));
}

.hero-sheet.is-firesetorm-active .hero-firesetorm-warm,
.hero-sheet.is-firesetorm-active .hero-firesetorm-cool,
.hero-firesetorm.is-firesetorm-active .hero-firesetorm-warm,
.hero-firesetorm.is-firesetorm-active .hero-firesetorm-cool {
    opacity: 0.74;
}

.hero-sheet.is-firesetorm-active .hero-firesetorm-warm,
.hero-firesetorm.is-firesetorm-active .hero-firesetorm-warm {
    animation: chromaDriftA 3.4s ease-in-out infinite alternate;
}

.hero-sheet.is-firesetorm-active .hero-firesetorm-cool,
.hero-firesetorm.is-firesetorm-active .hero-firesetorm-cool {
    animation: chromaDriftB 4.2s ease-in-out infinite alternate;
}

.hero-link,
.text-link,
.inline-link {
    font-weight: 600;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.hero-email-link {
    align-items: flex-start;
    max-width: min(100%, 22rem);
}

.hero-link-label {
    position: relative;
}

.hero-email-link .hero-link-label {
    overflow-wrap: anywhere;
}

.hero-link-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.08em;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.18);
    transform-origin: left center;
    opacity: 0.28;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.hero-link:hover .hero-link-label::after,
.hero-link:focus-visible .hero-link-label::after {
    transform: scaleX(1);
    opacity: 0.9;
}

.hero-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.hero-link-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.paper-article,
.essay-card,
.profile-block {
    position: relative;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.paper-article::before,
.essay-card::before,
.profile-block::before {
    display: none;
}

.folder-deck {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
    gap: 0;
    box-sizing: border-box;
    margin-top: 18px;
    --folder-accent: #c86147;
    --folder-accent-soft: #f2d7ce;
}

.folder-deck[data-active-panel="notes"] {
    --folder-accent: #1f8a79;
    --folder-accent-soft: #d1eee7;
}

.folder-deck[data-active-panel="library"] {
    --folder-accent: #2c4a8a;
    --folder-accent-soft: #d4ddf0;
}

.folder-tabs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    overflow: visible;
    margin-right: -1px;
    position: relative;
    z-index: 2;
    align-self: start;
    position: sticky;
    top: 22px;
}

.folder-tabs::-webkit-scrollbar {
    display: none;
}

.folder-tab {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin-right: 0;
    margin-bottom: -1px;
    min-height: 84px;
    padding: 8px 0;
    border: 1px solid rgba(22, 21, 20, 0.22);
    border-right: none;
    background: var(--folder-fill);
    color: var(--folder-tab-ink);
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 16px, 16px 0);
    display: grid;
    place-items: center;
    text-align: center;
    cursor: pointer;
    transition:
        filter 180ms ease,
        background 180ms ease,
        color 180ms ease;
    z-index: 1;
    --folder-fill: #f9f6ef;
    --folder-fill-hover: #ece6da;
    --folder-tab-ink: #161514;
}

.folder-tab[data-folder-target="work"] {
    --folder-fill: #c86147;
    --folder-fill-hover: #b95640;
    --folder-tab-ink: #fff8f3;
}

.folder-tab[data-folder-target="notes"] {
    --folder-fill: #1f8a79;
    --folder-fill-hover: #177767;
    --folder-tab-ink: #f5fffc;
}

.folder-tab[data-folder-target="library"] {
    --folder-fill: #2c4a8a;
    --folder-fill-hover: #233d74;
    --folder-tab-ink: #eef2ff;
}

.folder-tab-copy {
    display: inline-block;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: center;
}

.folder-tab:hover,
.folder-tab:focus-visible {
    filter: none;
    background: var(--folder-fill-hover);
}

.folder-tab:focus-visible {
    outline: 2px solid rgba(22, 21, 20, 0.26);
    outline-offset: 4px;
}

.folder-tab.is-active {
    filter: none;
    z-index: 2;
}

.folder-tab::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 2px;
    background: var(--folder-fill);
    opacity: 0;
}

.folder-tab.is-active::after {
    opacity: 1;
}

.folder-tab-label {
    display: inline-block;
    margin-top: 0;
    font-family: var(--display);
    font-size: 0.96rem;
    line-height: 1;
}

.folder-shell {
    position: relative;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(22, 21, 20, 0.14);
    background: #ffffff;
    overflow: visible;
}

.folder-shell::before {
    display: none;
}

.folder-panels {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: 0;
    background: #ffffff;
}

.folder-panel {
    display: grid;
    gap: 24px;
    padding: 0 24px 32px;
    scroll-margin-top: 22px;
}

.folder-panel[hidden] {
    display: none !important;
}

.folder-panel + .folder-panel {
    border-top: 1px solid rgba(22, 21, 20, 0.1);
}

.folder-panel-overview {
    gap: 0;
}

.folder-section-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 12px;
    border-bottom: 1px solid rgba(22, 21, 20, 0.08);
    background: #ffffff;
}

#overview .folder-section-meta {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    background: #111111;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

#overview .folder-section-meta .meta-kicker,
#overview .folder-section-meta .meta-page {
    color: #ffffff;
}

.folder-panel-overview .hero-sheet {
    padding-top: 4px;
    padding-bottom: 8px;
}

.folder-work-grid {
    display: grid;
    gap: 20px;
}

.folder-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.folio-section {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 30px;
    padding: 32px 0 0;
    border-top: 1px solid var(--rule-strong);
}

.section-rail {
    display: grid;
    align-content: start;
    gap: 14px;
    padding-top: 6px;
}

.rail-label {
    color: var(--ink-faint);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.section-head {
    max-width: 52rem;
}

.section-head-split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    max-width: none;
}

.section-head-link {
    flex: none;
    margin-bottom: 0.35rem;
    white-space: nowrap;
}

.section-kicker,
.article-type,
.essay-state {
    color: var(--accent);
}

.section-head h2,
.closing-copy h2 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 4vw, 3.45rem);
    line-height: 0.97;
}

.section-intro {
    max-width: 40rem;
    margin-top: 14px;
}

.article-stack,
.essay-grid {
    display: grid;
    gap: 20px;
}

.article-stack {
    margin-top: 24px;
}

.paper-article,
.essay-card,
.profile-block {
    border: 1px solid rgba(22, 21, 20, 0.12);
}

.paper-article {
    padding: 22px 22px 20px;
}

.project-shot {
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid rgba(22, 21, 20, 0.1);
}

.project-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.project-shot video {
    display: block;
    width: 100%;
    height: auto;
}

.project-shot-cramit {
    padding: 14px;
    background:
        linear-gradient(90deg, #d34133 0 20%, #ee8d24 20% 40%, #2e5bff 40% 60%, #54aa71 60% 100%),
        #ffffff;
    background-size: 100% 4px, 100% 100%;
    background-repeat: no-repeat;
    background-position: top left, center;
}

.project-shot-cramit img {
    border: 1px solid rgba(22, 21, 20, 0.08);
}

.project-shot-brandscan {
    padding: 12px;
    background: #110f0f;
    border-color: rgba(124, 20, 28, 0.16);
}

.project-shot-brandscan img {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-shot-space {
    padding: 0;
    background: #040404;
    border-color: rgba(74, 88, 255, 0.2);
}

.project-shot-ideathon {
    padding: 10px;
    background: #f6f1ea;
    border-color: rgba(22, 21, 20, 0.12);
}

.project-shot-ideathon img {
    border: 1px solid rgba(22, 21, 20, 0.08);
}

.project-shot-ace {
    padding: 0;
    background: transparent;
    border-color: rgba(22, 21, 20, 0.1);
}

.project-shot-placeholder {
    display: grid;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 292px;
    padding: 18px;
    border: 1px solid rgba(22, 21, 20, 0.12);
    background: #fffdfa;
    align-content: end;
}

.project-shot-placeholder-label,
.project-shot-placeholder-note {
    display: block;
}

.project-shot-placeholder-label {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.project-shot-placeholder-note {
    color: var(--ink-faint);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-shot-codewraith {
    padding: 10px;
    background: #090909;
    border-color: rgba(128, 24, 24, 0.2);
}

.project-shot-codewraith img {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.paper-article h3,
.essay-card h3 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1;
    text-wrap: balance;
}

.article-stamp {
    margin: 0;
    color: var(--ink-faint);
}

.article-summary {
    max-width: 48rem;
    margin: 0;
}

.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 18px;
}

.article-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(22, 21, 20, 0.09);
}

.article-subhead {
    margin: 0 0 10px;
}

.article-list,
.clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-list li,
.clean-list li {
    padding: 9px 0;
    border-top: 1px solid rgba(22, 21, 20, 0.08);
}

.article-list li:first-child,
.clean-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.essay-card p,
.profile-block p {
    margin-bottom: 0;
}

.essay-card,
.profile-block {
    padding: 20px;
}

.github-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 12px 24px;
    background: #111111;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid #111111;
    transition:
        background 160ms ease,
        color 160ms ease;
}

.github-button:hover,
.github-button:focus-visible {
    background: #1c1c1c;
}

.github-button:focus-visible {
    outline: 2px solid rgba(22, 21, 20, 0.18);
    outline-offset: 4px;
}

.essay-link {
    text-decoration: none;
}

.essay-read {
    display: inline-flex;
    margin-top: 18px;
}

.essay-state {
    margin: 0 0 14px;
}

.essay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.blog-hero {
    padding-bottom: 18px;
}

.blog-hero-copy {
    max-width: 46rem;
}

.blog-list {
    display: grid;
    gap: 20px;
}

.note-entry {
    position: relative;
    padding: 22px 22px 20px;
    border: 1px solid rgba(22, 21, 20, 0.12);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.note-entry::before {
    display: none;
}

.note-entry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.note-entry-date,
.post-date,
.post-kicker {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.note-entry-title,
.post-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.note-entry-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 0.98;
}

.note-entry-title a {
    text-decoration: none;
}

.note-entry-summary,
.post-dek,
.post-body p,
.post-body li,
.post-caption {
    color: var(--ink-soft);
    line-height: 1.74;
}

.note-entry-summary {
    max-width: 46rem;
    margin: 14px 0 18px;
}

.note-entry-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.note-entry-tag {
    color: var(--ink-faint);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-shell {
    max-width: 48rem;
}

.post-back {
    display: inline-flex;
    margin-bottom: 18px;
}

.post-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.92;
    text-wrap: balance;
}

.post-dek {
    max-width: 38rem;
    margin: 18px 0 0;
    font-size: 1.04rem;
}

.post-body {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.post-body h2 {
    margin: 10px 0 0;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.post-body ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.post-figure {
    margin: 8px 0 4px;
}

.post-figure img {
    display: block;
    width: 100%;
    border: 1px solid rgba(22, 21, 20, 0.12);
    background: rgba(255, 255, 255, 0.76);
}

.post-figure video {
    display: block;
    width: 100%;
    border: 1px solid rgba(22, 21, 20, 0.12);
    background: #000000;
}

.post-caption {
    margin: 10px 0 0;
    font-size: 0.92rem;
}

.post-divider {
    border: 0;
    border-top: 1px solid rgba(22, 21, 20, 0.12);
    margin: 10px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.profile-block-wide {
    grid-column: 1 / -1;
}

.closing-copy {
    max-width: 44rem;
}

.site-footer {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 28px;
    color: var(--ink-faint);
    font-size: 0.84rem;
}

/* ── Piano ───────────────────────────────────────────────── */

.piano {
    display: flex;
    position: relative;
    align-self: stretch;
    margin-left: auto;
    margin-top: -14px;
    margin-bottom: -13px;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.piano-key {
    position: relative;
    background: #ffffff;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    width: 14px;
    flex-shrink: 0;
    transition: background 60ms ease;
    z-index: 1;
}

.piano-key:active,
.piano-key.is-pressed {
    background: #d4d0c8;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}

.piano-key-black {
    position: absolute;
    background: #1a1a1a;
    border: none;
    border-radius: 0;
    width: 9px;
    height: 58%;
    z-index: 2;
    transition: background 60ms ease;
}

.piano-key-black:active,
.piano-key-black.is-pressed {
    background: #333333;
}

@media (max-width: 760px) {
    .piano {
        display: none;
    }
}

/* ── End Piano ──────────────────────────────────────────── */

/* ── Library ─────────────────────────────────────────────── */

.library-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 20px;
}

.library-book {
    display: grid;
    gap: 12px;
    justify-items: center;
    perspective: 800px;
}

.book-3d {
    --book-depth: 22px;
    position: relative;
    width: 130px;
    height: 196px;
    transform-style: preserve-3d;
    transform: rotateY(-6deg);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.library-book:hover .book-3d {
    transform: rotateY(-18deg);
}

.book-cover {
    position: absolute;
    inset: 0;
    border-radius: 0 3px 3px 0;
    overflow: hidden;
    transform: translateZ(calc(var(--book-depth) / 2));
    box-shadow:
        2px 4px 12px rgba(22, 21, 20, 0.18),
        0 1px 3px rgba(22, 21, 20, 0.12);
}

.book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--book-spine, #3a3a3a);
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--book-depth);
    height: 100%;
    background: var(--book-spine, #3a3a3a);
    background-image: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0) 100%);
    transform: rotateY(-90deg) translateZ(calc(var(--book-depth) / 2));
    transform-origin: center center;
    border-radius: 3px 0 0 3px;
    box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.25);
}

.book-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--book-depth);
    background: linear-gradient(180deg, #f5eee4, #e8e0d0);
    transform: rotateX(90deg) translateZ(calc(var(--book-depth) / 2));
    transform-origin: center center;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.06);
}

.library-book-info {
    text-align: center;
    max-width: 140px;
}

.library-book-title {
    margin: 0;
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.library-book-author {
    margin: 3px 0 0;
    color: var(--ink-faint);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── End Library ─────────────────────────────────────────── */

[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .paper-shell,
    .site-footer {
        width: min(100% - 32px, 1000px);
    }

    .folder-work-grid {
        grid-template-columns: 1fr;
    }

    .library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .book-3d {
        width: 110px;
        height: 166px;
    }

    .hero-copy-home {
        max-width: min(100%, calc(100% - 220px));
    }

    .hero-firesetorm {
        top: 74px;
        right: -4px;
        width: clamp(160px, 22vw, 230px);
    }

    .hero-sheet.is-firesetorm-active .hero-firesetorm {
        --firesetorm-size: 82px;
    }

    .profile-grid,
    .essay-grid,
    .article-columns {
        grid-template-columns: 1fr;
    }

    .essay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-shot-space img,
    .project-shot-brandscan img,
    .project-shot-cramit img {
        width: 100%;
    }


    .post-shell {
        width: min(100% - 32px, 48rem);
    }

    .post-title {
        font-size: clamp(2.6rem, 7vw, 4.2rem);
    }

    .section-head-split,
    .note-entry-meta {
        flex-direction: column;
        align-items: start;
    }

    .folio-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-rail {
        grid-auto-flow: column;
        justify-content: start;
        align-items: center;
        gap: 16px;
    }

    .rail-label {
        writing-mode: initial;
        transform: none;
    }

}

@media (max-width: 760px) {
    .topbar:not(.topbar-is-hidden) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        padding: 14px 16px 12px;
        gap: 12px;
    }

    .topbar-right {
        display: contents;
    }

    .timezone-chip {
        grid-column: 2 / 3;
        grid-row: 1;
        justify-self: end;
        align-self: end;
        padding-left: 0;
        border-left: 0;
        text-align: right;
    }

    .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 10px 16px;
        width: 100%;
        padding-top: 0;
        flex-wrap: wrap;
    }

    .folder-deck {
        display: block;
        margin-top: 24px;
    }

    .folder-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
        width: 100%;
        overflow: visible;
        margin-bottom: -1px;
        padding-bottom: 0;
        margin-right: 0;
        position: sticky;
        top: 0;
        z-index: 12;
        background: #ffffff;
    }

    .folder-tab {
        flex: none;
        width: auto;
        min-width: 0;
        min-height: 0;
        padding: 9px 8px 8px;
        margin-bottom: 0;
        margin-right: -1px;
        border-right: 1px solid rgba(22, 21, 20, 0.22);
        border-bottom: none;
        clip-path: polygon(0 100%, 0 16px, 16px 0, 100% 0, 100% 100%);
        display: block;
        text-align: center;
    }

    .folder-tab::after {
        left: 0;
        right: 0;
        top: auto;
        bottom: -1px;
        width: auto;
        height: 2px;
    }

    .folder-tab-copy {
        display: block;
        transform: none;
        white-space: normal;
    }

    .folder-tab-label {
        display: block;
        margin-top: 0;
        font-size: 0.8rem;
        line-height: 1.05;
    }

    .folder-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    #overview .folder-section-meta {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-sheet,
    .closing-sheet {
        padding-top: 22px;
    }

    .hero-copy-home {
        max-width: 100%;
        padding-right: min(28vw, 128px);
    }

    .hero-firesetorm {
        top: 96px;
        right: -8px;
        width: min(34vw, 180px);
    }

    .hero-sheet.is-firesetorm-active .hero-firesetorm {
        --firesetorm-size: 68px;
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 14vw, 4.8rem);
    }

    .hero-lead {
        max-width: 18rem;
        font-size: clamp(1.2rem, 6vw, 1.7rem);
    }

    .hero-summary {
        font-size: 0.96rem;
    }

    .hero-actions {
        gap: 14px 16px;
    }

    .hero-link {
        font-size: 0.95rem;
    }

    .section-head h2,
    .closing-copy h2 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .section-intro,
    .note-entry-summary,
    .post-dek {
        font-size: 0.98rem;
    }

    .article-header {
        flex-direction: column;
    }

    .project-shot {
        margin-bottom: 16px;
    }

    .project-shot-cramit,
    .project-shot-brandscan,
    .project-shot-codewraith {
        padding: 8px;
    }

    .project-shot-placeholder {
        min-height: 220px;
    }

    .sheet-meta,
    .sheet-meta-hero {
        gap: 10px;
    }

    .note-entry,
    .paper-article,
    .essay-card,
    .profile-block {
        padding: 18px;
    }

}

@media (max-width: 560px) {
    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
    }

    .book-3d {
        width: 100px;
        height: 150px;
    }

    .paper-rule-left {
        left: 12px;
    }

    .paper-rule-right {
        right: 12px;
    }

    .paper-shell,
    .site-footer,
    .post-shell {
        width: calc(100% - 24px);
    }

    .topbar:not(.topbar-is-hidden) {
        padding: 13px 12px 11px;
        gap: 10px 12px;
    }

    .brand {
        font-size: 0.78rem;
    }

    .document-state,
    .timezone-value {
        font-size: 0.78rem;
    }

    .nav {
        gap: 8px 14px;
    }

    .nav a {
        font-size: 0.9rem;
    }

    .folder-tab {
        padding: 8px 6px 7px;
    }

    .folder-tab-label {
        font-size: 0.74rem;
    }

    .folder-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    #overview .folder-section-meta {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 16vw, 3.8rem);
        line-height: 0.92;
    }

    .hero-copy-home {
        padding-right: min(18vw, 64px);
    }

    .hero-firesetorm {
        top: 114px;
        right: -16px;
        width: min(38vw, 148px);
    }

    .hero-sheet.is-firesetorm-active .hero-firesetorm {
        --firesetorm-size: 58px;
    }

    .hero-lead {
        max-width: 16rem;
    }

    .hero-summary {
        max-width: 100%;
    }

    .hero-actions {
        gap: 12px 14px;
    }

    .hero-link-label,
    .text-link,
    .inline-link {
        font-size: 0.94rem;
    }

    .section-head h2,
    .closing-copy h2,
    .post-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .paper-article h3,
    .essay-card h3,
    .note-entry-title {
        font-size: clamp(1.45rem, 9vw, 2rem);
    }

    .project-shot-placeholder {
        min-height: 180px;
        padding: 14px;
    }

    .project-shot-placeholder-label {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
    }

    .note-entry,
    .paper-article,
    .essay-card,
    .profile-block {
        padding: 16px;
    }

    .article-columns,
    .profile-grid,
    .essay-grid {
        gap: 14px;
    }

    .timezone-chip {
        gap: 2px;
    }

    .nav {
        gap: 8px 12px;
    }

}

@media (prefers-reduced-motion: no-preference) {
    .chromatic-text {
        transition: text-shadow 220ms ease;
    }

    .chromatic-text::before,
    .chromatic-text::after {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        opacity: 0;
        white-space: pre-wrap;
        transition:
            opacity 220ms ease,
            clip-path 260ms ease,
            -webkit-clip-path 260ms ease;
    }

    .chromatic-text::before {
        color: var(--chroma-warm);
        transform: translateX(-0.034em);
        filter: blur(0.62px) saturate(1.56);
        mix-blend-mode: multiply;
        animation: chromaDriftA 3.4s ease-in-out infinite alternate;
        -webkit-clip-path: circle(0 at var(--mx, 50%) var(--my, 50%));
        clip-path: circle(0 at var(--mx, 50%) var(--my, 50%));
    }

    .chromatic-text::after {
        color: var(--chroma-cool);
        transform: translateX(0.036em);
        filter: blur(0.74px) saturate(1.52);
        mix-blend-mode: multiply;
        animation: chromaDriftB 4.2s ease-in-out infinite alternate;
        -webkit-clip-path: circle(0 at var(--mx, 50%) var(--my, 50%));
        clip-path: circle(0 at var(--mx, 50%) var(--my, 50%));
    }

    .chromatic-text.is-chromatic::before,
    .chromatic-text.is-chromatic::after {
        opacity: 1;
    }

    .chromatic-text.is-chromatic {
        text-shadow: none;
    }

    .chromatic-text.is-chromatic::before {
        -webkit-clip-path: circle(var(--chroma-before-size) at var(--mx, 50%) var(--my, 50%));
        clip-path: circle(var(--chroma-before-size) at var(--mx, 50%) var(--my, 50%));
    }

    .chromatic-text.is-chromatic::after {
        -webkit-clip-path: circle(var(--chroma-after-size) at var(--mx, 50%) var(--my, 50%));
        clip-path: circle(var(--chroma-after-size) at var(--mx, 50%) var(--my, 50%));
    }

    .chromatic-text.is-load-sweeping::before,
    .chromatic-text.is-load-sweeping::after {
        opacity: 1;
        transition: none;
    }

    .chromatic-text.is-load-sweeping::before {
        -webkit-clip-path: circle(var(--chroma-before-size) at var(--mx, 50%) var(--my, 50%));
        clip-path: circle(var(--chroma-before-size) at var(--mx, 50%) var(--my, 50%));
    }

    .chromatic-text.is-load-sweeping::after {
        -webkit-clip-path: circle(var(--chroma-after-size) at var(--mx, 50%) var(--my, 50%));
        clip-path: circle(var(--chroma-after-size) at var(--mx, 50%) var(--my, 50%));
    }
}

@media (hover: none), (pointer: coarse) {
    .chromatic-text {
        --chroma-before-size: 92px;
        --chroma-after-size: 122px;
    }

    .chromatic-text::before {
        filter: blur(0.74px) saturate(1.6);
    }

    .chromatic-text::after {
        filter: blur(0.86px) saturate(1.56);
    }

    .chromatic-text.is-chromatic {
        text-shadow: none;
    }
}

@keyframes chromaDriftA {
    from {
        transform: translateX(-0.028em) translateY(0);
    }

    to {
        transform: translateX(-0.038em) translateY(-0.012em);
    }
}

@keyframes chromaDriftB {
    from {
        transform: translateX(0.028em) translateY(0);
    }

    to {
        transform: translateX(0.038em) translateY(0.014em);
    }
}
