body, html {
    height: 100%;
    margin: 0;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    color:#010202;
    background-color: #f7f7f7;
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Poppins';
    font-display: swap;
    src: url('./Poppins/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

.pretty_a{
    font-weight: bold;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 50%, rgba(255,255,0,1) 50%, rgba(255,255,0,1) 100%)
}

h3{
    font-weight: 100;
}

hr {
    width: 90%;
    background-color: #011235;
    height: 2px;
}

.master_image{
    z-index: 0;
    position: relative;
    float: right;
    right: 0;
    top: 0px;
}

.colorize_native{
    background-color: #f7f7f7;
    color: #000;
}

.colorize_dark{
    background-color: #000;
    color: white;
}

.colorize_yellow{
    background-color: #ffd5007a;
    color: #000;
}

.colorize_wheat{
    background-color:#edd495;
    color: #232C33;
}

/* Image */
img {
    max-width: 100%; /* Ensure image doesn't overflow its container */
}

button{
    padding: 8px 16px;
    border-radius: 0px;
    font-size: 1.2vw;
    cursor: pointer;
    border: none;
}

.btn_light{
    border: 2px #000 solid;
    background-color: rgba(0,0,0,0);
    color: #000;
}

.btn_white{
    border: 2px #fff solid;
    background-color: rgba(0,0,0,0);
    color: #fff;
}

.btn_dark{
    border: 2px #000 solid;
    background-color: #000;
    color: white;
}


.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


.hover-popup {
    position: relative; 
}

.hover-popup .popup-content {
    display: none;
    position: absolute;
    top: 100%;        
    left: 50%;         
    transform: translateX(-50%);
    border: 1px solid #aaa;
    padding: 10px;
    width: 300px;     
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;      
}

.hover-popup:hover .popup-content {
    display: block;
}

.popup-content img {
    max-width: 100%;  
    margin-bottom: 8px;  
}


.container{
    max-width: 82vw;
    margin: 0 auto;
    padding: 0px 20px;
    display: flex;
    height: 100%;
    align-items: center;
}

/* ── Header & Navigation ──────────────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    height: 68px;
}

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
    text-decoration: none;
}

.nav-logo img {
    max-height: 30px;
    display: block;
}

/* Desktop nav */
#normal-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    height: 100%;
    white-space: nowrap;
    user-select: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-item:hover > .nav-link::after,
.nav-item:focus-within > .nav-link::after {
    transform: scaleX(1);
}

.nav-chevron {
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
    color: var(--muted);
    margin-top: 1px;
}

.nav-item:hover > .nav-link .nav-chevron,
.nav-item:focus-within > .nav-link .nav-chevron {
    transform: rotate(180deg);
    color: var(--gold);
}

/* Dropdown panel */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 2px solid var(--gold);
    box-shadow: 0 16px 48px rgba(26, 26, 24, 0.13);
    min-width: 272px;
    padding: 6px 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1000;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-dd-item {
    display: flex;
    flex-direction: column;
    padding: 13px 22px;
    text-decoration: none;
    color: var(--ink);
    border-left: 3px solid transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-dd-item:hover {
    border-left-color: var(--gold);
    background: rgba(255, 213, 0, 0.07);
}

.nav-dd-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    display: block;
    margin-bottom: 3px;
    transition: color 0.15s ease;
}

.nav-dd-item:hover .nav-dd-title {
    color: var(--ink);
}

.nav-dd-desc {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    display: block;
    line-height: 1.55;
}

/* Hamburger */
#menu-icon {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 16px;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Close icon */
#close-icon {
    display: none;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 16px;
    position: relative;
}

.close-bar {
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--paper);
    border-radius: 1px;
}

.close-bar.a { transform: rotate(45deg); }
.close-bar.b { transform: rotate(-45deg); }

/* #254139*/

/* Section 1 */


#sectionTop {
    min-height: 83vh;
    height: fit-content;
    position: relative;
}

#sectionFull{
    min-height: 100vh;
    height: fit-content;
    padding-bottom: 5vh;
}

#sectionShort{ 
    min-height: 450px;
    height: auto;
    padding-bottom: 30px;
}

/* Section 2 */
#section2 {
    min-height: 100vh;
    height: fit-content;
    padding-bottom: 5vh;
    padding-top: 5vh;
}

