/* ===================================
   VARIABLES & RESET
=================================== */
:root {
    --navy:       #0F2744;
    --navy-mid:   #1E3A5F;
    --navy-light: #2B5282;
    --blue-accent:#3B82F6;
    --blue-light: #EBF4FF;
    --gold:       #C5A028;
    --white:      #FFFFFF;
    --off-white:  #F7F9FC;
    --light-grey: #EDF2F7;
    --text-dark:  #1A202C;
    --text-mid:   #4A5568;
    --text-light: #718096;
    --shadow:     0 4px 20px rgba(15,39,68,0.10);
    --shadow-hover: 0 8px 40px rgba(15,39,68,0.18);
    --radius:     12px;
    --ease-out:   cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

/* Skip-to-main link — visually hidden until focused */
.skip-link {
    position:fixed; top:12px; left:12px; z-index:9999;
    background:var(--blue-accent); color:var(--white);
    padding:10px 18px; border-radius:6px;
    font-family:'Raleway',sans-serif; font-size:0.9rem; font-weight:700;
    transform:translateY(-120%);
    transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform:translateY(0); }
body { font-family:'Open Sans',sans-serif; color:var(--text-dark); background:var(--white); line-height:1.7; }
h1,h2,h3,h4 { font-family:'Raleway',sans-serif; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
img { max-width:100%; display:block; }

/* ===================================
   NAVBAR
=================================== */
.navbar {
    position:fixed; top:0; left:0; right:0; z-index:1000;
    padding:20px 0;
    transition: background 250ms var(--ease-out), padding 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.navbar.scrolled {
    background:var(--navy);
    padding:14px 0;
    box-shadow:0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
    max-width:1200px; margin:0 auto; padding:0 24px;
    display:flex; align-items:center; justify-content:space-between;
}
.nav-logo {
    font-family:'Raleway',sans-serif; font-weight:800;
    font-size:1.5rem; color:var(--white); letter-spacing:2px;
}
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-links li a {
    color:rgba(255,255,255,0.85); font-size:0.86rem; font-weight:600;
    letter-spacing:0.5px; padding:8px 12px; border-radius:6px;
    transition: background 160ms var(--ease-out), color 160ms var(--ease-out); font-family:'Raleway',sans-serif;
}
.nav-links li a:hover { color:var(--white); background:rgba(255,255,255,0.1); }
.nav-links li a:focus-visible { outline:2px solid var(--white); outline-offset:3px; }
.nav-links li a.nav-cta {
    background:var(--blue-accent); color:var(--white);
    padding:8px 18px; border-radius:6px;
}
.nav-links li a.nav-cta:hover { background:#2563EB; }
@media (hover:hover) and (pointer:fine) {
    .nav-links li a.nav-cta:hover { transform:translateY(-1px); }
}
.nav-toggle {
    display:none; flex-direction:column; gap:5px;
    background:none; border:none; cursor:pointer; padding:4px;
}
.nav-toggle span { display:block; width:24px; height:2px; background:white; border-radius:2px; transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out); }

/* ===================================
   SECTION COMMON
=================================== */
.section-container { max-width:1200px; margin:0 auto; padding:100px 24px; }
.section-header { text-align:center; margin-bottom:64px; }
.section-label {
    font-family:'Raleway',sans-serif; font-size:0.78rem; font-weight:700;
    letter-spacing:3px; text-transform:uppercase; color:var(--blue-accent); margin-bottom:12px;
}
.section-title { font-size:2.4rem; font-weight:800; color:var(--navy); margin-bottom:16px; }
.section-subtitle { font-size:1rem; color:var(--text-mid); max-width:600px; margin:0 auto; }
.section-header.light .section-label { color:rgba(255,255,255,0.65); }
.section-header.light .section-title  { color:var(--white); }
.section-header.light .section-subtitle { color:rgba(255,255,255,0.65); }

/* ===================================
   BUTTONS
=================================== */
.btn {
    display:inline-flex; align-items:center; gap:8px;
    padding:14px 28px; border-radius:8px;
    font-family:'Raleway',sans-serif; font-weight:700;
    font-size:0.9rem; letter-spacing:0.5px;
    transition: background 160ms var(--ease-out), transform 150ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
    cursor:pointer; border:2px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline:2px solid var(--blue-accent); outline-offset:3px; }
.btn-primary { background:var(--blue-accent); color:var(--white); }
.btn-primary:hover { background:#2563EB; box-shadow:0 8px 25px rgba(59,130,246,0.4); }
.btn-primary:active { background:#2563EB; transform:scale(0.97); box-shadow:none; }
.btn-outline { background:transparent; color:var(--white); border-color:rgba(255,255,255,0.4); }
.btn-outline:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.7); }
.btn-white { background:var(--white); color:var(--navy); }
.btn-white:hover { background:var(--off-white); box-shadow:0 8px 25px rgba(0,0,0,0.2); }
.btn-outline-white { background:transparent; color:var(--white); border-color:rgba(255,255,255,0.5); }
.btn-outline-white:hover { background:rgba(255,255,255,0.1); border-color:var(--white); }
@media (hover:hover) and (pointer:fine) {
    .btn-primary:hover     { transform:translateY(-2px); }
    .btn-outline:hover     { transform:translateY(-2px); }
    .btn-white:hover       { transform:translateY(-2px); }
    .btn-outline-white:hover { transform:translateY(-2px); }
}

/* ===================================
   HERO
=================================== */
.hero {
    min-height:100vh;
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4a7a 100%);
    display:flex; flex-direction:column; justify-content:center;
    position:relative; overflow:hidden;
}
.hero::before {
    content:''; position:absolute; top:-50%; right:-20%;
    width:600px; height:600px;
    background:rgba(59,130,246,0.07); border-radius:50%;
}
.hero::after {
    content:''; position:absolute; bottom:-30%; left:-10%;
    width:400px; height:400px;
    background:rgba(59,130,246,0.05); border-radius:50%;
}
.hero-container {
    max-width:1200px; margin:0 auto; padding:120px 24px 80px;
    display:grid; grid-template-columns:1.2fr 1fr; gap:80px;
    align-items:center; position:relative; z-index:1;
}
.hero-label {
    font-family:'Raleway',sans-serif; font-size:0.78rem; font-weight:700;
    letter-spacing:4px; text-transform:uppercase;
    color:var(--blue-accent); margin-bottom:20px;
}
.hero-name {
    font-size:clamp(2.2rem,4vw,3.4rem); font-weight:800;
    color:var(--white); line-height:1.1; margin-bottom:20px;
}
.hero-tagline { font-size:1.1rem; color:rgba(255,255,255,0.72); margin-bottom:32px; line-height:1.7; }
.hero-highlights { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:40px; }
.hero-highlights span {
    background:rgba(255,255,255,0.1); color:rgba(255,255,255,0.88);
    font-size:0.8rem; font-weight:600; padding:8px 16px;
    border-radius:50px; border:1px solid rgba(255,255,255,0.15);
    font-family:'Raleway',sans-serif;
}
.hero-cta { display:flex; gap:16px; flex-wrap:wrap; }

.hero-image { display:flex; justify-content:center; align-items:center; }
.image-frame {
    width:360px; height:460px; border-radius:20px; overflow:hidden;
    border:4px solid rgba(255,255,255,0.15);
    box-shadow:0 30px 80px rgba(0,0,0,0.4);
}
.image-frame img { width:100%; height:100%; object-fit:cover; object-position:top center; }

.hero-scroll-indicator {
    position:absolute; bottom:32px; left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:8px;
    color:rgba(255,255,255,0.45); font-size:0.72rem;
    font-family:'Raleway',sans-serif; letter-spacing:1px;
    animation:bounce 2.5s infinite;
}
.scroll-arrow {
    width:18px; height:18px;
    border-right:2px solid rgba(255,255,255,0.35);
    border-bottom:2px solid rgba(255,255,255,0.35);
    transform:rotate(45deg);
}
@keyframes bounce {
    0%,100% { transform:translateX(-50%) translateY(0); }
    50%      { transform:translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-indicator { animation: none; }
}

/* ===================================
   ABOUT
=================================== */
.about { background:var(--off-white); }
.about-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:80px; align-items:start; }
.about-text p { color:var(--text-mid); margin-bottom:18px; font-size:0.98rem; line-height:1.85; max-width:72ch; }
.about-stats { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.stat-card {
    background:var(--white); border-radius:var(--radius);
    padding:28px 20px; text-align:center;
    box-shadow:var(--shadow); border-top:4px solid var(--blue-accent);
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
    text-decoration:none; color:inherit; cursor:pointer; display:block;
}
.stat-card:active { transform:scale(0.98); box-shadow:var(--shadow); }
.stat-card:focus-visible { outline:2px solid var(--blue-accent); outline-offset:3px; }
@media (hover:hover) and (pointer:fine) {
    .stat-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); }
}
.stat-number { display:block; font-family:'Raleway',sans-serif; font-size:2.4rem; font-weight:800; color:var(--navy); margin-bottom:8px; }
.stat-label  { display:block; font-size:0.78rem; color:var(--text-light); font-weight:600; line-height:1.4; }

/* ===================================
   EXPERIENCE
=================================== */
.experience { background:var(--white); }
.exp-category {
    font-family:'Raleway',sans-serif; font-size:0.82rem; font-weight:700;
    letter-spacing:2px; text-transform:uppercase; color:var(--text-light);
    margin-bottom:36px; padding-bottom:12px; border-bottom:2px solid var(--light-grey);
}
.exp-category + .exp-category,
.timeline + .exp-category { margin-top:64px; }

.timeline { position:relative; padding-left:32px; }
.timeline::before {
    content:''; position:absolute; left:8px; top:0; bottom:0;
    width:2px; background:var(--light-grey);
}
.timeline-item { position:relative; margin-bottom:48px; }
.timeline-dot {
    position:absolute; left:-28px; top:10px;
    width:16px; height:16px;
    background:var(--blue-accent); border-radius:50%;
    border:3px solid var(--white); box-shadow:0 0 0 2px var(--blue-accent);
}
.timeline-content {
    background:var(--off-white); border-radius:var(--radius);
    padding:28px 32px; border-left:4px solid var(--blue-accent);
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover:hover) and (pointer:fine) {
    .timeline-content:hover { box-shadow:var(--shadow); transform:translateX(4px); }
}
.timeline-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; gap:16px; }
.timeline-role    { font-size:1.08rem; font-weight:700; color:var(--navy); margin-bottom:4px; }
.timeline-company { font-size:0.93rem; font-weight:600; color:var(--blue-accent); margin-bottom:2px; }
.timeline-location{ font-size:0.78rem; color:var(--text-light); }
.timeline-date {
    font-family:'Raleway',sans-serif; font-size:0.8rem; font-weight:700;
    color:var(--white); background:var(--navy-mid);
    padding:4px 14px; border-radius:50px; white-space:nowrap; flex-shrink:0;
}
.timeline-bullets { list-style:disc; padding-left:20px; max-width:72ch; }
.timeline-bullets li { color:var(--text-mid); font-size:0.9rem; margin-bottom:8px; line-height:1.65; }

