
html {
    scroll-behavior: smooth;
}
p {
  margin-bottom: 1.2em; /* gap between paragraphs */
}
/*Project-hero*/
.project-hero{
    min-height: 90vh;
    padding: 64px;
    margin: 0;
    position: relative;
}
.project-name{
    font-family: var(--font-poppins);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: normal;
    margin-bottom: 24px;
}
.project-tags{
    position: absolute;
    display: flex;
    top: 132px;
    right: 64px;
    gap: 12px;
}
/* Hero image */
.project-hero-img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}
.project-hero-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.project-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 24px;
    color: var(--gray);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.meta-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tool-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.project-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* sidebar fixed width, content fills rest */
    gap: 64px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 48px;
    align-items: start;
}
.back-link{
    color: var(--black);
    font-size: 24px;
    margin-bottom: 64px;
    text-decoration: none;
}
.project-sidebar{
    position: sticky;
    top: 120px;        /* sits below the fixed nav */
    align-self: start; /* crucial — stops it stretching full height */
    display: flex;
    flex-direction: column;
}
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-links a {
    font-size: 18px;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-links a:hover {
    color: var(--black);
}
.sidebar-links a.active {
    color: var(--black);
    font-weight: 600;
}
.sidebar-nav {
    display: flex;
    gap: 16px;
    align-items: stretch; /* rail stretches to match the links column's rendered height */
}
.sidebar-progress {
    width: 2px;
    flex-shrink: 0;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.sidebar-progress-fill {
    width: 100%;
    height: 0%; /* JS drives this 0–100% as you scroll through the case study */
    background: var(--black);
}
/* Dark block for turning point */
.dark-block { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; padding: 32px; 
    border-radius: 24px; 
    background: #3C3C3C; 
    color: #fff; 
    margin: 12px 0 32px;
}
.dark-block .content-heading-dk {
    color: rgba(255, 255, 255, 0.5); 
    margin-bottom: 5px;
    }
.dark-block .content-body-large {
    margin: 0;
    font-family: var(--font-poppins);
    font-weight:650;
    font-size: 30px;
    line-height: 1.6;
    letter-spacing: -0.02em;
}
.dark-block--blue {
    background: #4A91E2;
}
/* Content sections Text*/
.content-section {
    align-items: center;   
    padding-bottom: 64px;
    scroll-margin-top: 5rem;
}
.content-heading {
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}
.content-title {
    margin-bottom: 24px; 
}
.content-subtitle{
    font-family: var(--font-body);
    font-size: 24px;
    margin: 48px 0 0;
}
.content-body{
    font-size: 24px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.8);
    text-align: justify;
    margin-top: 12px;
}
.content-img {
    display: cover;
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 24px 0 0;
    cursor: zoom-in;
}
.content-img--full {
    width: 1100px;
    max-width: auto;
    border-radius: 12px;
}
.content-caption{
    justify-self: center;
    font-family: var(--font-body);
    font-size: 24px;
    color: var(--gray);
    margin-top: 12px;
    margin-bottom: 5px;
}
.ui-title {
    border-radius: 32px;
    overflow: hidden;
    background: var(--white);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    
}
.ui-title img{ 
    width: 100%;
    height: auto;
    display: block;
    
}
.ui-tile.span-2 {
    grid-column: span 2;
}
/* Card grid layouts */
.card-grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; }