h1 {
    font-weight: 600;
    font-size: 4vw;
    margin-top: 25px;
    margin-bottom: 20px; /* Create some spacing between h1 and h3 */
}


h2 {
    font-weight: 700;
    font-size: 42px;
    padding-top: 42px;
    margin-top: 0;
}

#main-text-container {
    max-width: 80%;
    padding-top: 100px;
    float: left;
    display: flex;
    flex-direction: column;
}

#description-text {
    opacity: 1;
    font-size: 2vw;
    transition: opacity 0.5s ease;
    margin-bottom: 20px; /* Create some spacing between h3 and the link */
}

#description-container{
    padding-bottom: 30px;
}

#description-button {
    transition: opacity 0.1s, visibility 0.1s; /* add a transition for smoothness */
    visibility: hidden;
}

.column-direction{
    margin: 0px;
}

.container2{
    max-width: 82vw;
    margin: 0 auto;
    padding: 0px 20px;
    display: block;
    height: 100%;
}

#in-section2{
    display: inline-block;
    margin-top: 30px;
    width: 100%;
    height: 90%;
}

#updates-container {
    margin-top: 50px;
    width: 100%;
}

.blog-post{
    width: 100%;
    display: flex;
    height: 150px;
    border-top: 1px solid;
    position: relative;
    padding: 20px 30px;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}

.learning_curve{
    width: 100%;
    display: flex;
    position: relative;
    color: black;
    padding: 0 30px;
    align-content: center;
    justify-content: space-between;
    align-items: stretch;
    text-align: left;
}

.learning-list{
    width: 10%;
    border-right: 2px solid;
    align-items: center;
}

.learning_element{
    width: 20%;
    position: absolute;
    left: 15%;
    font-size: 1.7vw;
    font-weight: 500;
    margin-top: 16px;
    opacity: 0;
    transform: translateX(50%);
}

.learning_description{
    float: right;
    width: 60%;
    font-size: 16px;
    opacity: 0;
    transform: translateX(50%);

}

.la{
    transition: 0.1s;
}

.lb{
    transition: 0.3s;
}

.lc{
    transition: 0.5s;
}

.ld{
    transition: 0.8s;
}

.learning_element > p {
    margin-top: 0px;
}
/* 
.learning:hover .learning_element{
    opacity: 1;
    transform: translateX(0%);
}

.learning:hover .learning_description{
    opacity: 1;
    transform: translateX(0%);
} */

.learning_element > h4{
    margin-left: 40px;
}

.blog-post:hover{
    color: #ffd500;
}

.blog-post p{
    font-size: 14px;
}

.update-description{
    float: right;
    width: 33%;
    font-size: 16px;

}

.blog-post-date{
    align-items: start;
}


#updates-footer{
    padding-top: 20px;
    height: 100px;
    width: 100%;
    text-align: center;
    position: relative;
}

.window33 {
    flex-basis: calc(33.33% - 20px); /* This ensures they take up equal space, minus 20px for consistent spacing between divs */
    padding: 10px;
    height: 300px;
    box-sizing: border-box;
    background-color: #e0e0e0;
    text-align: center;
}

.window50 {
    flex-basis: calc(50% - 25px);
    padding: 30px;
    min-height: 300px;
    height: auto;
    box-sizing: border-box;
    text-align: center;
}

.left {
    margin-right: 10px; /* This will give spacing between the first and second, and the second and third div. */
}

.window.a{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}


.window.left.first{
    background-image: url("img/ener-pov-thumbnail.png");
    background-size: cover;
}

.window.left.second{
    background-image: url("img/thon-thumbnail.webp");
    background-size: cover;
}

.window.right{
    background-image: url("img/stereopsis-thumbnail.png");
    background-size: cover;
}


/* Style the description spans */
#projects .window span {
    position: relative;
    top: 305px;
    float: left;
}


footer{
    height: 200px;
    background: #000000;
    border-top: 2px #ffd500 solid;
}

#inFooter{
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: white;
    align-content: center;
    flex-direction: row;
}

#inFooter > div{
    width: 33%;
    font-size: 100%;
}

footer img{
    max-height: 200px;
    float: right;
}