/* ===================================
   EDUCATION
=================================== */
.education { background:linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.education .section-title { color:var(--white); }
.education .section-label { color:rgba(255,255,255,0.55); }
.edu-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.edu-awards-divider {
    border: none;
    border-top: 1.5px solid rgba(255,255,255,0.12);
    margin: 48px 0 40px;
}
.edu-card {
    background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.13);
    border-radius:var(--radius); padding:40px 32px;
    transition: background 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); backdrop-filter:blur(8px);
}
.edu-card:active { transform:scale(0.98); }
@media (hover:hover) and (pointer:fine) {
    .edu-card:hover { background:rgba(255,255,255,0.11); transform:translateY(-4px); box-shadow:0 8px 32px rgba(0,0,0,0.2); }
}
.edu-icon   { width:40px; height:40px; margin-bottom:20px; color:var(--blue-accent); }
.edu-icon svg { width:100%; height:100%; }
.edu-degree { font-size:1.1rem; font-weight:700; color:var(--white); margin-bottom:6px; }
.edu-field  { font-size:0.88rem; color:var(--blue-accent); font-weight:600; margin-bottom:12px; }
.edu-uni    { font-size:0.93rem; color:rgba(255,255,255,0.8); font-weight:600; margin-bottom:4px; }
.edu-date   { font-size:0.8rem; color:rgba(255,255,255,0.45); margin-bottom:16px; font-family:'Raleway',sans-serif; font-weight:600; }
.edu-courses{ font-size:0.8rem; color:rgba(255,255,255,0.5); line-height:1.75; }

