@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@400;500;600;700&display=swap');
:root {
    color-scheme: dark;
    --bg: #18140d;
    --surface: #272116;
    --surface2: #312a1b;
    --line: #453d2c;
    --text: #f8f5f0;
    --muted: #bbb2a1;
    --accent: #c8ad77;
    --blue: #b99753;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.modal-open {
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    cursor: pointer;
}
a:focus-visible,button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.ambient {
    position: absolute;
    inset: 0 0 auto;
    height: 950px;
    z-index: -1;
    background: radial-gradient(ellipse at 85% 25%,#4639208a,transparent 48%),radial-gradient(ellipse at 10% 80%,#342b1966,transparent 50%);
    pointer-events: none;
}
.container {
    max-width: 1180px;
    padding: 0 28px;
    margin: auto;
}
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #18140de8;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #453d2c88;
}
.nav-wrap {
    max-width: 1240px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-square {
    font: 700 21px 'Cormorant Garamond';
    letter-spacing: -1px;
    background: #39301f;
    border: 1px solid #63563b;
    border-radius: 10px;
    padding: 8px 12px;
}
.brand-square span,.period {
    color: var(--accent);
}
.brand-caption {
    font: 700 11px 'Cormorant Garamond';
    letter-spacing: 1.7px;
}
.brand-caption small {
    display: block;
    color: #ab9d81;
    font-size: 9px;
    letter-spacing: 1.8px;
    margin-top: 2px;
}
.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav a {
    font-size: 13px;
    font-weight: 600;
    color: #cdc6b8;
    transition: color .2s;
}
.nav a:hover {
    color: white;
}
.nav .nav-contact {
    border: 1px solid #73664b;
    padding: 9px 14px;
    border-radius: 8px;
    color: #f9f6f0;
}
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: white;
    font-size: 24px;
}
.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 50px;
    align-items: center;
    min-height: 660px;
    padding-top: 88px;
    padding-bottom: 94px;
}
.eyebrow,.kicker,.side-label {
    font: 700 11px 'Cormorant Garamond';
    color: var(--accent);
    letter-spacing: 2px;
}
.status-dot {
    display: inline-block;
    height: 7px;
    width: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: #c5ab76;
    box-shadow: 0 0 16px #c5ab76;
}
.hero h1,h2,h3 {
    font-family: 'Cormorant Garamond';
    line-height: 1.15;
}
h1 {
    font-size: clamp(56px,6.6vw,95px);
    letter-spacing: -5px;
    margin: 24px 0 22px;
}
h1>span {
    color: #d0c5af;
}
.hero-lead {
    font: 600 24px 'Cormorant Garamond';
    margin: 0 0 12px;
}
.hero-desc {
    max-width: 590px;
    color: var(--muted);
    font-size: 16px;
}
.hero-actions,.contact-actions {
    display: flex;
    gap: 12px;
    margin: 28px 0 35px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s,background .2s;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    background: #ad8a46;
    color: white;
}
.btn-primary:hover {
    background: #bf9f61;
}
.btn-outline {
    border: 1px solid #645942;
    color: #f1ece3;
}
.btn-outline:hover {
    background: #352e1f;
}
.hero-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid #463f32;
}
.hero-meta span {
    display: flex;
    flex-direction: column;
}
.hero-meta b {
    font-family: 'Cormorant Garamond';
    font-size: 15px;
}
.hero-meta small {
    font-size: 11px;
    color: #9d937f;
}
.hero-art {
    min-height: 435px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle,#66532c47 0,transparent 65%);
}
.orbit {
    position: absolute;
    border: 1px solid #72603c;
    border-radius: 50%;
}
.orbit-one {
    width: 92%;
    aspect-ratio: 1;
}
.orbit-two {
    width: 73%;
    aspect-ratio: 1;
    border-style: dashed;
    opacity: .65;
}
.hero-art-card {
    position: relative;
    width: 245px;
    height: 275px;
    border: 1px solid #867657;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(145deg,#443a26,#272114);
    box-shadow: 0 35px 70px #0d0b06aa,0 0 70px #8a6f392a;
    transform: rotate(-8deg);
}
.art-mark {
    font: 700 95px 'Cormorant Garamond';
    letter-spacing: -14px;
    color: #f7f3eb;
}
.art-mark span {
    color: #d1ba8d;
}
.art-caption {
    font: 600 9px 'Cormorant Garamond';
    letter-spacing: 2.6px;
    color: #b8ae99;
}
.art-label {
    position: absolute;
    background: #3f3521;
    border: 1px solid #796948;
    color: #e5d9c0;
    padding: 8px 12px;
    border-radius: 8px;
    font: 700 10px 'Cormorant Garamond';
    letter-spacing: 1px;
}
.label-top {
    top: 20%;
    right: 0;
}
.label-bottom {
    bottom: 17%;
    left: 0;
}
.art-cross {
    position: absolute;
    right: 10%;
    bottom: 7%;
    font-size: 30px;
    color: #ccb382;
}
.section {
    padding-top: 100px;
    padding-bottom: 100px;
}
.section-alt {
    background: #211c13;
    border-top: 1px solid #383021;
    border-bottom: 1px solid #383021;
}
.section-intro {
    margin-bottom: 38px;
}
.section-intro h2 {
    font-size: clamp(35px,4vw,53px);
    letter-spacing: -2px;
    margin: 12px 0;
}
.section-intro p {
    color: var(--muted);
    max-width: 700px;
}
.section-intro-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 80px;
}
.about-text p {
    color: var(--muted);
    margin-top: 0;
}
.about-text .big-text {
    color: #f4efe5;
    font-size: 19px;
    font-weight: 500;
}
.about-side {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 26px;
    border-radius: 14px;
    height: max-content;
}
.side-label {
    margin-bottom: 25px;
}
.info-line {
    border-top: 1px solid #4f4531;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.info-line span {
    font-size: 11px;
    color: #a99f8b;
}
.info-line strong {
    font-size: 14px;
    font-weight: 600;
}
.text-link {
    font-size: 13px;
    font-weight: 700;
    color: #d3be94;
    display: inline-block;
    margin-top: 14px;
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}
.expertise-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 27px;
}
.expertise-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.expertise-symbol {
    font: 700 24px 'Cormorant Garamond';
    color: #d5c198;
}
.expertise-card h3 {
    font-size: 20px;
    margin: 10px 0;
}
.expertise-card p {
    font-size: 14px;
    color: var(--muted);
    min-height: 65px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0;
}
.tag {
    border: 1px solid #5b513c;
    background: #3c3423;
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 11px;
    color: #e4dbca;
}
.project-ref {
    font-size: 12px;
    color: #beb197;
    border-top: 1px solid #514733;
    padding-top: 15px;
}
.project-ref b {
    color: #f1ebde;
}
.filter-bar {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.filter {
    background: transparent;
    border: 1px solid #564d3b;
    color: #d2caba;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12px;
}
.filter.active,.filter:hover {
    background: #816837;
    color: white;
    border-color: #9b8455;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}
.project-card {
    background: #292317;
    border: 1px solid #4a4130;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s,border-color .2s;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: #978663;
}
.project-cover {
    min-height: 196px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 75% 25%,color-mix(in srgb,var(--project-color) 30%,transparent),transparent 43%),repeating-linear-gradient(0deg,transparent,transparent 29px,#ffffff06 30px),repeating-linear-gradient(90deg,transparent,transparent 29px,#ffffff06 30px),#312a1b;
}
.project-cover:before {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid color-mix(in srgb,var(--project-color) 50%,transparent);
    border-radius: 50%;
}
.project-cover:after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px dashed #ffffff20;
    border-radius: 50%;
}
.project-glyph {
    font: 600 95px 'Cormorant Garamond';
    color: var(--project-color);
    text-shadow: 0 0 45px color-mix(in srgb,var(--project-color) 35%,transparent);
    z-index: 1;
}
.project-year {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 11px;
    color: #e5ddcd;
    background: #251f12b5;
    padding: 5px 10px;
    border-radius: 6px;
}
.project-body {
    padding: 24px;
}
.project-type {
    font: 700 10px 'Cormorant Garamond';
    letter-spacing: 1.5px;
    color: #d1bb90;
    text-transform: uppercase;
}
.project-body h3 {
    font-size: 25px;
    margin: 8px 0;
}
.project-body p {
    min-height: 51px;
    font-size: 14px;
    color: #c4bcac;
    margin-bottom: 13px;
}
.project-footer {
    padding-top: 15px;
    border-top: 1px solid #4a412f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.project-status {
    font-size: 11px;
    color: #b9af9a;
}
.open-project {
    background: transparent;
    border: 0;
    color: #d2bc91;
    font-weight: 700;
    font-size: 12px;
    padding: 4px;
}
.awards {
    border-top: 1px solid var(--line);
}
.award-item {
    display: grid;
    grid-template-columns: 115px 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
}
.award-year {
    color: #c9b285;
    font: 700 15px 'Cormorant Garamond';
}
.award-item h3 {
    font-size: 17px;
    margin: 0 0 4px;
}
.award-item p {
    margin: 0;
    font-size: 12px;
    color: #b5ac9b;
}
.award-item a {
    font-size: 12px;
    color: #d5c199;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}
.media-card {
    background: #2d2619;
    border: 1px solid #4d4432;
    border-radius: 14px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    min-height: 264px;
    transition: border-color .2s;
}
.media-card:hover {
    border-color: #95815a;
}
.media-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d2bd92;
    font-size: 11px;
}
.media-card h3 {
    font-size: 18px;
    line-height: 1.34;
    margin: 20px 0 10px;
}
.media-card p {
    font-size: 13px;
    color: #bbb3a2;
    flex: 1;
    margin: 0 0 22px;
}
.media-card a {
    font-size: 12px;
    color: #dbcaa8;
    border-top: 1px solid #544a37;
    padding-top: 14px;
    font-weight: 700;
}
.media-date {
    color: #a89e8b;
    font-size: 11px;
}
.publication-list {
    display: grid;
    gap: 12px;
}
.publication {
    background: #2c261a;
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.publication h3 {
    font-size: 18px;
    margin: 8px 0;
}
.publication p {
    color: var(--muted);
    font-size: 13px;
    max-width: 790px;
}
.publication .pmeta {
    font-size: 11px;
    letter-spacing: 1px;
    color: #d0ba8d;
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}
.cert {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    min-height: 165px;
}
.cert-icon {
    color: #d3bd92;
    font-size: 25px;
}
.cert h3 {
    font-size: 15px;
    margin: 13px 0 5px;
}
.cert small {
    color: #a79d88;
}
.community-card {
    display: flex;
    gap: 30px;
    padding: 35px;
    border: 1px solid #524732;
    background: #322a1a;
    border-radius: 15px;
}
.community-icon {
    font-size: 45px;
    color: #ccb68a;
}
.community-card h3 {
    font-size: 22px;
    margin: 0;
}
.community-card p {
    color: var(--muted);
    max-width: 850px;
}
.contact-section {
    padding-top: 120px;
    padding-bottom: 125px;
}
.contact-section h2 {
    font-size: clamp(42px,6.5vw,85px);
    letter-spacing: -3px;
    margin: 16px 0 20px;
}
.contact-section em {
    font-style: normal;
    color: #d2bc91;
}
.contact-section>p {
    color: var(--muted);
}
.footer {
    border-top: 1px solid var(--line);
    padding: 25px 0;
}
.footer-flex,.footer-flex>div {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer strong {
    font: 700 24px 'Cormorant Garamond';
    color: #d8c6a1;
}
.footer span,.footer a {
    font-size: 12px;
    color: #a9a08d;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}
.modal[aria-hidden=false] {
    display: block;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: #000b;
    backdrop-filter: blur(10px);
}
.modal-panel {
    position: relative;
    margin: 3vh auto;
    max-width: 850px;
    width: calc(100% - 30px);
    height: 94vh;
    overflow: auto;
    background: #251f14;
    border: 1px solid #655942;
    border-radius: 18px;
    box-shadow: 0 30px 100px #000a;
}
.modal-close {
    position: sticky;
    float: right;
    top: 15px;
    margin: 15px 15px -55px 0;
    z-index: 4;
    border: 1px solid #716958;
    background: #413826;
    color: white;
    border-radius: 8px;
    padding: 9px 13px;
}
.modal-head {
    padding: 50px 42px 35px;
    background: radial-gradient(circle at right top,color-mix(in srgb,var(--project-color) 20%,transparent),transparent 65%),#332b1c;
    border-bottom: 1px solid #62563d;
}
.modal-head h2 {
    font-size: 46px;
    margin: 8px 0;
}
.modal-head p {
    font-size: 17px;
    color: #d4cdbe;
    max-width: 660px;
}
.modal-content {
    padding: 35px 42px 60px;
}
.modal-content h3 {
    font-size: 21px;
    margin: 30px 0 12px;
}
.modal-content p,.modal-content li {
    color: #c8c0b1;
    font-size: 14px;
}
.modal-content ol {
    padding-left: 22px;
}
.modal-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.modal-links a {
    border: 1px solid #71654d;
    padding: 10px 13px;
    border-radius: 7px;
    color: #dbcaa8;
    font-size: 12px;
}
.modal-related {
    background: #352d1e;
    border: 1px solid #554b36;
    padding: 14px;
    border-radius: 9px;
    margin: 8px 0;
}
.modal-related strong {
    font-size: 13px;
}
.modal-related small {
    color: #b5ab96;
    display: block;
}
.empty {
    color: #a49b88;
    font-size: 13px;
    font-style: italic;
}
@media(max-width:940px) {
    .nav {
        gap: 12px;
    }
    .nav a {
        font-size: 11px;
    }
    .hero {
        grid-template-columns: 1fr .7fr;
        gap: 10px;
    }
    .hero-art-card {
        width: 180px;
        height: 220px;
    }
    .art-mark {
        font-size: 70px;
    }
    .media-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
@media(max-width:720px) {
    .container {
        padding: 0 20px;
    }
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #272115;
        border-bottom: 1px solid #514732;
        padding: 22px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        font-size: 14px;
        padding: 7px;
    }
    .brand-caption {
        font-size: 9px;
    }
    .hero {
        grid-template-columns: 1fr;
        padding-top: 70px;
        padding-bottom: 55px;
        min-height: auto;
    }
    .hero h1 {
        font-size: clamp(49px,11vw,76px);
        letter-spacing: -3px;
    }
    .hero-art {
        min-height: 280px;
        max-width: 400px;
        width: 100%;
        margin: 5px auto;
    }
    .hero-art-card {
        width: 170px;
        height: 190px;
    }
    .orbit-one {
        width: 75%;
    }
    .orbit-two {
        width: 58%;
    }
    .hero-meta {
        gap: 18px;
    }
    .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .expertise-grid,.project-grid,.media-grid {
        grid-template-columns: 1fr;
    }
    .section-intro-row {
        display: block;
    }
    .filter-bar {
        margin-top: 20px;
    }
    .award-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }
    .award-item a {
        grid-column: 2;
    }
    .cert-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .community-card {
        padding: 23px;
        gap: 12px;
    }
    .publication {
        display: block;
    }
    .modal-head {
        padding: 55px 23px 26px;
    }
    .modal-head h2 {
        font-size: 34px;
    }
    .modal-content {
        padding: 20px 23px 35px;
    }
    .contact-section h2 {
        letter-spacing: -2px;
    }
}
@media(max-width:430px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
    .hero-meta {
        gap: 15px;
    }
    .brand-caption {
        display: none;
    }
}
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    *,*:before,*:after {
        transition: none !important;
        animation: none !important;
    }
}
/* v3: authentic original portrait and intellectual property */
.hero-portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    z-index: 3;
    border-radius: inherit;
    filter: saturate(.88);
}
.hero-art::after {
    content: "";
    position: absolute;
    z-index: 4;
    pointer-events: none;
    inset: 45% 0 0;
    background: linear-gradient(0deg,rgba(9,17,27,.82),transparent);
    border-radius: inherit;
}
.hero-art .art-label {
    z-index: 5;
}
.utility-record {
    border-left: 3px solid #cbb17e;
}
.mini-meta {
    font-size: .83rem !important;
    opacity: .77;
    margin-top: .6rem !important;
}
.utility-record h3 {
    line-height: 1.4;
    font-size: 1.1rem;
}
/* v4: related records and dossier-first links */
.expertise-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}
.expertise-project-link {
    background: #423722;
    border: 1px solid #706247;
    border-radius: 7px;
    color: #e4d7bd;
    font-weight: 650;
    font-size: 12px;
    padding: 8px 11px;
    cursor: pointer;
}
.expertise-project-link:hover,.expertise-project-link:focus-visible {
    background: #6d5b36;
    outline-color: #d9c6a1;
}
.hero-actions {
    flex-wrap: wrap;
}
.modal-visual {
    height: 225px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 72% 36%,color-mix(in srgb,var(--project-color) 30%,transparent),transparent 58%),linear-gradient(135deg,#382e1b,#1d180e);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    border-bottom: 1px solid #574d39;
}
.visual-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to right,transparent,black);
}
.visual-symbol {
    font-size: 60px;
    color: var(--project-color);
    text-shadow: 0 0 35px color-mix(in srgb,var(--project-color) 60%,transparent);
    z-index: 1;
}
.visual-title {
    font-size: 30px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #fbf9f5;
    z-index: 1;
}
.visual-subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    color: #c4baa5;
    text-transform: uppercase;
    z-index: 1;
}
.modal-head {
    padding-top: 24px;
}
.modal-action-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.resource-button {
    display: inline-block;
    background: #4c3f25;
    border: 1px solid #887858;
    border-radius: 7px;
    color: #e4d7be;
    text-decoration: none;
    font-weight: 650;
    font-size: 12px;
    padding: 10px 14px;
    cursor: pointer;
}
.resource-button:hover {
    background: #6b5a38;
}
.status-tag {
    color: #f1eadd;
}
.dossier-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 12px 0 16px;
    border-bottom: 1px solid #554c3b;
}
.dossier-nav a {
    font-size: 12px;
    color: #dcccab;
}
.dossier-bottom {
    margin-top: 35px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.dossier-bottom a {
    color: #e0d1b2;
    font-size: 13px;
}
#modalContent [id^=d-] {
    scroll-margin-top: 25px;
}
@media(max-width:720px) {
    .modal-visual {
        height: 175px;
    }
    .visual-symbol {
        font-size: 45px;
    }
    .visual-title {
        font-size: 24px;
    }
    .modal-action-bar {
        align-items: stretch;
    }
    .resource-button {
        font-size: 11px;
    }
    .dossier-nav {
        gap: 12px;
    }
}
/* Portfolio 4.1: dossier status on first row */
.dossier-first-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-right: 42px;
}
.dossier-first-row .status-tag {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}
@media(max-width:720px) {
    .dossier-first-row {
        padding-right: 35px;
    }
    .dossier-first-row .kicker {
        max-width: 65%;
        line-height: 1.6;
    }
}
/* Filters for results and press coverage */
.section-filters {
    margin: 0 0 12px;
    gap: 9px;
}
.filter-count {
    font-size: 12px;
    color: #b8ae99;
    margin: 0 0 19px;
}
.section-filters .filter {
    cursor: pointer;
    transition: background .15s,border-color .15s;
}
.section-filters .filter:focus-visible {
    outline: 2px solid #deceaf;
    outline-offset: 3px;
}
.section-filters .filter[aria-pressed="true"] {
    background: #816837;
    color: white;
    border-color: #9b8455;
}
/* Press syndication and alternate source links */
.source-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 13px;
    padding: 11px 13px;
    background: rgba(71,145,204,.07);
    border: 1px solid rgba(117,181,218,.19);
    border-radius: 10px;
}
.source-title {
    font-size: .73rem;
    letter-spacing: .02em;
    color: #d5c9b2;
    font-weight: 600;
    margin-bottom: 2px;
}
.source-list a {
    font-size: .86rem;
    line-height: 1.45;
    color: #ddcdad;
    text-decoration: none;
}
.source-list a:hover {
    text-decoration: underline;
}
.modal-related .source-list {
    margin-top: 8px;
}
/* v4.4: compact, accessible alternate sources; works in press cards and project dossiers */
.source-list {
    gap: 0;
}
.source-list .source-primary {
    display: block;
    border-top: 0;
    padding-top: 2px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}