footer:hover{
    background-position: top;
}

.footer-logo{
    width: 33%;
}

#leftfoot{
    text-align: center;
    width: 50%;
    height: 100%;
    float: left;
    font-size: 1vw;
    line-height: 100px;
}

#rightfoot{
    height: 100%;
    width: 45%;
    float:left;
    overflow: hidden;
    opacity: 1;
}

/* ── Heuristics card grid ── */
.h-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 0 60px;
}

.h-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.h-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    color: inherit;
}

.h-card-thumb {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.h-card-thumb-split {
    display: flex;
    flex-direction: row;
    padding: 0;
}

.h-card-thumb-text {
    color: #ffd500;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 1px;
    padding: 0 12px;
}

.h-card-thumb-subtext {
    color: #aaa;
    font-size: 14px;
    letter-spacing: 2px;
}

.h-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.h-card-teaser {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.h-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.h-card:hover .h-card-cta {
    color: #ffd500;
}

/* ── Article reading view ── */
.article-hero {
    padding: 60px 0 50px;
    color: #fff;
    position: relative;
}

.article-back {
    display: inline-block;
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s;
}

.article-back:hover { color: #ffd500; }

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.article-hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    max-width: 780px;
    margin: 0;
    padding: 0;
}

.article-reading {
    padding: 56px 0 80px;
}

.article-body {
    max-width: 720px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.85;
    color: #222;
    margin-bottom: 22px;
}

/* ── Heuristics articles ── */
.heuristics-articles {
    padding: 20px 0 60px;
}

.h-article {
    max-width: 780px;
}

.h-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.h-article-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #ffd500;
    color: #000;
    padding: 3px 10px;
}

.h-article-date {
    font-size: 13px;
    color: #999;
    letter-spacing: 1px;
}

.h-article-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.3;
}

.h-article-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    margin-bottom: 20px;
}

.h-callout {
    background: #f7f7f7;
    border-left: 4px solid #ffd500;
    padding: 16px 20px;
    margin: 28px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.h-divider {
    margin: 60px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.h-chart-wrap {
    margin: 32px 0;
    max-width: 620px;
}

.h-chart-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.h-dk-labels {
    position: relative;
    height: 36px;
    font-size: 11px;
    color: #888;
    text-align: center;
    line-height: 1.3;
    margin-top: 6px;
}

.h-dk-labels span {
    position: absolute;
    transform: translateX(-50%);
}

/* Framing Effect visualisation */
.h-framing-vis {
    margin: 32px 0;
    max-width: 680px;
}

.h-frame-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.h-frame-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: #555;
}

.h-frame-gain .h-frame-label { color: #54a180; }
.h-frame-loss .h-frame-label { color: #d96464; }

.h-frame-option {
    margin-bottom: 14px;
}

.h-frame-opt-title {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    margin-bottom: 3px;
}

.h-frame-opt-text {
    font-size: 15px;
    margin-bottom: 7px;
}

.h-frame-bar-wrap {
    background: #f0f0f0;
    border-radius: 3px;
    height: 10px;
    width: 100%;
    margin-bottom: 4px;
}

.h-frame-bar {
    height: 10px;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.h-frame-pct {
    font-size: 12px;
    color: #888;
}

.h-frame-note {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

#projects{
    display: flex;

}

#course{
    border: 1px solid gray;
    padding: 2rem;
    min-height: 400px;
    text-align: center;
    height: auto;
    color: white;
}

#course:hover{
    background-color: #ffffff12;
    scale: 105%;
    z-index: 100;
    transition: 0.5s;
}

#course-description{
    text-align: left;
}

#course.img{
    width: 10px;
}

#course-hash{
    color: gray;
    margin-top: 10px;
    text-transform: uppercase;
    text-align: left;
}

#course-title{
    font-size: 24px;
    font-weight: bold;
    text-align: left;
}

#course button{
    width: 75%;
    background-color:white;
    padding: 16px 20px;
    text-align: center;
    color: black;
    font-weight: 600;
    border: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 16px;
}

#course button:hover{
    cursor: pointer;
}

