:root {
    --background: #fff;
    --text: #202020;
    --muted: #777;
    --light: #ededed;
    --sidebar-width: 280px;
    --column-width: 720px;
    --sans: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
    color: #000;
}

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

button {
    font: inherit;
}

::selection {
    background: #d9e9ff;
}

.sidebar {
    position: fixed;
    z-index: 10;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    border-right: 1px solid var(--light);
    background: var(--background);
}

.sidebar__inner {
    width: 210px;
    margin: 0 auto;
    padding: 48px 0 32px;
}

.profile {
    display: block;
    width: fit-content;
    margin: 0 auto;
    color: var(--text);
    text-decoration: none;
}

.profile__image {
    width: 146px;
    height: 146px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    background: #f5f5f5;
}

.profile__name {
    display: block;
    margin-top: 26px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-align: center;
}

.profile__description {
    max-width: 190px;
    margin: 11px 0 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.site-nav {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 9px 15px;
    align-items: baseline;
    width: fit-content;
    margin: 0 auto;
}

.site-nav a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: 64px 56px 96px;
}

.main-column {
    width: min(100%, var(--column-width));
    margin: 0 auto;
}

.page-index {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 12px;
}

.page-index a {
    color: var(--muted);
}

.post {
    margin: 0;
}

body[data-page="blog"] .post {
    display: grid;
    grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1fr);
    gap: 28px;
    align-items: baseline;
    padding: 28px 0;
}

body[data-page="blog"] .post h1 {
    margin: 0;
}

body[data-page="blog"] .post p {
    margin: 0;
    color: var(--muted);
}

body[data-page="blog"] hr {
    margin: 0;
}

.post h1,
.page-title {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.1;
}

.post h1 a,
.page-title a {
    text-decoration: none;
}

.post h1 a:hover,
.post h1 a:focus-visible {
    text-decoration: underline;
}

.post__date,
.page-updated {
    margin: 0 0 19px;
    color: var(--muted);
    font-size: 12px;
}

.post p,
.page-content p {
    margin: 0 0 18px;
}

.post p:last-child,
.page-content p:last-child {
    margin-bottom: 0;
}

hr {
    height: 1px;
    margin: 28px 0 30px;
    border: 0;
    background: var(--light);
}

.page-content h1 {
    margin: 0 0 4px;
}