/* ===================================
   PROJECTS
=================================== */
.projects { background:var(--off-white); }
.projects-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.project-card {
    background:var(--white); border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition: transform 220ms var(--ease-out),
                box-shadow 220ms var(--ease-out),
                opacity 300ms var(--ease-out);
    display:block; cursor:pointer;
}
.project-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow);
}
.project-card:focus-visible { outline:2px solid var(--blue-accent); outline-offset:3px; }
@media (hover:hover) and (pointer:fine) {
    .project-card:hover {
        will-change: transform;
        transform: translateY(-6px);
        box-shadow:
            0 12px 32px rgba(15,39,68,0.16),
            0 0 0 1.5px rgba(59,130,246,0.55),
            0 0 22px rgba(59,130,246,0.12);
    }
    .project-card:hover .project-img img { transform:scale(1.03); }
    .project-card:hover .project-link { transform:translateX(4px); }
}
.project-img { height:200px; overflow:hidden; }
.project-img-placeholder {
    width:100%; height:100%;
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    display:flex; flex-direction:column; justify-content:center; align-items:center; gap:10px;
}
.project-img-placeholder.coming-soon { background:linear-gradient(135deg,#2D3748 0%,#4A5568 100%); }
.project-icon { font-size:3rem; }
.cs-label {
    font-family:'Raleway',sans-serif; font-size:0.68rem; font-weight:700;
    letter-spacing:2px; text-transform:uppercase; color:rgba(255,255,255,0.45);
}
.project-body { padding:24px; }
.project-tag {
    font-size:0.7rem; font-weight:700; letter-spacing:1px;
    text-transform:uppercase; color:var(--blue-accent); font-family:'Raleway',sans-serif;
}
.project-title { font-size:1.02rem; font-weight:700; color:var(--navy); margin:10px 0; line-height:1.3; }
.project-desc  { font-size:0.84rem; color:var(--text-mid); line-height:1.65; margin-bottom:16px; }
.project-link  {
    font-family:'Raleway',sans-serif; font-size:0.82rem; font-weight:700;
    color:var(--blue-accent); display:inline-flex; align-items:center; gap:4px;
    transition: transform 220ms var(--ease-out), color 160ms var(--ease-out);
}

/* Project image — contained scale, no overflow */
.project-img img { width:100%; height:100%; object-fit:cover; transition:transform 220ms var(--ease-out); }

/* ===================================
   AWARDS & PUBLICATIONS
=================================== */
.awards { background:var(--white); }
.awards-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.award-card {
    background:var(--off-white); border-radius:var(--radius);
    padding:40px 32px; display:flex; gap:24px;
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); border-top:4px solid var(--gold);
    position:relative; cursor:pointer;
}
.award-card:active { transform:scale(0.98); }
.award-card:focus-visible { outline:2px solid var(--blue-accent); outline-offset:3px; }
@media (hover:hover) and (pointer:fine) {
    .award-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
}
.award-stretched-link {
    position:absolute; inset:0; z-index:0;
    border-radius:var(--radius);
}
.award-doi { position:relative; z-index:1; }
.award-icon { width:40px; height:40px; flex-shrink:0; color:var(--navy-mid); }
.award-icon svg { width:100%; height:100%; }
.award-badge {
    display:inline-block; font-family:'Raleway',sans-serif;
    font-size:0.68rem; font-weight:700; letter-spacing:2px; text-transform:uppercase;
    padding:3px 12px; border-radius:50px; background:var(--gold); color:var(--white); margin-bottom:12px;
}
.award-badge.pub { background:var(--navy-mid); }
.award-title  { font-size:1.02rem; font-weight:700; color:var(--navy); margin-bottom:6px; line-height:1.35; }
.award-event  { font-size:0.8rem; color:var(--blue-accent); font-weight:600; margin-bottom:12px; font-family:'Raleway',sans-serif; }
.award-desc   { font-size:0.87rem; color:var(--text-mid); line-height:1.72; margin-bottom:12px; }
.award-doi    { font-size:0.8rem; color:var(--blue-accent); font-weight:600; transition: color 160ms var(--ease-out); }
@media (hover:hover) and (pointer:fine) {
    .award-doi:hover { color:var(--navy); }
}

/* ===================================
   SKILLS
=================================== */
.skills { background:var(--blue-light); }
.skills-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.skill-group { background:var(--white); border-radius:var(--radius); padding:32px 28px; box-shadow:var(--shadow); }
.skill-group-title {
    font-size:0.97rem; font-weight:700; color:var(--navy);
    margin-bottom:20px; padding-bottom:12px; border-bottom:2px solid var(--light-grey);
}
.skill-tags { display:flex; flex-wrap:wrap; gap:10px; }
.skill-tags span {
    background:var(--off-white); color:var(--text-mid);
    font-size:0.78rem; font-weight:600; padding:6px 14px;
    border-radius:50px; border:1px solid var(--light-grey);
    transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out); font-family:'Raleway',sans-serif;
    cursor:pointer; user-select:none;
}
.skill-tags span:hover { background:var(--navy); color:var(--white); border-color:var(--navy); }
.skill-tags span:focus-visible { outline:2px solid var(--blue-accent); outline-offset:3px; }
.skill-tags .skill-highlight {
    background:var(--navy); color:var(--white);
    border-color:var(--navy); font-weight:700;
}
.skill-tags .skill-highlight:hover { background:#0a1f44; border-color:#0a1f44; }

/* Active filter tag */
.skill-tag--active,
.skill-tag--active.skill-highlight {
    background: var(--blue-accent) !important;
    color: #fff !important;
    border-color: var(--blue-accent) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}

/* Filter dimming is applied via inline styles in script.js (not a CSS class).
   Inline styles have the highest specificity and always beat .fade-in.visible,
   so no !important hacks are needed. The transition on .project-card handles
   the smooth fade between states automatically. */

/* Filter bar */
.filter-bar {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 10px 16px;
    background: var(--blue-light);
    border-radius: 50px;
    border: 1px solid rgba(59,130,246,0.2);
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
}
.filter-bar.active {
    display: flex;
    animation: filterBarIn 200ms var(--ease-out) both;
}
@keyframes filterBarIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.filter-bar-label { flex: 1; }
.filter-bar-label strong { color: var(--blue-accent); }
.filter-clear-btn {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 5px 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms var(--ease-out);
    white-space: nowrap;
}
.filter-clear-btn:hover { background: var(--blue-accent); }

/* ===================================
   EXTRACURRICULAR
=================================== */
.extracurricular { background:var(--white); }
.extra-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.extra-card {
    background:var(--off-white); border-radius:var(--radius);
    padding:36px 32px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); border-left:4px solid var(--navy-mid);
}
.extra-card:active { transform:scale(0.98); }
@media (hover:hover) and (pointer:fine) {
    .extra-card:hover { box-shadow:var(--shadow); transform:translateY(-4px); }
}
.extra-header { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.extra-icon  { width:36px; height:36px; color:var(--blue-accent); flex-shrink:0; }
.extra-icon svg { width:100%; height:100%; }
.extra-title { font-size:1.02rem; font-weight:700; color:var(--navy); margin-bottom:4px; }
.extra-role  { font-size:0.8rem; color:var(--blue-accent); font-weight:600; font-family:'Raleway',sans-serif; }
.extra-bullets { list-style:disc; padding-left:20px; }
.extra-bullets li { color:var(--text-mid); font-size:0.87rem; margin-bottom:8px; line-height:1.65; }

/* ===================================
   HOBBIES CTA
=================================== */
.hobbies-cta {
    background: linear-gradient(135deg, var(--navy) 0%, oklch(0.22 0.06 250) 100%);
    padding: 72px 0;
}
.hobbies-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.hobbies-cta-text { flex: 1; min-width: 260px; }
.hobbies-cta-title {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
    color: var(--white); margin: 8px 0 12px; line-height: 1.25;
}
.hobbies-cta-sub {
    color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.7; max-width: 480px;
}
.hobbies-cta-btn {
    display: inline-block; padding: 16px 36px;
    background: var(--blue-accent); color: var(--white);
    border-radius: 50px; font-family: var(--font-heading); font-weight: 700;
    font-size: 1rem; text-decoration: none; white-space: nowrap;
    transition: background 160ms var(--ease-out), transform 150ms var(--ease-out), box-shadow 160ms var(--ease-out); flex-shrink: 0;
}
.hobbies-cta-btn:active { transform: scale(0.97); }
@media (hover:hover) and (pointer:fine) {
    .hobbies-cta-btn:hover { background: oklch(0.55 0.18 210); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
}
@media (max-width: 640px) {
    .hobbies-cta-inner { flex-direction: column; text-align: center; }
    .hobbies-cta-sub { max-width: 100%; }
}

/* ===================================
   CONTACT
=================================== */
.contact {
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    text-align:center;
}
.contact-buttons { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; }

/* ===================================
   FOOTER
=================================== */
.footer {
    background:var(--navy); text-align:center; padding:24px;
    color:rgba(255,255,255,0.35); font-size:0.8rem;
    font-family:'Raleway',sans-serif;
    border-top:1px solid rgba(255,255,255,0.05);
}
.footer a {
    color:rgba(255,255,255,0.55);
    transition: color 160ms var(--ease-out);
}
.footer a:hover { color:rgba(255,255,255,0.85); }

/* ===================================
   PROJECT DETAIL PAGES
=================================== */
.project-hero {
    min-height:55vh;
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    display:flex; align-items:flex-end; position:relative; overflow:hidden;
    padding-top:80px;
}
.project-hero::before {
    content:''; position:absolute; top:-40%; right:-15%;
    width:500px; height:500px; background:rgba(59,130,246,0.07); border-radius:50%;
}
.project-hero-content {
    max-width:1200px; margin:0 auto; padding:60px 24px;
    position:relative; z-index:1; width:100%;
}
.project-hero-back {
    display:inline-flex; align-items:center; gap:8px;
    color:rgba(255,255,255,0.6); font-family:'Raleway',sans-serif;
    font-size:0.82rem; font-weight:600; margin-bottom:28px;
    transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
@media (hover:hover) and (pointer:fine) {
    .project-hero-back:hover { color:var(--white); transform:translateX(-3px); }
}
.project-hero-tag {
    display:inline-block; font-family:'Raleway',sans-serif;
    font-size:0.72rem; font-weight:700; letter-spacing:2px; text-transform:uppercase;
    color:var(--blue-accent); margin-bottom:16px;
}
.project-hero-title { font-size:clamp(1.8rem,4vw,3rem); font-weight:800; color:var(--white); line-height:1.15; margin-bottom:16px; }
.project-hero-sub   { font-size:1.05rem; color:rgba(255,255,255,0.68); max-width:700px; }

.project-body-section { background:var(--white); }
.project-body-container { max-width:900px; margin:0 auto; padding:80px 24px; }

.project-section-title {
    font-size:1.5rem; font-weight:700; color:var(--navy); margin-bottom:20px;
    padding-bottom:12px; border-bottom:2px solid var(--light-grey);
}
.project-text { color:var(--text-mid); font-size:0.97rem; line-height:1.85; margin-bottom:16px; }
.project-list { list-style:disc; padding-left:24px; margin-bottom:24px; }
.project-list li { color:var(--text-mid); font-size:0.95rem; margin-bottom:10px; line-height:1.7; }

.project-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:48px; }
.project-info-card {
    background:var(--off-white); border-radius:var(--radius);
    padding:24px 20px; text-align:center; border-top:3px solid var(--blue-accent);
}
.project-info-label { font-size:0.72rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--text-light); font-family:'Raleway',sans-serif; margin-bottom:8px; }
.project-info-value { font-size:0.95rem; font-weight:700; color:var(--navy); }

.gallery-section { background:var(--off-white); }
.gallery-container { max-width:1200px; margin:0 auto; padding:80px 24px; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:32px; }
.gallery-placeholder {
    aspect-ratio:4/3; background:var(--light-grey);
    border-radius:var(--radius); display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:10px;
    color:var(--text-light); font-family:'Raleway',sans-serif; font-size:0.78rem;
    font-weight:600; letter-spacing:1px; text-transform:uppercase;
    border:2px dashed #CBD5E0;
}
.gallery-placeholder span { font-size:2rem; }
.gallery-placeholder img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius); }