#CTA{
    height: 0px;
    width: 0px;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 30px #232C33 solid;
    background-color: rgba(0,0,0,0);
    padding-block: 15px;
    padding-inline: 0px;
    border-width: 118px;
    margin-top: 150px;
    scroll-behavior: smooth;
}

#CTA-desc{
    margin-top: -100px;
    margin-left: -20px;
    color: #fec000;
}

/* Mobile fullscreen menu — hidden by default, shown via JS */
#fullscreen-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ink);
    z-index: 999;
    padding: 108px 48px 48px;
    overflow-y: auto;
    box-sizing: border-box;
}

#fullscreen-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 28px;
}

.mobile-group-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250, 249, 244, 0.35);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(250, 249, 244, 0.1);
}

.mobile-nav-item a {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 400;
    color: var(--paper);
    text-decoration: none;
    line-height: 1.5;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.mobile-nav-item a:hover {
    color: var(--gold);
}

#scrollEffectElement {
    opacity: 0; /* Start invisible */
    transition: opacity 0.5s ease; /* Smooth transition for the opacity */
    color: #333; /* Example text color */
    margin-top: 20px; /* Spacing from the title */
}

#fifty_master{
width: 100%;
}

#fifty_left{
    float: left;
    width: 50%;
}

#fifty_right{
    float: left;
    width: 50%;
}

#fifty_right > img{
    max-width: 85%;
}

/* ── World Made Simple: landing featured card ── */
.wms-feature-card {
    display: flex;
    flex-direction: row;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    margin: 32px 0 60px;
    min-height: 280px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wms-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

.wms-feature-thumb {
    flex: 0 0 42%;
    background: #0d0d0d;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    min-height: 260px;
}

.wms-feature-thumb-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wms-thumb-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffd500;
}

.wms-thumb-headline {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    line-height: 1.35;
}

.wms-feature-body {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.wms-feature-tag-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wms-feature-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.wms-feature-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

.wms-feature-card:hover .h-card-cta { color: #ffd500; }

/* ── World Made Simple: article body ── */
.article-hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: #bbb;
    margin-top: 16px;
    max-width: 640px;
    line-height: 1.6;
}

.wms-body .wms-intro {
    font-size: 20px;
    line-height: 1.8;
    color: #222;
    font-weight: 300;
    border-left: 4px solid #ffd500;
    padding-left: 20px;
    margin-bottom: 48px;
}

.wms-section {
    display: flex;
    gap: 32px;
    margin-bottom: 56px;
    align-items: flex-start;
}

.wms-section-num {
    flex: 0 0 48px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffd500;
    background: #111;
    padding: 6px 10px;
    text-align: center;
    margin-top: 6px;
    line-height: 1;
}

.wms-section-content {
    flex: 1;
}

.wms-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.3;
}

/* NIMBY flow diagram */
.wms-nimby-vis {
    margin: 28px 0;
    padding: 24px;
    background: #f7f7f7;
    border-left: 4px solid #ffd500;
}

.wms-nimby-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 16px;
}

.wms-nimby-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wms-nimby-box {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
    min-width: 110px;
}

.wms-nimby-box small {
    display: block;
    color: #999;
    font-size: 11px;
    margin-top: 3px;
}

.wms-nimby-trigger  { border-color: #54a180; }
.wms-nimby-result   { border-color: #d96464; background: #fff5f5; font-weight: 700; }

.wms-nimby-arrow {
    font-size: 18px;
    color: #bbb;
    flex-shrink: 0;
}

.wms-nimby-outcome {
    margin-top: 14px;
    font-size: 13px;
    color: #d96464;
    font-style: italic;
}

.wms-footer-note {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #aaa;
    line-height: 1.7;
}

/* ── Energetics: measurement method cards ── */
.ep-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.ep-method-card {
    border: 1px solid #e0e0e0;
    padding: 20px 22px;
    border-radius: 2px;
}

.ep-method-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffd500;
    background: #111;
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 10px;
}

.ep-method-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ep-method-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

/* ── Energetics: ABM article image ── */
.abm-img-block {
    margin: 32px 0;
}

.abm-img-block img {
    width: 100%;
    max-width: 680px;
    display: block;
}

.abm-img-caption {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
    font-style: italic;
}

/* ── Energetics: subjective/objective overlap visual ── */
.ep-overlap-vis {
    margin: 32px 0;
    max-width: 620px;
}

.ep-overlap-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 16px;
}