.source-alternatives {
    margin-top: 10px;
    border-top: 1px solid rgba(117,181,218,.22);
    padding-top: 8px;
}
.source-alternatives summary {
    display: list-item;
    list-style-position: inside;
    cursor: pointer;
    color: #e2d4b7;
    font-size: 12px;
    font-weight: 650;
    padding: 4px 0;
    border-radius: 4px;
}
.source-alternatives summary:hover {
    color: #fff;
}
.source-alternatives summary:focus-visible {
    outline: 2px solid #deceaf;
    outline-offset: 3px;
}
.source-alternative-links {
    padding: 6px 0 2px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.source-alternative-links a {
    display: block;
    border-top: 0;
    padding-top: 0;
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.source-alternatives[open] summary {
    margin-bottom: 4px;
}
/* Language selector */
.language-switch {
    margin-left: 12px;
    flex: none;
    border: 1px solid #62563d;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}
.language-switch a {
    color: #dcccab;
    text-decoration: none;
}
.language-switch a:hover {
    color: white;
}
@media(max-width:900px) {
    .language-switch {
        margin-left: 4px;
        padding: 6px 8px;
    }
}
/* v4.7 separate outreach and Bolyar Coders team projects */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}
.activity-card {
    background: #2d2619;
    border: 1px solid #4d4432;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.activity-card h3 {
    font-size: 19px;
    margin: 4px 0;
}
.activity-card p {
    font-size: 14px;
    color: #c5bdac;
    margin: 0;
    flex: 1;
}
.activity-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #d1bb90;
}
.activity-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.activity-actions a,.team-link {
    color: #d9c6a1;
    font-size: 13px;
    font-weight: 700;
}
.activity-note {
    color: #beb5a2;
    font-size: 13px;
    margin-top: 22px;
}
@media(max-width:700px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
}
/* 4.8: Verified hackathon project cards */
.hackathon-block {
    margin: 20px 0 36px;
}
.hackathon-block h3 {
    font-size: 23px;
    margin-bottom: 8px;
}
.hackathon-block .activity-grid {
    margin-top: 16px;
}
.hack-tech {
    font-size: 12px !important;
    color: #d2bd92 !important;
    margin-top: 4px !important;
}
.hack-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.project-authorship {
    font-size: .75rem;
    color: #d3be94;
    font-weight: 650;
    letter-spacing: .02em;
    margin: .38rem 0;
}
.team-overview {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    padding: 1.6rem;
    border: 1px solid #62553b;
    border-radius: 18px;
    background: #322b1c;
}
.team-overview p {
    color: #d6cdba;
}
.team-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.team-links a {
    color: #dbcaa7;
    text-decoration: none;
}
@media(max-width:700px) {
    .team-overview {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Complementary authorship selector in the projects section */
.ownership-filters {
    margin-top: 12px;
    flex-wrap: wrap;
}
.ownership-filters .filter {
    white-space: normal;
}
/* Navigation redesign — desktop and mobile */
.header .nav-wrap {
    max-width: 1480px;
    min-height: 76px;
    padding: 10px 24px;
    gap: 18px;
}
.header .brand {
    flex: 0 0 auto;
}
.header .nav {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: clamp(10px,1.7vw,28px);
}
.nav-group {
    position: relative;
}
.nav-group summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    white-space: nowrap;
    color: #d5cebf;
    font-weight: 700;
    font-size: 13px;
    padding: 14px 2px;
    transition: color .2s;
}
.nav-group summary::-webkit-details-marker {
    display: none;
}
.nav-chevron {
    color: #cdb483;
    font-size: 17px;
    transition: transform .2s;
}
.nav-group[open] .nav-chevron {
    transform: rotate(180deg);
}
.nav-group summary:hover,.nav-group[open] summary,.header .nav .nav-direct:hover {
    color: #fff;
}
.header .nav .nav-direct {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 2px;
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: -16px;
    min-width: 210px;
    padding: 8px;
    background: #31291a;
    border: 1px solid #62563f;
    border-radius: 12px;
    box-shadow: 0 18px 45px #0008;
    display: grid;
    gap: 2px;
    animation: navIn .15s ease-out;
}
.nav-dropdown a {
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 7px;
    font-size: 13px !important;
    white-space: nowrap;
    color: #e1dacb !important;
}
.nav-dropdown a:hover,.nav-dropdown a:focus-visible {
    background: #52452c;
    color: #fff !important;
}
@keyframes navIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.header-contact {
    white-space: nowrap;
    border: 1px solid #7c6c4d;
    border-radius: 9px;
    padding: 9px 14px;
    color: #e8ddc8;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s;
}
.header-contact:hover {
    background: #473b24;
}
.language-switch {
    flex: 0 0 auto;
}
@media(max-width:1100px) {
    .header .nav-wrap {
        gap: 12px;
        padding-inline: 18px;
    }
    .header .nav {
        gap: 12px;
    }
    .brand-caption {
        font-size: 9px;
        letter-spacing: 1px;
    }
    .brand-caption small {
        font-size: 8px;
        letter-spacing: 1px;
    }
    .nav-group summary,.header .nav .nav-direct {
        font-size: 12px;
    }
    .header-contact {
        font-size: 12px;
        padding: 8px 10px;
    }
}
@media(max-width:900px) {
    .header .nav-wrap {
        min-height: 70px;
        flex-wrap: wrap;
    }
    .menu-toggle {
        display: block;
        order: 3;
        margin-left: 0;
    }
    .header .nav {
        display: none;
        order: 5;
        flex-basis: 100%;
        width: 100%;
        position: static;
        background: transparent;
        border: 0;
        padding: 10px 0 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .header .nav.open {
        display: flex;
    }
    .header-contact {
        margin-left: auto;
    }
    .language-switch {
        order: 2;
    }
    .nav-group summary,.header .nav .nav-direct {
        font-size: 15px;
        padding: 11px 12px;
    }
    .nav-group summary {
        justify-content: space-between;
    }
    .nav-dropdown {
        position: static;
        box-shadow: none;
        animation: none;
        min-width: 0;
        margin: 0 8px 8px;
        background: #362e1d;
    }
    .nav-dropdown a {
        padding: 11px 14px !important;
    }
    .header .brand-caption {
        font-size: 10px;
    }
}
@media(max-width:430px) {
    .header .nav-wrap {
        gap: 9px;
        padding: 9px 14px;
    }
    .header .brand-caption {
        display: none;
    }
    .header-contact {
        padding: 7px 9px;
        font-size: 12px;
    }
    .brand-square {
        padding: 7px 10px;
    }
    .menu-toggle {
        font-size: 22px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .nav-dropdown {
        animation: none;
    }
    .nav-chevron {
        transition: none;
    }
}