.card-grid-3 { display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
}
.card-grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 12px; 
    margin: 24px 0 24px;
}
.card-grid-5 { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 12px; 
    margin: 32px 0 32px;
}
/* Info cards */
.info-card { 
    padding: 24px; 
    border-radius: 20px; 
    background: #fff; 
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 32px;
    gap: 12px; 
}
.info-card .content-heading { 
    font-family: var(--font-body);
    font-size: 20px; 
    letter-spacing: 0.04em; 
    color: rgba(0, 0, 0, 0.863); 
}
.info-card ul { 
    margin: 0; 
    padding-left: 18px; 
    font-family: var(--font-body); 
    font-size: 20px; 
    line-height: 1.6; 
    color: rgba(0, 0, 0, 0.55); 
}
/* Step cards */
.step-card {
    padding: 20px; 
    border-radius: 16px; 
    background: #fff; 
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}
.step-card .index { 
    font-family: var(--font-body); 
    font-size: 16px; 
    font-weight: 600;
    letter-spacing: 0.06em; 
    color: rgba(0, 0, 0, 0.3); 
}
.step-card .title { 
    font-family: var(--font-display); 
    font-weight: 700; 
    font-size: 18px; 
    letter-spacing: -0.01em; 
}
.step-card .desc { 
    font-family: var(--font-body); 
    font-size: 16px;
    line-height: 1.4; 
    color: rgba(0, 0, 0, 0.5); 
}
.step-card.is-chosen {
    background: #3C3C3C;
    color: #fff;
    justify-content: center;
}
.step-card.is-chosen .index {
    color: rgba(255, 255, 255, 0.6);
}
.step-card.is-chosen .title {
    font-size: 20px;
}
/* Stats cards */
.stat-card { 
    padding: 24px; 
    border-radius: 20px; 
    background: #fff; 
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.stat-card .number { 
    font-family: var(--font-display); 
    font-weight: 700; 
    font-size: 36px; 
    line-height: 1; 
    letter-spacing: -0.03em; 
    color: #0A0A0A; 
}
.stat-card .desc { 
    font-family: var(--font-body); 
    font-size: 15px; 
    line-height: 1.4; 
    color: rgba(0, 0, 0, 0.55); 
}
.stat-card.span-2 { 
    grid-column: span 2; 

}
/* Persona cards */
.persona-label {
    font-size: 16px;
    color: var(--gray);
    margin: 12px  0 12px;
}
.persona-card {
    display: grid;
    grid-template-columns: 200px 1fr 1.5fr; /* avatar | details | info */
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}
/* Left — coloured avatar block */
.persona-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.persona-card--eddy .persona-avatar {
    background: var(--blue)
}
.persona-card--caus .persona-avatar {
    background: #FF6B54
}
.persona-avatar img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Middle — name and quick facts */
.persona-details {
    padding: 32px;
    border-right: 1px solid var(--border);
}

.persona-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.persona-meta {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.persona-meta li {
    font-size: 15px;
    color: var(--gray);
    position: relative;
    padding-left: 16px;
}

/* Custom bullet dot */
.persona-meta li::before {
    content: '•';
    position: absolute;
    left: 0;
}

/* Right — pain points and needs */
.persona-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.persona-subhead {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.persona-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.persona-info li {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    position: relative;
    padding-left: 16px;
}

.persona-info li::before {
    content: '•';
    position: absolute;
    left: 0;
}
.empathy-map{
    position: relative;
    margin: 32px 0 32px;
}
.empathy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 24px;
}
.empathy-quadrant {
    border-radius: 24px;
    padding: 32px;
}
.empathy-quadrant.top {
    padding-bottom: 64px; 
}
.empathy-quadrant.empathy-quadrant--red {
    background: #ff6b5462;
}
.empathy-quadrant.empathy-quadrant--blue {
    background: #4a91e269;
}
.empathy-quadrant.empathy-quadrant--yellow {
    background: #f5a52370;
}
.empathy-quadrant.empathy-quadrant--green {
    background: #7dd3217c;
}
.empathy-quadrant.bottom {
    padding-top: 64px; 
}
.empathy-quadrant-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}
.empathy-quadrant-title {
    font-family: var(--font-poppins);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 18px 0;
}
.empathy-quadrant ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.empathy-quadrant li {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.55);
    position: relative;
    padding-left: 18px;
}
.empathy-quadrant li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--black);
}
.empathy-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 196px;
    height: 196px;
    border-radius: 50%;
    background: var(--bg);
    padding: 14px;
    pointer-events: none;
}
.empathy-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.empathy-caption-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}
.empathy-caption-row span {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--gray);
    letter-spacing: 0.04em;
}
/* Finding style*/
.finding-list { 
    display: flex; 
    flex-direction: column; 
    gap: 3px; 
    background: rgba(0, 0, 0, 0.08); 
    border-radius: 24px; 
    overflow: hidden; 
    margin: 32px 0;
}
.finding-row { 
    background: #F6F6F6; 
    padding: 24px; 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; 
    gap: 24px; 
    align-items: start; 
}
.finding-row .finding { 
    margin: 0; 
    font-family: var(--font-body); 
    font-weight: 700; 
    font-size: 18px; 
    line-height: 1.4; 
    color: #0A0A0A; 
}
.finding-row .so { 
    margin: 0; 
    font-family: var(--font-body); 
    font-size: 18px; 
    line-height: 1.4; 
    color: rgba(0, 0, 0, 0.55); 
}
.finding-row .so span { 
    color: #0A0A0A; 
}
/*3*/
.priority-table { 
    display: flex; 
    flex-direction: column; 
}
.priority-row { 
    display: grid; 
    grid-template-columns: 1.2fr 2fr 0.8fr; 
    gap: 20px; padding: 18px 0; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
    align-items: start; 
}
.priority-row.head { 
    padding: 12px 0; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.12); 
    font-family: var(--font-sans); 
    font-size: 18px; 
    letter-spacing: 0.04em; color: rgba(0, 0, 0, 0.4); 
}
.priority-row .opportunity { 
    font-family: var(--font-display); 
    font-weight: 700;
    font-size: 18px; 
}
.priority-row .evidence { 
    font-family: var(--font-body); 
    font-size: 16px; 
    line-height: 1.55; 
    color: rgba(0, 0, 0, 0.55); 
}
.decision-tag { 
    font-family: var(--font-body); 
    font-size: 14px; 
    padding: 5px 12px; 
    border-radius: 24px; 
    justify-self: start; 
}
.decision-tag.core { 
    color: #fff; 
    background: #3C3C3C; 
}
.decision-tag.supporting { 
    background: #fff;
    color: rgba(0, 0, 0, 0.55); 
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); 
}
.decision-tag.parked {
    background: #fff;
    color: rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }

/* Visual language — colour swatches */
.palette-group-label {
    font-family: var(--font-poppins);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
    margin: 32px 0 16px;
}
.palette-primary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}
.palette-secondary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.palette-neutrals {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.swatch {
    border-radius: var(--r-tile-lg);
    padding: 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.swatch.is-large {
    padding: 32px;
    min-height: 240px;
}
.swatch-name {
    font-family: var(--font-poppins);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.swatch-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-poppins);
    font-size: 14px;
}
.swatch-values .hex {
    font-weight: 600;
}

.type-scale-table {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 8px 32px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.type-scale-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    align-items: baseline;
}
.type-scale-row:last-child {
    border-bottom: none;
}
.type-scale-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-poppins);
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}
.type-scale-meta .label {
    font-weight: 600;
    color: var(--black);
    font-size: 15px;
}
/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(17, 17, 16, 0.94);
    cursor: zoom-out;
}
.lightbox[hidden] {
    display: none;
}
.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 900px) {
    .content-img--full {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}