.outcome-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:24px; }
.outcome-card {
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius:var(--radius); padding:28px 24px; color:var(--white);
}
.outcome-card h5 { font-size:0.9rem; font-weight:700; margin-bottom:8px; color:var(--blue-accent); font-family:'Raleway',sans-serif; }
.outcome-card p  { font-size:0.87rem; line-height:1.65; color:rgba(255,255,255,0.75); }

/* ===================================
   LPBF PROJECT PAGE
=================================== */
/* Before/after comparison */
.lpbf-compare {
    display:grid; grid-template-columns:1fr auto 1fr;
    align-items:center; gap:24px; margin:32px 0 48px;
}
.lpbf-compare-item {
    background:var(--off-white); border-radius:var(--radius);
    overflow:hidden; margin:0;
}
.lpbf-compare-item img {
    width:100%; aspect-ratio:4/3; object-fit:contain;
    background:var(--off-white); padding:16px;
    display:block;
}
.lpbf-compare-item figcaption {
    padding:16px 20px; font-size:0.82rem; color:var(--text-mid);
    line-height:1.5; border-top:1px solid var(--light-grey);
}
.lpbf-compare-label {
    display:block; font-size:0.68rem; font-weight:700;
    letter-spacing:1.5px; text-transform:uppercase;
    margin-bottom:4px; font-family:'Raleway',sans-serif;
}
.lpbf-compare-label.before { color:var(--text-light); }
.lpbf-compare-label.after  { color:var(--blue-accent); }
.lpbf-compare-arrow {
    font-size:2rem; font-weight:300; color:var(--blue-accent);
    flex-shrink:0; text-align:center; line-height:1;
}

/* FEA result block */
.lpbf-fea-block {
    display:grid; grid-template-columns:1fr auto;
    gap:32px; align-items:center;
    background:var(--off-white); border-radius:var(--radius);
    overflow:hidden; margin:24px 0 48px;
}
.lpbf-fea-block img {
    width:100%; aspect-ratio:4/3; object-fit:contain;
    background:var(--off-white); padding:16px;
    display:block;
}
.lpbf-fea-stats {
    display:flex; flex-direction:column; gap:24px;
    padding:32px 32px 32px 0; min-width:180px;
}
.lpbf-fea-stat { text-align:center; }
.lpbf-fea-value {
    display:block; font-size:1.3rem; font-weight:800;
    color:var(--navy); font-family:'Raleway',sans-serif; line-height:1;
    margin-bottom:4px;
}
.lpbf-fea-label {
    font-size:0.72rem; font-weight:600; letter-spacing:1px;
    text-transform:uppercase; color:var(--text-light);
    font-family:'Raleway',sans-serif;
}

/* Printed part photos */
.lpbf-print-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:20px; margin:24px 0 48px;
}
.lpbf-print-grid figure {
    margin:0; border-radius:var(--radius); overflow:hidden;
    background:var(--off-white);
}
.lpbf-print-grid img {
    width:100%; aspect-ratio:4/3; object-fit:cover; display:block;
}
.lpbf-print-grid figcaption {
    padding:12px 16px; font-size:0.8rem; color:var(--text-mid);
    border-top:1px solid var(--light-grey);
}

@media (max-width:768px) {
    .lpbf-compare { grid-template-columns:1fr; }
    .lpbf-compare-arrow { transform:rotate(90deg); }
    .lpbf-fea-block { grid-template-columns:1fr; }
    .lpbf-fea-stats { flex-direction:row; justify-content:space-around; padding:24px; }
    .lpbf-print-grid { grid-template-columns:1fr; }
}

/* ===================================
   WASTEWATER PROJECT PAGE
=================================== */
/* Five-stage treatment train */
.ww-train {
    display:grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items:start; gap:0; margin:32px 0 48px;
}
.ww-stage {
    background:var(--off-white); border-radius:var(--radius);
    padding:24px 20px; border-top:4px solid var(--blue-accent);
}
.ww-stage-num {
    display:block; font-size:0.68rem; font-weight:800; letter-spacing:2px;
    text-transform:uppercase; color:var(--blue-accent);
    font-family:'Raleway',sans-serif; margin-bottom:10px;
}
.ww-stage h5 {
    font-size:0.88rem; font-weight:700; color:var(--navy);
    margin-bottom:8px; font-family:'Raleway',sans-serif;
}
.ww-stage p { font-size:0.78rem; color:var(--text-mid); line-height:1.6; margin:0; }
.ww-stage-arrow {
    font-size:1.4rem; color:var(--blue-accent); padding:0 10px;
    align-self:center; flex-shrink:0; padding-top:16px;
}

/* Wide image blocks */
.ww-wide-img {
    margin:24px 0 48px; background:var(--off-white);
    border-radius:var(--radius); overflow:hidden;
}
.ww-wide-img img {
    width:100%; display:block;
    background:var(--off-white); padding:16px;
    box-sizing:border-box;
}
.ww-img-caption {
    display:block; padding:12px 20px; font-size:0.8rem;
    color:var(--text-mid); border-top:1px solid var(--light-grey);
    font-style:italic;
}

/* Layout grid (2-col) */
.ww-layout-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:20px; margin:24px 0 48px;
}
.ww-layout-grid img {
    width:100%; display:block; border-radius:var(--radius);
    background:var(--off-white); padding:8px; box-sizing:border-box;
}

/* Membrane findings grid */
.ww-membrane-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:16px; margin:24px 0 32px;
}
.ww-membrane-finding {
    background:var(--off-white); border-radius:var(--radius);
    padding:20px 22px; border-left:4px solid var(--light-grey);
}
.ww-membrane-finding.selected {
    border-left-color:var(--blue-accent);
    background:oklch(96% 0.015 240);
}
.ww-membrane-finding h5 {
    font-size:0.85rem; font-weight:700; color:var(--navy);
    margin-bottom:8px; font-family:'Raleway',sans-serif;
}
.ww-membrane-finding p { font-size:0.82rem; color:var(--text-mid); line-height:1.6; margin:0; }

/* SEM image + notes block */
.ww-sem-block {
    display:grid; grid-template-columns:1fr 1.6fr;
    gap:32px; align-items:center;
    margin:16px 0 48px;
}
.ww-sem-block img {
    width:100%; border-radius:var(--radius); display:block;
}
.ww-sem-block .ww-img-caption {
    padding:8px 0 0; border-top:none;
    font-size:0.78rem;
}
.ww-sem-notes { }

@media (max-width:900px) {
    .ww-train {
        grid-template-columns:1fr;
    }
    .ww-stage-arrow { transform:rotate(90deg); padding:8px 0; align-self:auto; text-align:center; }
    .ww-layout-grid { grid-template-columns:1fr; }
    .ww-membrane-grid { grid-template-columns:1fr; }
    .ww-sem-block { grid-template-columns:1fr; }
}