.page-content h2 {
    margin: 28px 0 10px;
    font-size: 21px;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.page-content h3 {
    margin: 24px 0 8px;
    font-size: 17px;
    line-height: 1.2;
}

.page-content strong {
    font-weight: 700;
}

.page-content ul,
.page-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.page-content li {
    margin-bottom: 7px;
}

.page-content .intro {
    margin-bottom: 24px;
}

.page-content .small-note {
    color: var(--muted);
    font-size: 12px;
}

.back-to-top {
    margin: 42px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.back-to-top a {
    color: var(--muted);
}

.site-footer {
    margin-top: 36px;
    padding-top: 14px;
    border-top: 1px solid var(--light);
    color: var(--muted);
    font-size: 11px;
}

/* Now page */
.now-header {
    padding-bottom: 46px;
    border-bottom: 1px solid var(--text);
    animation: now-reveal 520ms ease both;
}

.now-intro {
    max-width: 390px;
    margin-top: 18px !important;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.35;
}

.now-current {
    margin-top: 54px;
}

.now-section-label {
    margin: 0 0 14px !important;
    color: var(--muted);
    font-size: 11px !important;
    font-weight: 400;
    letter-spacing: .1em;
    line-height: 1.3 !important;
    text-transform: uppercase;
}

.now-projects {
    border-top: 1px solid var(--text);
}

.now-project {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 23px 0;
    border-bottom: 1px solid var(--light);
    color: var(--text);
    text-decoration: none;
}

.now-project__number {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
}

.now-project__main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.now-project__name {
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -.07em;
    line-height: .95;
    transition: color 180ms ease, transform 180ms ease;
}

.now-project__url,
.now-project__visit {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.now-project__visit {
    transition: color 180ms ease, transform 180ms ease;
}

.now-project:hover .now-project__name,
.now-project:focus-visible .now-project__name {
    color: #2f5bea;
    transform: translateX(4px);
}

.now-project:hover .now-project__visit,
.now-project:focus-visible .now-project__visit {
    color: var(--text);
    transform: translateX(3px);
}

@keyframes now-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .now-header {
        padding-bottom: 32px;
    }

    .now-intro {
        max-width: 320px;
        font-size: 16px;
    }

    .now-current {
        margin-top: 40px;
    }

    .now-project {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 11px;
        align-items: start;
        padding: 20px 0;
    }

    .now-project__name {
        font-size: clamp(32px, 11vw, 44px);
    }

    .now-project__visit {
        grid-column: 2;
        margin-top: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .now-header {
        animation: none;
    }
}

/* Project pages */
.project-column {
    width: min(100%, 840px);
}

.project-column .page-index {
    margin-bottom: 56px;
}

.account-page .project-column .page-index {
    margin-bottom: 14px;
}

.account-page .site-main {
    padding-top: 32px;
    padding-bottom: 24px;
}

.project-header {
    padding-bottom: 42px;
    border-bottom: 1px solid var(--light);
    animation: project-reveal 520ms ease both;
}

.project-kicker,
.project-meta dt,
.section-label,
.section-note,
.method-kicker {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.project-column .project-kicker,
.project-column .section-label,
.project-column .method-kicker {
    margin: 0;
}

.project-column .project-kicker {
    margin-bottom: 18px;
}

.project-title {
    max-width: 9ch;
    font-size: clamp(46px, 8vw, 78px);
    letter-spacing: -0.08em;
    line-height: 0.91;
}

.project-column .project-lede {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.35;
}

.account-page .project-header {
    padding-bottom: 12px;
}

.account-page .project-title {
    max-width: none;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1;
}

.account-page .project-lede {
    max-width: 520px;
    margin-top: 14px;
    font-size: 16px;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 44px 0 0;
    border-top: 1px solid var(--text);
}

.account-page .project-meta {
    margin-top: 26px;
}

.project-meta div {
    min-width: 0;
    padding: 13px 18px 0 0;
}

.project-meta div + div {
    padding-left: 18px;
    border-left: 1px solid var(--light);
}

.project-meta dt {
    margin: 0 0 5px;
    letter-spacing: 0.08em;
}

.project-meta dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.project-section {
    margin-top: 64px;
    animation: project-reveal 520ms 100ms ease both;
}

.account-page .project-section {
    margin-top: 16px;
}

.account-page .project-timeline {
    margin-top: 14px;
}

.account-page .project-timeline .section-heading {
    margin-bottom: 8px;
}

.project-section:nth-of-type(2) {
    animation-delay: 180ms;
}

.project-section:nth-of-type(3) {
    animation-delay: 260ms;
}

.section-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(150px, 0.7fr);
    gap: 16px;
    align-items: baseline;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3.5vw, 36px);
    letter-spacing: -0.055em;
    line-height: 1;
}

.project-column .section-note {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--text);
}

.project-timeline .timeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--text);
}

.project-timeline .timeline-track {
    min-width: 0;
    padding: 8px 0 0;
}

.project-timeline .timeline-track + .timeline-track {
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px solid var(--text);
}

.project-timeline .timeline-track h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.06em;
    line-height: 1;
}

.project-column .timeline-intro {
    max-width: 270px;
    margin: 6px 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.project-column .timeline-list {
    display: grid;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--light);
    list-style: none;
}

.project-column .timeline-list > li {
    display: block;
    margin: 0;
    padding: 7px 10px 8px 0;
    border-bottom: 1px solid var(--light);
    border-right: 1px solid var(--light);
}

.project-column .timeline-list > li + li {
    padding-left: 10px;
}

.timeline-track--video .timeline-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-track--community .timeline-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-track--video .timeline-list > li:nth-child(4),
.timeline-track--community .timeline-list > li:nth-child(5),
.project-column .timeline-list > li:last-child {
    border-right: 0;
}

.timeline-track--video .timeline-list > li:last-child {
    grid-column: 1 / -1;
    padding-top: 7px;
    padding-bottom: 8px;
}