.ep-overlap-sets {
    display: flex;
    height: 110px;
    align-items: center;
}

.ep-set {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    padding: 0 16px;
}

.ep-set-obj {
    flex: 2;
    background: rgba(84,161,128,0.15);
    border: 2px solid #54a180;
    border-right: none;
    color: #54a180;
}

.ep-set-overlap {
    flex: 1;
    background: #222;
    color: #ffd500;
    font-size: 12px;
    z-index: 1;
}

.ep-set-subj {
    flex: 2;
    background: rgba(217,100,100,0.1);
    border: 2px solid #d96464;
    border-left: none;
    color: #d96464;
}

.ep-overlap-labels {
    display: flex;
    font-size: 11px;
    color: #999;
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}

.ep-overlap-labels span {
    flex: 1;
}

/* ── Site palette ───────────────────────────────────────────────────────── */
:root {
    --paper:  #faf9f4;
    --ink:    #1a1a18;
    --gold:   #ffd500;
    --muted:  #7a7a72;
    --rule:   rgba(26, 26, 24, 0.10);
}

/* ── Homepage hero (light editorial) ───────────────────────────────────── */

body { background-color: var(--paper); }

/* Subtle grid — faint dark lines on light background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 26, 24, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 24, 0.055) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

#sectionTop {
    background: var(--paper);
    color: var(--ink);
    display: block;
    position: relative;
    overflow: hidden;
    height: 90vh;
    min-height: 560px;
    border-bottom: 2px solid var(--ink);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(60px, 14vh, 130px);
}


.hero-split {
    display: grid;
    grid-template-columns: 56% 1fr;
    gap: 0 64px;
    align-items: end;
}

.hero-left {
    padding-bottom: 2px;
}

.hero-h1 {
    font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif;
    font-size: clamp(44px, 5.6vw, 82px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.06;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Clean gold text on the typed word — no background */
#sectionTop #dynamic-text {
    color: var(--gold);
}

.hero-cursor {
    color: var(--gold);
    font-style: normal;
    font-family: 'DM Serif Display', Georgia, serif;
}

.hero-right {
    display: flex;
    align-items: flex-end;
}

.hero-dynamic {
    width: 100%;
    /* No fixed height — split layout's left column (3 static lines) determines
       the row height, so this column can never cause a layout shift */
}

.hero-desc {
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--muted);
    max-width: 100%;
    margin: 0 0 24px 0;
    font-weight: 400;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 3px;
    transition: background 0.15s, padding 0.15s, color 0.15s;
}

a:hover .hero-cta {
    background: var(--gold);
    color: var(--ink);
    padding: 3px 8px;
}

/* ── Projects / Portfolio Section ─────────────────────────────────────────── */
#section-projects {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 80px 0;
}

.proj-section-heading {
    font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(32px, 3vw, 48px);
    letter-spacing: -0.01em;
    margin: 0 0 40px 0;
    padding-top: 0;
    border-top: 4px solid var(--gold);
    display: inline-block;
}

.proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.proj-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px 44px 40px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.proj-card--light {
    background: #fff;
    color: var(--ink);
    border-top: 3px solid var(--gold);
}

.proj-card--dark {
    background: var(--ink);
    color: var(--paper);
    border-top: 3px solid var(--gold);
}

.proj-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 26, 24, 0.12);
    z-index: 1;
}

.proj-card-num {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 100px;
    font-weight: 400;
    line-height: 1;
    position: absolute;
    top: 24px;
    right: 36px;
    opacity: 0.06;
    color: currentColor;
    pointer-events: none;
    user-select: none;
}

.proj-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.proj-card-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.0;
    margin: 0 0 20px 0;
}

.proj-card--light .proj-card-title { color: var(--ink); }
.proj-card--dark  .proj-card-title { color: var(--paper); }

.proj-card-desc {
    font-size: 15px;
    line-height: 1.72;
    flex: 1;
    margin-bottom: 28px;
}

.proj-card--light .proj-card-desc { color: var(--muted); }
.proj-card--dark  .proj-card-desc { color: rgba(250, 249, 244, 0.6); }

.proj-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.proj-card-tags span {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
}