/* ===================================
   SHOE INSOLE PROJECT PAGE
=================================== */
.insole-material-grid {
    display:grid; grid-template-columns:repeat(4,1fr);
    gap:16px; margin:24px 0 48px;
}
.insole-material-card {
    background:var(--off-white); border-radius:var(--radius);
    padding:24px 20px; text-align:center;
    border-top:4px solid var(--light-grey);
}
.insole-material-card.highlight { border-top-color:var(--blue-accent); }
.insole-material-stat {
    display:block; font-size:1.5rem; font-weight:800;
    color:var(--navy); font-family:'Raleway',sans-serif;
    line-height:1; margin-bottom:6px;
}
.insole-material-label {
    display:block; font-size:0.68rem; font-weight:700;
    letter-spacing:1.5px; text-transform:uppercase;
    color:var(--blue-accent); font-family:'Raleway',sans-serif;
    margin-bottom:12px;
}
.insole-material-card p { font-size:0.8rem; color:var(--text-mid); line-height:1.6; margin:0; }

/* FEA block */
.insole-fea-block {
    display:grid; grid-template-columns:1fr 1fr;
    gap:32px; align-items:center; margin:24px 0 48px;
}
.insole-fea-block img {
    width:100%; border-radius:var(--radius); display:block;
}

/* Calibration + final grids */
.insole-calibration-grid,
.insole-final-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:20px; margin:24px 0 32px;
}
.insole-calibration-grid figure,
.insole-final-grid figure { margin:0; }
.insole-calibration-grid img,
.insole-final-grid img {
    width:100%; aspect-ratio:4/3; object-fit:cover;
    border-radius:var(--radius); display:block;
}

@media (max-width:900px) {
    .insole-material-grid { grid-template-columns:repeat(2,1fr); }
    .insole-fea-block { grid-template-columns:1fr; }
    .insole-calibration-grid,
    .insole-final-grid { grid-template-columns:1fr; }
}

/* ===================================
   TRAM SEAT PROJECT PAGE
=================================== */

/* NDA notice banner */
.tram-nda-notice {
    display:flex; align-items:flex-start; gap:16px;
    background:oklch(0.96 0.01 55); border:1px solid oklch(0.80 0.06 55);
    border-radius:var(--radius); padding:20px 24px;
    margin:24px 0 32px;
}
.tram-nda-icon { font-size:1.5rem; flex-shrink:0; margin-top:2px; }
.tram-nda-title {
    font-family:var(--font-heading); font-weight:700;
    font-size:0.95rem; color:oklch(0.35 0.08 55);
    margin:0 0 4px;
}
.tram-nda-text {
    font-size:0.92rem; color:oklch(0.45 0.04 55);
    line-height:1.65; margin:0;
}

/* Inline NDA block (before CAD images) */
.tram-nda-block {
    text-align:center;
    background:oklch(0.965 0.008 250); border:1px solid oklch(0.84 0.03 250);
    border-radius:var(--radius); padding:32px 40px;
    margin:32px 0 24px;
}
.tram-nda-block-icon { font-size:2rem; margin-bottom:10px; }
.tram-nda-block-title {
    font-family:var(--font-heading); font-weight:700;
    font-size:1.05rem; color:var(--navy); margin:0 0 8px;
}
.tram-nda-block-text {
    font-size:0.93rem; color:var(--text-mid);
    max-width:560px; margin:0 auto; line-height:1.7;
}

/* Material selection 2×2 grid */
.tram-material-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:16px; margin:24px 0 36px;
}
.tram-material-card {
    border-radius:var(--radius); padding:22px 24px;
    border:1.5px solid transparent;
}
.tram-material-card.selected {
    background:oklch(0.97 0.02 155);
    border-color:oklch(0.72 0.12 155);
}
.tram-material-card.rejected {
    background:oklch(0.975 0.008 10);
    border-color:oklch(0.82 0.05 10);
}
.tram-material-role {
    font-size:0.75rem; font-weight:700; letter-spacing:0.06em;
    text-transform:uppercase; margin:0 0 6px;
}
.tram-material-card.selected .tram-material-role { color:oklch(0.42 0.14 155); }
.tram-material-card.rejected .tram-material-role { color:oklch(0.50 0.12 15); }
.tram-material-card h5 {
    font-family:var(--font-heading); font-size:1rem; font-weight:700;
    color:var(--navy); margin:0 0 8px;
}
.tram-material-card p {
    font-size:0.9rem; color:var(--text-mid); line-height:1.65; margin:0;
}

@media (max-width:768px) {
    .tram-material-grid { grid-template-columns:1fr; }
    .tram-nda-block { padding:24px 20px; }
}

.coming-soon-banner {
    background:var(--off-white); border-radius:var(--radius);
    padding:60px 40px; text-align:center;
    border:2px dashed #CBD5E0; margin-top:32px;
}
.coming-soon-banner .cs-icon { font-size:3.5rem; margin-bottom:16px; }
.coming-soon-banner h3 { font-size:1.4rem; font-weight:700; color:var(--navy); margin-bottom:12px; }
.coming-soon-banner p  { color:var(--text-mid); max-width:480px; margin:0 auto; line-height:1.7; }

/* ===================================
   HYDROGEN FORKLIFTS PROJECT PAGE
=================================== */

/* Technology comparison 3-col grid */
.h2f-compare-grid {
    display:grid; grid-template-columns:1fr 1fr 1fr;
    gap:16px; margin:24px 0 36px;
}
.h2f-compare-card {
    border-radius:var(--radius); padding:22px 20px;
    border:1.5px solid transparent;
}
.h2f-compare-card.ice {
    background:oklch(0.975 0.008 30);
    border-color:oklch(0.82 0.06 30);
}
.h2f-compare-card.bev {
    background:oklch(0.975 0.012 240);
    border-color:oklch(0.82 0.04 240);
}
.h2f-compare-card.h2 {
    background:oklch(0.97 0.02 155);
    border-color:oklch(0.72 0.12 155);
}
.h2f-compare-label {
    font-family:var(--font-heading); font-weight:700;
    font-size:0.95rem; color:var(--navy); margin:0 0 12px;
}
.h2f-compare-list {
    margin:0 0 14px; padding-left:18px;
    font-size:0.88rem; color:var(--text-mid); line-height:1.7;
}
.h2f-compare-verdict {
    font-size:0.8rem; font-weight:700; letter-spacing:0.04em;
    border-radius:4px; padding:5px 10px; margin:0;
    display:inline-block;
}
.h2f-compare-verdict.reject {
    background:oklch(0.93 0.06 25); color:oklch(0.40 0.14 25);
}
.h2f-compare-verdict.partial {
    background:oklch(0.94 0.05 55); color:oklch(0.40 0.10 55);
}
.h2f-compare-verdict.selected {
    background:oklch(0.93 0.06 155); color:oklch(0.35 0.14 155);
}

/* TCO stat cards */
.h2f-tco-grid {
    display:grid; grid-template-columns:1fr 1fr 1fr 1fr;
    gap:16px; margin:24px 0 36px;
}
.h2f-tco-card {
    background:var(--off-white); border-radius:var(--radius);
    padding:20px 18px; border:1px solid var(--border);
    text-align:center;
}
.h2f-tco-card.highlight {
    background:oklch(0.15 0.04 250); border-color:oklch(0.30 0.08 250);
}
.h2f-tco-card.highlight .h2f-tco-value { color:oklch(0.85 0.15 210); }
.h2f-tco-card.highlight .h2f-tco-label { color:oklch(0.72 0.05 250); }
.h2f-tco-card.highlight p { color:oklch(0.60 0.03 250); }
.h2f-tco-value {
    display:block; font-family:var(--font-heading);
    font-size:1.7rem; font-weight:800; color:var(--navy);
    margin-bottom:4px;
}
.h2f-tco-label {
    display:block; font-size:0.75rem; font-weight:700;
    letter-spacing:0.06em; text-transform:uppercase;
    color:var(--gold); margin-bottom:8px;
}
.h2f-tco-card p {
    font-size:0.85rem; color:var(--text-mid);
    line-height:1.55; margin:0;
}