.project-column .timeline-period {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.project-column .timeline-list strong,
.project-column .timeline-list span {
    display: block;
}

.project-column .timeline-list strong {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.project-column .timeline-list div > span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.25;
}

.project-column .timeline-list .timeline-detail::before {
    content: "· ";
    color: var(--text);
}

.account-source-line {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.account-source-line a {
    color: var(--muted);
    white-space: nowrap;
}

.account-page .site-footer {
    margin-top: 12px;
    padding-top: 8px;
}

.method-column {
    min-width: 0;
    padding: 22px 24px 0 0;
}

.method-column + .method-column {
    padding-right: 0;
    padding-left: 24px;
    border-left: 1px solid var(--light);
}

.project-column .method-kicker {
    margin-bottom: 8px;
}

.method-column h3 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.06em;
    line-height: 1;
}

.project-column .method-intro {
    max-width: 270px;
    margin: 9px 0 25px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.project-column .warmup-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-column .warmup-list > li {
    margin: 0;
    padding: 18px 0 21px;
    border-top: 1px solid var(--light);
    transition: padding-left 180ms ease;
}

.project-column .warmup-list > li:hover {
    padding-left: 6px;
}

.step-heading {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
}

.step-number {
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.project-column .warmup-list h4 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.project-column .warmup-list ul {
    margin: 9px 0 0 40px;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.project-column .warmup-list li li + li {
    margin-top: 4px;
    margin-bottom: 0;
}

.project-column .warmup-list li li {
    margin-bottom: 0;
}

.project-column .project-takeaway {
    margin: 0;
    padding: 22px 0 25px;
    border-top: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.065em;
    line-height: 1;
}

.project-column .source-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--text);
    list-style: none;
}

.project-column .source-list li {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--light);
}

.project-column .source-list strong,
.project-column .source-list span {
    display: block;
}

.project-column .source-list strong {
    font-size: 13px;
    font-weight: 400;
}

.project-column .source-list span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.project-column .source-list a {
    white-space: nowrap;
}

@keyframes project-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-header,
    .project-section {
        animation: none;
    }

    .warmup-list > li {
        transition: none;
    }
}