.proj-card--light .proj-card-tags span {
    border: 1px solid var(--rule);
    color: var(--muted);
}

.proj-card--dark .proj-card-tags span {
    border: 1px solid rgba(250, 249, 244, 0.15);
    color: rgba(250, 249, 244, 0.45);
}

.proj-card-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 4px;
}

.proj-cta {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 1px;
    transition: letter-spacing 0.2s ease;
}

.proj-card:hover .proj-cta {
    letter-spacing: 0.15em;
}

.proj-ext-link {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.35;
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
}

.proj-card--light .proj-ext-link { color: var(--ink); }
.proj-card--dark  .proj-ext-link { color: var(--paper); }

.proj-card:hover .proj-ext-link { opacity: 0.6; }

/* Feature card (full-width, horizontal layout) */
.proj-card--feature {
    background: #f0faf7;
    color: var(--ink);
    border-top: 3px solid #2b9c89;
    margin-top: 2px;
}

.proj-card--feature .proj-tag { color: #2b9c89; }

.proj-card--feature .proj-card-tags span {
    border: 1px solid rgba(43, 156, 137, 0.25);
    color: #2b9c89;
}

.proj-card--feature .proj-card-title { color: var(--ink); }
.proj-card--feature .proj-card-desc { color: var(--muted); }
.proj-card--feature .proj-ext-link { color: var(--ink); }

.proj-card--feature .proj-cta {
    color: #2b9c89;
    border-bottom-color: #2b9c89;
}

.proj-feature-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.proj-feature-right {
    display: flex;
    align-items: center;
}

.proj-feature-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-left: 2px solid rgba(43, 156, 137, 0.2);
}

.proj-feature-stat {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(43, 156, 137, 0.12);
}

.proj-feature-stat:last-child { border-bottom: none; }

.proj-feature-stat-num {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    color: #2b9c89;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 5px;
}

.proj-feature-stat-label {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

/* ── Section 2 — light editorial updates ────────────────────────────────── */

#section2 {
    background: #fff;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
}

.section2-heading {
    font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(32px, 3vw, 48px);
    letter-spacing: -0.01em;
    margin: 0 0 0 0;
    padding-top: 60px;
    border-top: 4px solid var(--gold);
    display: inline-block;
}

#updates-container {
    margin-top: 8px;
}

.blog-post {
    border-top: 1px solid var(--rule);
    border-bottom: none;
    color: var(--ink);
    transition: background 0.15s;
    padding: 22px 12px;
}

.blog-post:hover {
    background: #faf9f4;
    color: var(--ink);
}

.blog-post h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    font-size: 20px;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.blog-post p {
    color: var(--muted);
}

.blog-post-date {
    font-size: 11px !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted) !important;
    margin: 0 0 6px 0 !important;
}

#updates-footer {
    margin-top: 32px;
    padding-bottom: 60px;
}