/* Infrastructure CAPEX table */
.h2f-capex-table {
    border-radius:var(--radius); overflow:hidden;
    border:1px solid var(--border); margin:24px 0 36px;
}
.h2f-capex-row {
    display:grid; grid-template-columns:1fr auto;
    gap:16px; padding:12px 20px; align-items:center;
    border-bottom:1px solid var(--border); font-size:0.92rem;
}
.h2f-capex-row:last-child { border-bottom:none; }
.h2f-capex-row.header {
    background:var(--navy); color:#fff;
    font-family:var(--font-heading); font-weight:700;
    font-size:0.85rem; letter-spacing:0.04em;
}
.h2f-capex-row:not(.header):not(.total) {
    background:#fff; color:var(--text-dark);
}
.h2f-capex-row:not(.header):not(.total):nth-child(even) {
    background:oklch(0.985 0.003 250);
}
.h2f-capex-row span:last-child {
    font-variant-numeric:tabular-nums; text-align:right;
    font-weight:600; white-space:nowrap;
}
.h2f-capex-row.total {
    background:oklch(0.15 0.04 250); color:#fff;
    font-family:var(--font-heading); font-weight:800; font-size:0.95rem;
}
.h2f-capex-row.total span:last-child { color:oklch(0.85 0.15 210); }

@media (max-width:900px) {
    .h2f-compare-grid { grid-template-columns:1fr; }
    .h2f-tco-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:600px) {
    .h2f-tco-grid { grid-template-columns:1fr; }
    .h2f-capex-row { grid-template-columns:1fr; gap:4px; }
    .h2f-capex-row span:last-child { text-align:left; }
}

/* ===================================
   CODE BLOCK (Marlin firmware etc.)
=================================== */
.code-block {
    background:oklch(0.13 0.02 250); border-radius:var(--radius);
    padding:20px 24px; margin:24px 0; overflow-x:auto;
    border:1px solid oklch(0.28 0.04 250);
}
.code-block-label {
    display:block; font-family:var(--font-heading); font-size:0.72rem;
    font-weight:700; color:oklch(0.68 0.10 210); letter-spacing:0.08em;
    text-transform:uppercase; margin-bottom:12px;
}
.code-block pre {
    margin:0; font-family:'Consolas','Monaco','Courier New',monospace;
    font-size:0.82rem; line-height:1.75; color:oklch(0.88 0.04 250);
    white-space:pre; tab-size:4;
}
.code-comment { color:oklch(0.58 0.04 250); }
.code-key     { color:oklch(0.75 0.10 180); }
.code-val     { color:oklch(0.80 0.12 60);  }