@media (max-width: 760px) {
    .project-column .page-index {
        margin-bottom: 38px;
    }

    .project-header {
        padding-bottom: 34px;
    }

    .project-column .project-lede {
        font-size: 16px;
    }

    .project-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 36px;
    }

    .project-meta div:nth-child(3) {
        grid-column: 1 / -1;
        padding-left: 0;
        border-top: 1px solid var(--light);
        border-left: 0;
    }

    .section-heading {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
    }

    .project-column .section-note {
        grid-column: 2;
        margin-top: -7px;
    }

    .project-section {
        margin-top: 52px;
    }

    .account-page .project-column .page-index {
        margin-bottom: 20px;
    }

    .account-page .project-header {
        padding-bottom: 22px;
    }

    .account-page .project-title {
        font-size: clamp(42px, 14vw, 58px);
    }

    .account-page .project-lede {
        font-size: 15px;
    }

    .account-page .project-meta {
        margin-top: 20px;
    }

    .account-page .project-section {
        margin-top: 30px;
    }

    .account-page .project-timeline {
        margin-top: 24px;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .project-timeline .timeline-track {
        padding-right: 0;
    }

    .project-timeline .timeline-track + .timeline-track {
        margin-top: 20px;
        padding: 20px 0 0;
        border-top: 1px solid var(--text);
        border-left: 0;
    }

    .timeline-track--video .timeline-list,
    .timeline-track--community .timeline-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-column .timeline-list > li {
        padding: 12px 10px 13px 0;
    }

    .project-column .timeline-list > li + li {
        padding-left: 10px;
    }

    .timeline-track--video .timeline-list > li:nth-child(2),
    .timeline-track--video .timeline-list > li:nth-child(4),
    .timeline-track--community .timeline-list > li:nth-child(2),
    .timeline-track--community .timeline-list > li:nth-child(4) {
        border-right: 0;
    }

    .method-column {
        padding-right: 0;
    }

    .method-column + .method-column {
        margin-top: 30px;
        padding-top: 24px;
        padding-left: 0;
        border-top: 1px solid var(--text);
        border-left: 0;
    }

    .project-column .source-list li {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .project-meta {
        grid-template-columns: 1fr;
    }

    .project-meta div + div,
    .project-meta div:nth-child(3) {
        padding-left: 0;
        border-top: 1px solid var(--light);
        border-left: 0;
    }

    .project-meta div:nth-child(3) {
        grid-column: auto;
    }
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px;
    padding: 0;
    list-style: none;
}

.tag-list a {
    font-size: 15px;
}

.photo-intro {
    margin-bottom: 24px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.photo-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #f1f1f1;
    cursor: zoom-in;
    overflow: hidden;
    text-align: left;
}

.photo-button img {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
    transition: opacity 180ms ease;
}

.photo-button:hover img,
.photo-button:focus-visible img {
    opacity: 0.72;
}

.photo-button > span {
    display: block;
    padding: 6px 7px 8px;
    background: var(--background);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.photo-button > span strong {
    display: block;
    margin-bottom: 1px;
    color: var(--text);
    font-weight: 400;
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
}

.lightbox__figure {
    position: relative;
    z-index: 1;
    justify-self: center;
    max-width: min(80vw, 900px);
    margin: 0;
}

.lightbox__figure img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox__figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

.lightbox__figure figcaption strong {
    color: var(--text);
    font-weight: 400;
}

.lightbox__close,
.lightbox__nav {
    position: relative;
    z-index: 1;
    justify-self: center;
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
}

.lightbox__close {
    position: absolute;
    top: 22px;
    right: 28px;
}

.lightbox__nav {
    font-size: 25px;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    color: var(--text);
}

:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    :root {
        --sidebar-width: 0px;
    }

    html {
        min-width: 0;
    }

    .sidebar {
        position: static;
        width: auto;
        border-right: 0;
        border-bottom: 1px solid var(--light);
    }

    .sidebar__inner {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 14px;
        width: auto;
        margin: 0;
        padding: 24px 28px 20px;
    }

    .profile {
        margin: 0;
    }

    .profile__image {
        width: 76px;
        height: 76px;
    }

    .profile__name {
        display: none;
    }

    .profile__description {
        grid-column: 2;
        align-self: end;
        max-width: none;
        margin: 0;
        font-size: 11px;
        text-align: left;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-self: start;
        gap: 9px 8px;
        width: 100%;
        margin: 0;
    }

    .site-nav a {
        min-width: 0;
        text-align: center;
    }

    .site-main {
        margin-left: 0;
        padding: 32px 28px 56px;
    }

    .main-column {
        width: 100%;
    }

    body[data-page="blog"] .post {
        display: block;
        padding: 24px 0;
    }

    body[data-page="blog"] .post h1 {
        margin-bottom: 6px;
    }

    .page-index {
        margin-bottom: 30px;
    }

    .post h1,
    .page-title {
        font-size: 25px;
    }

    .post p,
    .page-content p {
        margin-bottom: 16px;
    }

    hr {
        margin: 25px 0 27px;
    }

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

    .lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .lightbox__figure {
        max-width: 86vw;
    }

    .lightbox__figure img {
        max-height: 75vh;
    }

    .lightbox__figure figcaption {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .lightbox__figure figcaption strong {
        grid-column: 1 / -1;
    }

    .lightbox__close {
        top: 14px;
        right: 14px;
    }
}

@media (max-width: 400px) {
    .sidebar__inner {
        column-gap: 16px;
        padding: 22px 22px 18px;
    }

    .site-main {
        padding: 28px 22px 55px;
    }

    .page-index {
        margin-bottom: 23px;
    }

}

/* Browser-language RTL support */
html[dir="rtl"] body {
    direction: rtl;
}

/* J-I-T thought page ----------------------------------------------------- */
.thermo-page {
    width: min(100%, 920px);
}

.thought-header {
    padding-bottom: 42px;
    border-bottom: 1px solid var(--text);
    animation: project-reveal 520ms ease both;
}

.thought-kicker,
.thought-meta dt,
.section-number,
.section-note,
.control-label,
.figure-heading span,
.comparison-kicker {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.thought-kicker {
    margin: 0 0 20px;
}

.thought-title {
    max-width: 780px;
    margin: 0;
    font-size: clamp(44px, 7vw, 78px);
    letter-spacing: -.085em;
    line-height: .92;
}

.thought-lede {
    max-width: 620px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.4;
}

.thought-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 42px 0 0;
    border-top: 1px solid var(--text);
}

.thought-meta div {
    min-width: 0;
    padding: 12px 18px 0 0;
}

.thought-meta div + div {
    padding-left: 18px;
    border-left: 1px solid var(--light);
}

.thought-meta dt {
    margin: 0 0 5px;
}

.thought-meta dd {
    margin: 0;
    font-size: 13px;
}

.thought-section {
    margin-top: 78px;
    animation: project-reveal 520ms 100ms ease both;
    scroll-margin-top: 24px;
}

.thought-section + .thought-section {
    border-top: 1px solid var(--light);
    padding-top: 70px;
}

.thermo-page .section-heading {
    grid-template-columns: 42px minmax(0, 1fr) minmax(190px, .58fr);
    gap: 16px;
    align-items: baseline;
    margin-bottom: 28px;
}

.thermo-page .section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -.06em;
    line-height: .98;
}

.section-number {
    font-variant-numeric: tabular-nums;
}

.thermo-page .section-note {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

.thermo-page .lead-paragraph {
    max-width: 680px;
    font-size: 18px;
    letter-spacing: -.018em;
    line-height: 1.45;
}

.equation-block {
    margin: 34px 0 40px;
    padding: 22px 0 24px;
    border-top: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
}

.equation-block--small {
    margin-top: 30px;
}

.equation-label,
.equation-caption {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.equation-main {
    margin: 12px 0 10px;
    color: var(--text);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.equation-accent {
    color: #2f5bea;
}

.postulates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--text);
}

.postulates-grid > div {
    min-width: 0;
    padding: 18px 20px 0 0;
    border-bottom: 1px solid var(--light);
}

.postulates-grid > div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--light);
}