/* ── End homepage hero ──────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .h-cards { grid-template-columns: repeat(2, 1fr); }
    .ep-methods { grid-template-columns: 1fr; }
}

/* Add responsive styles for smaller screens (max-width: 768px) */
@media (max-width: 768px) {
    /* Adjust font size and spacing for smaller screens */
    h1 {
        font-size: 7vw;
        margin-top: 30px;
        margin-bottom: 10px;
    }

    h2 {
        font-weight: 700;
        font-size: 42px;
        padding-top: 42px;
        margin-top: 0;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-right {
        align-items: flex-start;
    }

    .hero-h1 {
        font-size: clamp(36px, 10vw, 52px);
    }

    .hero-desc {
        font-size: 15px;
    }

    .section2-heading {
        font-size: 28px;
    }

    button {
        font-size: 3vw;
    }

    /* Mobile: show hamburger, hide desktop nav */
    #normal-menu {
        display: none;
    }

    #menu-icon {
        display: flex;
    }

    .nav-container {
        padding: 0 24px;
    }

    /* Adjust main text container width */
    #main-text-container {
        max-width: 100%;
    }

    /* Adjust button styles */
    #description-link {
        font-size: 14px;
        padding: 10px 0;
    }

    /* Adjust blog post styles */
    .blog-post {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
    }

    .learning_element{
        font-size: 4vw;
        font-weight: bold;
        position: relative;
        left: 0;
    }

    .learning_curve{
        flex-direction: column;
    }

    .learning_description{
        width: 100%;
    }

    .learning-list{
        display: none;
    }

    .update-description {
        width: 100%;
    }

    #projects{
        flex-direction: column;
    }

    /* Adjust footer styles */
    footer {
        height: auto;
        background-position: top;
    }

    footer img {
        height: 150px;
    }

    #leftfoot {
        width: 100%;
        text-align: center;
        font-size: 18px;
        line-height: 30px;
    }

    #rightfoot {
        width: 100%;
    }

    .h-cards { grid-template-columns: 1fr; }
    .proj-grid { grid-template-columns: 1fr; gap: 2px; }
    .proj-card { padding: 36px 28px 32px; }
    .proj-card-num { font-size: 70px; top: 20px; right: 24px; }
    .proj-feature-inner { grid-template-columns: 1fr; gap: 36px; }
    .proj-feature-stats { border-left: none; border-top: 2px solid rgba(43, 156, 137, 0.2); flex-direction: row; flex-wrap: wrap; }
    .proj-feature-stat { flex: 1 1 40%; border-bottom: 1px solid rgba(43, 156, 137, 0.12); border-right: none; }
    .proj-feature-stat-num { font-size: 26px; }

    .article-hero-title { font-size: 26px; }

    .wms-feature-card { flex-direction: column; }
    .wms-feature-thumb { flex: none; min-height: 180px; }
    .wms-feature-body { padding: 24px; }

    .wms-section { flex-direction: column; gap: 12px; }
    .wms-section-num { align-self: flex-start; }
    .wms-nimby-flow { flex-direction: column; align-items: flex-start; }
    .wms-nimby-arrow { transform: rotate(90deg); }

    /* Hamburger animation states */
    .bar.a.open-bar { transform: rotate(45deg) translate(5px, 5px); }
    .bar.b.open-bar { opacity: 0; transform: scaleX(0); }
    .bar.c.open-bar { transform: rotate(-45deg) translate(5px, -5px); }
    
}

/* Shared keyboard, mobile and reduced-motion support. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3000; padding: 12px; background: #ffd500; color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #a87900; outline-offset: 4px; }
main:focus { outline: none; }
button.nav-link { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
#menu-icon { border: 0; background: transparent; padding: 0; min-width: 44px; min-height: 44px; z-index: 1001; }
.menu-open { overflow: hidden; }
.menu-open #menu-icon { position: relative; }
.menu-open #menu-icon .bar { background: #fff; }
.menu-open #menu-icon .bar.a { transform: translateY(7px) rotate(45deg); }
.menu-open #menu-icon .bar.b { opacity: 0; }
.menu-open #menu-icon .bar.c { transform: translateY(-7px) rotate(-45deg); }
.nav-item.is-open > .nav-dropdown { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
.poverty-chart { max-width: 700px; margin: 40px auto; }
.poverty-chart figcaption { font-weight: 600; }
.poverty-chart dd { margin: 6px 0 16px; }
.poverty-chart dd span { display: block; box-sizing: border-box; min-width: 9em; padding: 8px; background: #237d6f; color: white; }
.poverty-chart p { font-size: 0.85rem; }
@media (max-width: 768px) { #fullscreen-menu { padding: 88px 24px 32px; height: 100dvh; } .mobile-nav-item a { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { html, body { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* Keep intrinsic image dimensions from stretching a flex navigation bar. */
.nav-logo { min-width: 0; }
.nav-logo img { width: auto; height: 30px; max-height: 30px; }
#sectionTop { height: auto; min-height: 0; padding-bottom: 56px; }
#sectionTop.home-hero { min-height: 560px; }
#sectionTop #dynamic-text { color: #805b00; }
#description-button { visibility: visible; }
@media (max-width: 768px) {
    #sectionTop.home-hero { min-height: 0; }
    .hero-inner { padding-top: 64px; }
    .hero-dynamic { min-height: 0; }
    .hero-split { gap: 24px; }
    .hero-h1 { margin: 0; }
}

#description-text.hero-desc { font-size: clamp(16px, 1.3vw, 18px); color: #5a5a53; }