/* ===================================
   SCORING MATRIX TABLE
=================================== */
.scoring-matrix { border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); margin:24px 0 36px; }
.scoring-row { display:grid; gap:0; border-bottom:1px solid var(--border); font-size:0.875rem; }
.scoring-row:last-child { border-bottom:none; }
.scoring-row.header { background:var(--navy); color:#fff; font-family:var(--font-heading); font-weight:700; font-size:0.8rem; letter-spacing:0.03em; }
.scoring-row:not(.header):not(.winner) { background:#fff; color:var(--text-dark); }
.scoring-row:not(.header):not(.winner):nth-child(even) { background:oklch(0.985 0.003 250); }
.scoring-row.winner { background:oklch(0.15 0.04 250); color:#fff; font-weight:700; }
.scoring-row span { padding:10px 16px; border-right:1px solid rgba(255,255,255,0.08); }
.scoring-row:not(.header) span { border-right:1px solid var(--border); }
.scoring-row span:last-child { border-right:none; }
.score-pass  { color:oklch(0.50 0.18 145); font-weight:700; }
.score-fail  { color:oklch(0.50 0.18 30);  font-weight:700; }
.score-num   { text-align:right; font-variant-numeric:tabular-nums; }

/* ===================================
   HAZOP TABLE
=================================== */
.hazop-table { border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); margin:24px 0 36px; }
.hazop-row { display:grid; gap:0; border-bottom:1px solid var(--border); font-size:0.83rem; align-items:start; }
.hazop-row:last-child { border-bottom:none; }
.hazop-row.header { background:oklch(0.18 0.04 20); color:#fff; font-family:var(--font-heading); font-weight:700; font-size:0.78rem; letter-spacing:0.04em; }
.hazop-row:not(.header) { background:#fff; color:var(--text-dark); }
.hazop-row:not(.header):nth-child(even) { background:oklch(0.985 0.003 250); }
.hazop-row span { padding:10px 14px; border-right:1px solid rgba(255,255,255,0.1); line-height:1.5; }
.hazop-row:not(.header) span { border-right:1px solid var(--border); }
.hazop-row span:last-child { border-right:none; }
.hazop-critical { color:oklch(0.48 0.18 30); font-weight:700; }
.hazop-safe     { color:oklch(0.48 0.16 145); font-weight:600; }

/* ===================================
   ENERGY AUDIT PROJECT PAGE
=================================== */

/* 4-stat row */
.ea-stat-grid {
    display:grid; grid-template-columns:repeat(4,1fr);
    gap:16px; margin:24px 0 36px;
}
.ea-stat-card {
    background:var(--off-white); border-radius:var(--radius);
    padding:20px 18px; border:1px solid var(--border);
    text-align:center;
}
.ea-stat-card.highlight {
    background:oklch(0.15 0.04 250); border-color:oklch(0.30 0.08 250);
}
.ea-stat-card.highlight .ea-stat-value { color:oklch(0.85 0.15 210); }
.ea-stat-card.highlight .ea-stat-label { color:oklch(0.72 0.05 250); }
.ea-stat-card.highlight p { color:oklch(0.60 0.03 250); }
.ea-stat-value {
    display:block; font-family:var(--font-heading);
    font-size:1.55rem; font-weight:800; color:var(--navy);
    margin-bottom:4px; line-height:1.1;
}
.ea-stat-label {
    display:block; font-size:0.72rem; font-weight:700;
    letter-spacing:0.06em; text-transform:uppercase;
    color:var(--gold); margin-bottom:8px;
}
.ea-stat-card p {
    font-size:0.83rem; color:var(--text-mid);
    line-height:1.55; margin:0;
}

/* 3-tier solutions grid */
.ea-solutions-grid {
    display:grid; grid-template-columns:1fr 1fr 1fr;
    gap:16px; margin:24px 0 36px;
}
.ea-solution-card {
    border-radius:var(--radius); padding:22px 20px;
    border:1.5px solid transparent;
}
.ea-solution-card.low {
    background:oklch(0.97 0.02 155);
    border-color:oklch(0.72 0.12 155);
}
.ea-solution-card.medium {
    background:oklch(0.97 0.015 55);
    border-color:oklch(0.78 0.09 55);
}
.ea-solution-card.high {
    background:oklch(0.97 0.012 240);
    border-color:oklch(0.80 0.05 240);
}
.ea-solution-tier {
    font-size:0.75rem; font-weight:700; letter-spacing:0.06em;
    text-transform:uppercase; margin:0 0 12px;
}
.ea-solution-card.low   .ea-solution-tier { color:oklch(0.38 0.14 155); }
.ea-solution-card.medium .ea-solution-tier { color:oklch(0.42 0.12 55); }
.ea-solution-card.high  .ea-solution-tier { color:oklch(0.38 0.10 240); }
.ea-solution-list {
    margin:0; padding-left:18px;
    font-size:0.87rem; color:var(--text-mid); line-height:1.7;
}
.ea-solution-list li { margin-bottom:8px; }
.ea-solution-list li:last-child { margin-bottom:0; }

@media (max-width:900px) {
    .ea-stat-grid    { grid-template-columns:1fr 1fr; }
    .ea-solutions-grid { grid-template-columns:1fr; }
}
@media (max-width:600px) {
    .ea-stat-grid { grid-template-columns:1fr; }
}

/* ===================================
   HOBBIES PAGE
=================================== */
.hobbies-hero {
    min-height:50vh;
    background:linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    display:flex; align-items:center; padding-top:80px;
}
/* ── Folder Cards ─────────────────────────────────── */
.hobbies-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; padding-top:38px; }
.hobby-folder {
    position:relative; cursor:pointer; outline:none;
    -webkit-tap-highlight-color:transparent;
}
.hobby-folder-tab {
    position:absolute; top:-28px; left:0;
    background:var(--navy); color:#fff;
    font-family:var(--font-heading); font-size:0.7rem; font-weight:700;
    letter-spacing:0.06em; text-transform:uppercase;
    padding:6px 18px; border-radius:6px 6px 0 0;
    transition:transform 200ms ease, background 200ms ease;
    white-space:nowrap; pointer-events:none;
}
.hobby-folder:hover .hobby-folder-tab,
.hobby-folder:focus-visible .hobby-folder-tab {
    transform:translateY(-5px); background:var(--blue-accent);
}
.hobby-folder-body {
    background:var(--white);
    border-radius:0 var(--radius) var(--radius) var(--radius);
    padding:32px 24px 48px;
    box-shadow:var(--shadow);
    border:1.5px solid var(--border); border-top:3px solid var(--navy);
    transition:transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    text-align:center; position:relative; overflow:hidden;
}
.hobby-folder:hover .hobby-folder-body,
.hobby-folder:focus-visible .hobby-folder-body {
    transform:translateY(-6px); box-shadow:var(--shadow-hover);
    border-color:var(--blue-accent);
}
.hobby-folder:focus-visible .hobby-folder-body { outline:2px solid var(--blue-accent); outline-offset:2px; }
.hobby-folder-icon { width:48px; height:48px; margin:0 auto 16px; color:var(--navy); }
.hobby-folder-icon svg { width:100%; height:100%; }
.hobby-folder-title { font-size:1.05rem; font-weight:800; color:var(--navy); margin-bottom:8px; font-family:var(--font-heading); }
.hobby-folder-teaser { font-size:0.85rem; color:var(--text-mid); line-height:1.65; margin-bottom:14px; }
.hobby-folder-tag {
    display:inline-block; font-family:var(--font-heading); font-size:0.68rem;
    font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--blue-accent); background:var(--blue-light);
    padding:4px 12px; border-radius:50px;
}
.hobby-folder-hint {
    position:absolute; bottom:0; left:0; right:0;
    background:var(--navy); color:#fff;
    font-family:var(--font-heading); font-size:0.78rem; font-weight:700;
    letter-spacing:0.04em; padding:11px; text-align:center;
    transform:translateY(100%); transition:transform 220ms ease;
}
.hobby-folder:hover .hobby-folder-hint,
.hobby-folder:focus-visible .hobby-folder-hint { transform:translateY(0); }

/* ── Hobby Modal ──────────────────────────────────── */
.hobby-modal-overlay {
    position:fixed; inset:0; background:rgba(10,18,38,0.65);
    z-index:500; display:flex; align-items:center; justify-content:center;
    padding:20px; opacity:0; pointer-events:none;
    transition:opacity 260ms ease; backdrop-filter:blur(5px);
}
.hobby-modal-overlay.open { opacity:1; pointer-events:all; }
.hobby-modal {
    background:var(--white); border-radius:var(--radius);
    max-width:660px; width:100%; max-height:88vh; overflow-y:auto;
    box-shadow:0 32px 80px rgba(0,0,0,0.35);
    transform:scale(0.94) translateY(16px);
    transition:transform 260ms ease;
}
.hobby-modal-overlay.open .hobby-modal { transform:scale(1) translateY(0); }
.hobby-modal-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:22px 28px 18px; border-bottom:1px solid var(--border);
    position:sticky; top:0; background:var(--white); z-index:1;
    border-radius:var(--radius) var(--radius) 0 0;
}
.hobby-modal-title { font-family:var(--font-heading); font-size:1.2rem; font-weight:800; color:var(--navy); }
.hobby-modal-close {
    width:36px; height:36px; border-radius:50%; border:none;
    background:var(--off-white); color:var(--text-mid);
    cursor:pointer; font-size:1rem; line-height:1;
    display:flex; align-items:center; justify-content:center;
    transition:background 180ms, color 180ms; flex-shrink:0;
}
.hobby-modal-close:hover { background:var(--navy); color:#fff; }
.hobby-modal-body { padding:28px; }
.hobby-modal-photo { width:100%; max-height:300px; object-fit:cover; border-radius:8px; margin-bottom:20px; display:block; }
.hobby-photo-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.hobby-photo-pair img { width:100%; height:200px; object-fit:cover; border-radius:8px; display:block; }
.hobby-modal-body p { font-size:0.94rem; color:var(--text-mid); line-height:1.85; margin-bottom:16px; }
.hobby-modal-tag {
    display:inline-block; background:var(--blue-light); color:var(--blue-accent);
    font-family:var(--font-heading); font-size:0.7rem; font-weight:700;
    letter-spacing:0.08em; text-transform:uppercase;
    padding:5px 14px; border-radius:50px; margin-bottom:22px;
}

/* Before/After Grid (Gym) */
.before-after-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:24px 0 8px; }
.before-after-slot { border-radius:8px; overflow:hidden; border:2px solid var(--border); }
.before-after-placeholder {
    aspect-ratio:3/4; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:10px;
    background:var(--off-white); color:var(--text-light);
}
.before-after-placeholder svg { width:36px; height:36px; opacity:0.35; }
.before-after-placeholder-text {
    font-family:var(--font-heading); font-size:0.7rem; font-weight:700;
    letter-spacing:0.1em; text-transform:uppercase; opacity:0.45;
}
.before-after-label {
    text-align:center; font-family:var(--font-heading); font-size:0.7rem;
    font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
    padding:8px; background:var(--navy); color:#fff;
}
.before-after-img { width:100%; aspect-ratio:3/4; object-fit:cover; display:block; }

/* ===================================
   AUSTRALIA CHAPTER — NARRATIVE SECTION
=================================== */
.nature-chapter {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.nature-chapter::before {
    content: '';
    position: absolute; top: -40%; right: -10%;
    width: 500px; height: 500px;
    background: rgba(59,130,246,0.06); border-radius: 50%;
}
.nature-chapter-inner {
    max-width: 1200px; margin: 0 auto; padding: 100px 24px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px;
    align-items: start; position: relative; z-index: 1;
}
.nature-chapter-text { }
.nature-chapter-label {
    font-family: 'Raleway', sans-serif; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--blue-accent); margin-bottom: 16px; display: block;
}
.nature-chapter-title {
    font-family: 'Raleway', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 32px;
}
.nature-chapter-body p {
    color: rgba(255,255,255,0.72); font-size: 0.97rem; line-height: 1.85;
    margin-bottom: 18px;
}
.nature-chapter-body p strong {
    color: rgba(255,255,255,0.92); font-weight: 600;
}
.nature-chapter-aside {
    padding-top: 12px;
}
.nature-pullquote {
    border-top: 3px solid var(--blue-accent);
    padding-top: 28px; margin-bottom: 40px;
}
.nature-pullquote p {
    font-family: 'Raleway', sans-serif; font-size: 1.18rem; font-weight: 700;
    color: var(--white); line-height: 1.55;
}
.nature-stats {
    display: flex; flex-direction: column; gap: 20px;
}
.nature-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 20px 24px;
    display: flex; align-items: center; gap: 16px;
}
.nature-stat-icon { font-size: 1.6rem; flex-shrink: 0; }
.nature-stat-text { }
.nature-stat-value {
    font-family: 'Raleway', sans-serif; font-size: 1.1rem; font-weight: 800;
    color: var(--white); margin-bottom: 2px;
}
.nature-stat-label {
    font-size: 0.8rem; color: rgba(255,255,255,0.5);
    font-family: 'Raleway', sans-serif; font-weight: 600;
}

/* Gallery — split by category */
.gallery-category { margin-top: 72px; }
.gallery-category-title {
    font-family: 'Raleway', sans-serif; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--blue-accent); margin-bottom: 24px;
    padding-bottom: 10px; border-bottom: 2px solid var(--light-grey);
}