.postulate-number {
    color: var(--muted);
    font-size: 11px;
}

.postulates-grid h3 {
    margin: 12px 0 6px;
    font-size: 19px;
    letter-spacing: -.045em;
}

.postulates-grid p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.quadrant-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(190px, auto));
    border-top: 1px solid var(--text);
    border-left: 1px solid var(--text);
}

.quadrant-cell {
    position: relative;
    min-width: 0;
    padding: 20px 22px 24px;
    border-right: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    transition: background 180ms ease, color 180ms ease;
}

.quadrant-cell:hover {
    background: #f6f8ff;
}

.quadrant-cell--q3 { grid-column: 1; grid-row: 1; }
.quadrant-cell--q4 { grid-column: 2; grid-row: 1; background: #fbfbff; }
.quadrant-cell--q1 { grid-column: 1; grid-row: 2; }
.quadrant-cell--q2 { grid-column: 2; grid-row: 2; background: #fbfbff; }

.quadrant-cell > span {
    color: #2f5bea;
    font-size: 11px;
    font-weight: 700;
}

.quadrant-cell h3 {
    margin: 20px 0 7px;
    font-size: 21px;
    letter-spacing: -.055em;
    line-height: 1;
}

.quadrant-cell p {
    margin: 0 0 13px;
    font-size: 15px;
    font-weight: 700;
}

.quadrant-cell small {
    display: block;
    max-width: 290px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.quadrant-axis {
    position: absolute;
    z-index: 2;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    pointer-events: none;
}

.quadrant-axis-y {
    top: 15px;
    left: -1px;
    transform: translateX(-100%) rotate(-90deg) translateX(-100%);
    transform-origin: top right;
    white-space: nowrap;
}

.quadrant-axis-x {
    right: 0;
    bottom: -27px;
}

.map-caption {
    max-width: 620px;
    margin: 38px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.visualizer-layout {
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
    border-top: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
}

.visualizer-controls {
    padding: 22px 28px 24px 0;
}

.visualizer-output {
    min-width: 0;
    padding: 22px 0 24px 28px;
    border-left: 1px solid var(--light);
}

.control-intro p:not(.control-label) {
    max-width: 260px;
    margin: 8px 0 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.control-label {
    margin: 0;
}

.range-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 42px;
    gap: 7px 14px;
    align-items: baseline;
    padding: 13px 0 12px;
    border-top: 1px solid var(--light);
    cursor: pointer;
}

.range-row span,
.range-row output {
    grid-row: 1;
}

.range-row span {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.range-row b {
    min-width: 27px;
    font-size: 15px;
}

.range-row small {
    color: var(--muted);
    font-size: 11px;
}

.range-row output {
    color: var(--text);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.range-row input {
    grid-column: 1 / -1;
    width: 100%;
    height: 18px;
    margin: 0;
    accent-color: #2f5bea;
    cursor: ew-resize;
}

.range-row--optional b,
.range-row--optional output {
    color: #2f5bea;
}

.control-footnote {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.output-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

#dominant-label {
    color: #2f5bea;
    font-size: 11px;
    text-align: right;
}

.output-value {
    margin: 24px 0 12px;
}

.output-value span {
    display: block;
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 700;
    letter-spacing: -.09em;
    line-height: .86;
}

.output-value small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
}

.formula-readout {
    padding: 10px 0 18px;
    border-bottom: 1px solid var(--light);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.bar-chart {
    margin-top: 21px;
}

.bar-row {
    display: grid;
    grid-template-columns: 118px minmax(70px, 1fr) 56px;
    gap: 10px;
    align-items: center;
    margin-bottom: 13px;
}

.bar-row > span {
    font-size: 12px;
    font-weight: 700;
}

.bar-row > span small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.bar-row > div {
    height: 9px;
    background: #f0f0f0;
}

.bar-row i {
    display: block;
    width: 0;
    height: 100%;
    background: #2f5bea;
    transition: width 220ms ease;
}

.bar-row output {
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.visualizer-reading {
    margin: 24px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.convergence-figure,
.jevons-figure {
    margin-top: 34px;
    padding-top: 14px;
    border-top: 1px solid var(--text);
}

.figure-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: baseline;
}

.figure-heading strong {
    font-size: 13px;
    font-weight: 400;
}

.convergence-figure svg,
.jevons-figure svg {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 18px;
    overflow: visible;
}

.svg-grid line {
    stroke: var(--light);
    stroke-width: 1;
}

.svg-line {
    fill: none;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.svg-dot {
    stroke: var(--background);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.line-convergence,
.line-demand {
    stroke: #2f5bea;
    fill: #2f5bea;
}

.line-cost {
    stroke: #777;
    fill: #777;
}

.svg-label {
    fill: var(--muted);
    font-family: var(--sans);
    font-size: 10px;
}

.svg-label--x {
    text-anchor: middle;
}

.svg-label--axis {
    letter-spacing: .04em;
    text-transform: uppercase;
}

.figure-caption {
    max-width: 570px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.chart-legend {
    display: flex;
    gap: 18px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.chart-legend span::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    margin: 0 6px 3px 0;
    background: currentColor;
}

.legend-cost { color: #777; }
.legend-demand { color: #2f5bea; }

.before-after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
    border-top: 1px solid var(--text);
}

.before-after > div {
    padding: 17px 20px 0 0;
}

.before-after > div + div {
    padding-left: 20px;
    border-left: 1px solid var(--light);
}

.comparison-kicker {
    margin: 0 0 13px;
}

.before-after ul {
    margin: 0;
    padding: 0 0 10px 17px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.before-after li {
    margin-bottom: 6px;
}

.transformation-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px 0 0;
    border-top: 1px solid var(--text);
}

.transformation-line > div {
    min-width: 0;
}

.transformation-line > div > span {
    color: var(--muted);
    font-size: 11px;
}

.transformation-line h3 {
    margin: 17px 0 8px;
    font-size: 18px;
    letter-spacing: -.05em;
}

.transformation-line p {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
}

.transformation-line small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.transformation-line > b {
    color: #2f5bea;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

.takeaway {
    max-width: 720px;
    margin: 34px 0 0 !important;
    padding: 22px 0 26px;
    border-top: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    font-size: clamp(25px, 4vw, 43px);
    letter-spacing: -.07em;
    line-height: .98;
}

.source-details {
    border-top: 1px solid var(--text);
}

.source-details + .source-details {
    border-top-color: var(--light);
}

.source-details summary {
    padding: 16px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    list-style-position: outside;
}

.source-details summary::marker {
    color: #2f5bea;
}

.source-list--plain {
    margin-bottom: 20px !important;
    padding-left: 19px !important;
}

.source-list--plain li {
    margin-bottom: 10px;
}

.source-list--plain span {
    color: var(--muted);
}

.source-list--plain strong {
    overflow-wrap: anywhere;
}

.source-table-wrap {
    max-width: 100%;
    margin: 0 0 25px;
    overflow-x: auto;
}

.source-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 11px;
    line-height: 1.3;
}

.source-table--compact {
    min-width: 680px;
}

.source-table caption {
    padding: 0 0 9px;
    color: var(--muted);
    font-size: 11px;
    text-align: left;
}

.source-table th,
.source-table td {
    padding: 8px 9px;
    border: 1px solid var(--light);
    text-align: left;
    vertical-align: top;
}

.source-table thead th {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.source-table tbody th {
    font-weight: 700;
    white-space: nowrap;
}

.source-table td {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.source-note {
    margin: 0 0 20px !important;
    color: var(--muted);
    font-size: 12px !important;
    line-height: 1.5;
}

@media (max-width: 760px) {
    body[data-page="thoughts"] {
        overflow-x: hidden;
    }

    .thermo-page {
        min-width: 0;
    }

    .thought-title {
        max-width: 580px;
    }

    .thermo-page .section-heading {
        display: block;
    }

    .thermo-page .section-heading h2 {
        margin-top: 9px;
    }

    .thermo-page .section-note {
        max-width: 490px;
        margin-top: 12px;
    }

    .quadrant-axis-y {
        display: none;
    }

    .visualizer-layout {
        display: block;
    }

    .visualizer-controls {
        padding-right: 0;
    }

    .visualizer-output {
        padding-left: 0;
        border-top: 1px solid var(--light);
        border-left: 0;
    }

    .output-topline {
        flex-wrap: wrap;
    }

    #dominant-label {
        text-align: left;
    }

    .formula-readout {
        overflow-wrap: anywhere;
    }

    .figure-heading {
        display: block;
    }

    .figure-heading strong {
        display: block;
        margin-top: 8px;
    }
}

@media (max-width: 560px) {
    .thought-header {
        padding-bottom: 30px;
    }

    .thought-title {
        font-size: clamp(40px, 14vw, 62px);
    }

    .thought-lede {
        font-size: 16px;
    }

    .thought-meta {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .thought-meta div {
        padding: 11px 0 0;
    }

    .thought-meta div + div {
        padding-left: 0;
        border-top: 1px solid var(--light);
        border-left: 0;
    }

    .thought-section {
        margin-top: 54px;
    }

    .thought-section + .thought-section {
        padding-top: 48px;
    }

    .equation-main {
        font-size: clamp(21px, 7.2vw, 29px);
        line-height: 1.18;
    }

    .postulates-grid,
    .before-after {
        grid-template-columns: 1fr;
    }

    .postulates-grid > div,
    .postulates-grid > div:nth-child(even),
    .before-after > div,
    .before-after > div + div {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .quadrant-map {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        overflow: hidden;
    }

    .quadrant-cell--q3,
    .quadrant-cell--q4,
    .quadrant-cell--q1,
    .quadrant-cell--q2 {
        grid-column: 1;
    }

    .quadrant-cell--q3,
    .quadrant-cell--q4,
    .quadrant-cell--q1,
    .quadrant-cell--q2 {
        grid-row: auto;
        padding: 18px 16px 20px;
    }

    .quadrant-cell h3 {
        margin-top: 15px;
        font-size: 24px;
        line-height: 1.05;
    }

    .quadrant-cell p {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .quadrant-cell small {
        max-width: none;
        font-size: 13px;
        line-height: 1.5;
    }

    .quadrant-axis {
        display: none;
    }

    .transformation-line {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .transformation-line > b {
        transform: rotate(90deg);
    }

    .bar-row {
        grid-template-columns: 105px minmax(60px, 1fr) 52px;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thought-header,
    .thought-section {
        animation: none;
    }

    .bar-row i {
        transition: none;
    }
}

html[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    border-right: 0;
    border-left: 1px solid var(--light);
}

html[dir="rtl"] .site-main {
    margin-right: var(--sidebar-width);
    margin-left: 0;
}

html[dir="rtl"] .project-meta div {
    padding-right: 0;
    padding-left: 18px;
}

html[dir="rtl"] .project-meta div + div {
    padding-right: 18px;
    padding-left: 0;
    border-right: 1px solid var(--light);
    border-left: 0;
}

html[dir="rtl"] .method-column {
    padding-right: 0;
    padding-left: 24px;
}

html[dir="rtl"] .method-column + .method-column {
    padding-right: 24px;
    padding-left: 0;
    border-right: 1px solid var(--light);
    border-left: 0;
}

html[dir="rtl"] .project-timeline .timeline-track {
    padding: 16px 0 0;
}

html[dir="rtl"] .project-timeline .timeline-track + .timeline-track {
    padding: 20px 0 0;
    border-right: 0;
    border-left: 0;
}

html[dir="rtl"] .project-column .timeline-list > li {
    padding-right: 0;
    padding-left: 16px;
    border-right: 0;
    border-left: 1px solid var(--light);
}

html[dir="rtl"] .project-column .timeline-list > li + li {
    padding-right: 16px;
    padding-left: 16px;
}

html[dir="rtl"] .timeline-track--video .timeline-list > li:nth-child(4),
html[dir="rtl"] .timeline-track--community .timeline-list > li:nth-child(5),
html[dir="rtl"] .project-column .timeline-list > li:last-child {
    border-left: 0;
    padding-left: 0;
}

html[dir="rtl"] .project-column .warmup-list ul {
    margin-right: 40px;
    margin-left: 0;
}

@media (max-width: 760px) {
    html[dir="rtl"] .sidebar {
        border-left: 0;
    }

    html[dir="rtl"] .site-main {
        margin-right: 0;
    }

    html[dir="rtl"] .profile__description {
        text-align: right;
    }

    html[dir="rtl"] .method-column {
        padding-left: 0;
    }

    html[dir="rtl"] .method-column + .method-column {
        padding-right: 0;
        border-right: 0;
    }

    html[dir="rtl"] .project-timeline .timeline-track {
        padding-left: 0;
    }

    html[dir="rtl"] .project-timeline .timeline-track + .timeline-track {
        padding-right: 0;
        border-right: 0;
    }

    html[dir="rtl"] .timeline-track--video .timeline-list > li:nth-child(2),
    html[dir="rtl"] .timeline-track--video .timeline-list > li:nth-child(4),
    html[dir="rtl"] .timeline-track--community .timeline-list > li:nth-child(2),
    html[dir="rtl"] .timeline-track--community .timeline-list > li:nth-child(4) {
        border-left: 0;
        padding-left: 0;
    }

    html[dir="rtl"] .project-meta div:nth-child(3) {
        padding-right: 0;
        border-right: 0;
    }
}

@media (max-width: 400px) {
    html[dir="rtl"] .project-meta div + div,
    html[dir="rtl"] .project-meta div:nth-child(3) {
        padding-right: 0;
        padding-left: 0;
        border-right: 0;
    }
}

/* Keep translated copy inside the viewport on narrow screens. */
html,
body,
.site-main,
.main-column,
.page-content,
.project-column,
.thermo-page {
    min-width: 0;
}

html,
body {
    overflow-x: hidden;
}

a,
.page-index,
.page-content,
.project-column,
.thermo-page,
.source-details summary {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .sidebar__inner,
    .site-main {
        padding-right: clamp(18px, 6vw, 28px);
        padding-left: clamp(18px, 6vw, 28px);
    }

    .site-nav {
        column-gap: 6px;
    }

    .site-nav a {
        font-size: clamp(10px, 2.9vw, 12px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .page-content p,
    .thought-section p,
    .source-details,
    .source-table {
        line-height: 1.55;
    }

    .thought-meta dd,
    .formula-readout,
    .output-value,
    .account-source-line {
        overflow-wrap: anywhere;
    }

    .source-table-wrap {
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 560px) {
    .account-page .timeline-track--video .timeline-list,
    .account-page .timeline-track--community .timeline-list {
        grid-template-columns: 1fr;
    }

    .account-page .project-column .timeline-list > li,
    .account-page .project-column .timeline-list > li + li {
        padding-right: 0;
        padding-left: 0;
        border-right: 0;
    }

    .account-page .timeline-track--video .timeline-list > li:last-child {
        grid-column: auto;
    }
}

/* Small, text-first language control shared by every page. */
.language-switcher {
    position: fixed;
    z-index: 1200;
    top: 22px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--light, rgba(0, 0, 0, .14));
    background: var(--background, var(--glass-bg));
    color: var(--muted, var(--text-secondary));
}

.language-switcher__option {
    min-height: 26px;
    padding: 4px 5px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 11px;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: lowercase;
    cursor: pointer;
}

.language-switcher__option + .language-switcher__option {
    margin-left: 3px;
    padding-left: 8px;
    border-left: 1px solid var(--light, rgba(0, 0, 0, .14));
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible,
.language-switcher__option.is-active {
    color: var(--text, var(--text-primary));
}

.language-switcher__option.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .language-switcher {
        top: 16px;
        right: clamp(18px, 6vw, 28px);
    }

    .language-switcher__option {
        min-height: 30px;
        padding: 5px 4px;
        font-size: 10px;
    }

    .language-switcher__option + .language-switcher__option {
        padding-left: 7px;
    }
}

@media (max-width: 400px) {
    .language-switcher {
        right: 18px;
    }
}