/* ===================================
   AURORA GALLERY
=================================== */
.aurora-gallery {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.aurora-gallery::before {
    content: '';
    position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.aurora-gallery .section-container { padding-top: 80px; padding-bottom: 80px; }
.aurora-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    border-radius: var(--radius);
    overflow: hidden;
}
.aurora-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    filter: brightness(0.9);
}
.aurora-img--hero {
    grid-column: span 2;
    aspect-ratio: 3 / 2;
}
.aurora-img:hover {
    transform: scale(1.04);
    filter: brightness(1.05);
    z-index: 1;
    position: relative;
}

/* ===================================
   HIKING GALLERY
=================================== */
.gallery-hiking {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gallery-hiking-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.gallery-hiking-hero img {
    width: 100%;
    aspect-ratio: 21 / 8;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-hiking-hero:hover img { transform: scale(1.03); }
.gallery-img-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 24px 20px;
    background: linear-gradient(to top, rgba(15,39,68,0.80) 0%, transparent 100%);
    font-family: 'Raleway', sans-serif; font-size: 0.85rem; font-weight: 600;
    color: rgba(255,255,255,0.92); letter-spacing: 0.3px;
}
.gallery-hiking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-hiking-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.gallery-hiking-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(15,39,68,0.22);
    z-index: 1; position: relative;
}

/* ===================================
   ROAD TRIPS GALLERY
=================================== */
.gallery-road {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-road img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.gallery-road img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(15,39,68,0.22);
    z-index: 1; position: relative;
}
.gallery-road-wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9 !important;
}

@media (max-width: 768px) {
    .nature-chapter-inner { grid-template-columns: 1fr; gap: 48px; }
    .nature-chapter-aside { padding-top: 0; }
    .aurora-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-hiking { grid-template-columns: 1fr; }
    .gallery-hiking-hero img { min-height: 300px; }
    .gallery-road { grid-template-columns: repeat(2, 1fr); }
    .gallery-road-wide { grid-column: span 2; }
}

/* ===================================
   PEEK METHOD STEPS
=================================== */
.peek-method-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}
.peek-method-step {
    background: oklch(0.97 0.008 250);
    border: 1.5px solid oklch(0.88 0.025 250);
    border-radius: 12px;
    padding: 24px 20px;
}
.peek-method-num {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: oklch(0.82 0.04 250);
    line-height: 1;
    margin-bottom: 10px;
}
.peek-method-step h5 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px 0;
}
.peek-method-step p {
    color: var(--text-mid);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}
@media (max-width: 768px) {
    .peek-method-steps { grid-template-columns: 1fr; }
}

/* ===================================
   IDEATHON PHASE ROADMAP
=================================== */
.ideathon-phases {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin: 32px 0;
}
.ideathon-phase {
    background: oklch(0.97 0.008 250);
    border: 1.5px solid oklch(0.88 0.025 250);
    border-radius: 12px;
    padding: 24px 20px;
}
.ideathon-phase h5 {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 12px 0;
}
.ideathon-phase ul {
    margin: 0;
    padding-left: 16px;
    color: var(--text-mid);
    font-size: 0.88rem;
    line-height: 1.65;
}
.ideathon-phase-year {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 12px;
}
.ideathon-phase-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 1.5rem;
    color: oklch(0.65 0.04 250);
    padding-top: 40px;
}
@media (max-width: 768px) {
    .ideathon-phases {
        grid-template-columns: 1fr;
    }
    .ideathon-phase-arrow {
        padding: 4px 0;
        transform: rotate(90deg);
        justify-self: center;
    }
}

/* ===================================
   FADE-IN ANIMATION
=================================== */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease-out),
                transform 0.5s var(--ease-out);
    will-change: transform, opacity;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .fade-in { transition: none; }
}

/* ===================================
   PROJECT TOC SIDEBAR
=================================== */
@media (min-width:1100px) {
    .project-toc-layout {
        display:grid;
        grid-template-areas:"content toc";
        grid-template-columns:1fr 224px;
        column-gap:44px;
        max-width:1200px;
        margin:0 auto;
        padding:0 24px;
        align-items:start;
    }
    .project-toc-layout > .project-body-container {
        grid-area:content;
        max-width:none;
        margin:0;
        padding:80px 0;
    }
    .project-toc {
        grid-area:toc;
        position:sticky;
        top:88px;
        max-height:calc(100vh - 108px);
        overflow-y:auto;
        padding:20px 16px;
        background:var(--off-white);
        border:1px solid #E2E8F0;
        border-radius:10px;
        margin-top:80px;
        scrollbar-width:thin;
        scrollbar-color:#CBD5E1 transparent;
    }
}

.toc-heading {
    font-size:0.68rem; font-weight:700; letter-spacing:0.12em;
    text-transform:uppercase; color:var(--text-light);
    margin:0 0 12px 4px;
}
.toc-list { list-style:none; margin:0; padding:0; }
.toc-link {
    display:block;
    padding:5px 8px 5px 12px;
    font-size:0.8rem; line-height:1.45;
    color:var(--text-mid); text-decoration:none;
    border-left:2px solid transparent;
    border-radius:0 4px 4px 0;
    transition:color 0.18s, border-color 0.18s, background 0.18s;
}
.toc-link:hover {
    color:var(--navy);
    background:var(--blue-light);
    border-left-color:var(--navy-light);
}
.toc-link--active {
    color:var(--navy) !important;
    border-left-color:var(--blue-accent) !important;
    font-weight:600;
    background:var(--blue-light);
}

@media (max-width:1099px) {
    .project-toc-layout { display:flex; flex-direction:column; }
    .project-toc {
        position:relative; top:0;
        max-height:none; overflow:visible;
        padding:0; background:var(--white);
        border:none;
        border-top:1px solid #E2E8F0;
        border-bottom:1px solid #E2E8F0;
        border-radius:0; margin:0;
    }
    .toc-heading { display:none; }
    .toc-list {
        display:flex; flex-direction:row;
        overflow-x:auto; gap:6px;
        padding:10px 16px; scrollbar-width:none;
    }
    .toc-list::-webkit-scrollbar { display:none; }
    .toc-list li { flex-shrink:0; }
    .toc-link {
        border-left:none; border-radius:20px;
        border:1.5px solid #E2E8F0;
        padding:5px 14px; font-size:0.75rem;
        white-space:nowrap; background:var(--off-white);
        color:var(--text-mid);
    }
    .toc-link:hover { background:var(--blue-light); border-color:var(--navy-light); }
    .toc-link--active {
        background:var(--navy) !important;
        color:var(--white) !important;
        border-color:var(--navy) !important;
        font-weight:600;
    }
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width:1024px) {
    .projects-grid { grid-template-columns:repeat(2,1fr); }
    .skills-grid   { grid-template-columns:1fr; }
    .hobbies-grid  { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
    .hero-container  { grid-template-columns:1fr; text-align:center; padding-top:100px; }
    .hero-image      { order:-1; }
    .image-frame     { width:220px; height:280px; }
    .hero-highlights { justify-content:center; }
    .hero-cta        { justify-content:center; }
    .about-grid      { grid-template-columns:1fr; }
    .edu-grid, .awards-grid, .extra-grid { grid-template-columns:1fr; }
    .projects-grid   { grid-template-columns:1fr; }
    .section-title   { font-size:1.8rem; }
    .timeline-header { flex-direction:column; gap:8px; }
    .project-info-grid { grid-template-columns:1fr; }
    .gallery-grid    { grid-template-columns:repeat(2,1fr); }
    .outcome-grid    { grid-template-columns:1fr; }
    .hobbies-grid    { grid-template-columns:1fr; }
    .nav-links {
        display:none; position:absolute; top:100%; left:0; right:0;
        background:var(--navy); flex-direction:column;
        padding:20px; gap:4px; box-shadow:0 10px 30px rgba(0,0,0,0.3);
    }
    .nav-links.open { display:flex; }
    .nav-links li a { padding:12px 16px; min-height:44px; display:flex; align-items:center; }
    .nav-toggle     { display:flex; }
    .about-stats    { grid-template-columns:1fr 1fr; }
}
@media (max-width:480px) {
    .gallery-grid  { grid-template-columns:1fr; }
    .awards-grid   { grid-template-columns:1fr; }
    .award-card    { flex-direction:column; gap:16px; }
}
