/* ============================================================
   senggack.org -- Institutional Research Institute
   Colors: #2C2C2C, #B8A88A, #D4CDC3, #E8E3DA, #6B6560, #F7F5F0, #8C7A5E
   Fonts: Cormorant Garamond, Source Serif 4, Libre Franklin
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: #F7F5F0;
    color: #2C2C2C;
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TITLE PAGE / HERO
   ============================================================ */

#title-page {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #F7F5F0;
    overflow: hidden;
}

.title-page-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.seal-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

.seal-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #8C7A5E;
}

.seal-dots {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    background-image: radial-gradient(circle, #8C7A5E 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    background-position: center;
    mask-image: radial-gradient(circle, transparent 42%, black 43%, black 48%, transparent 49%);
    -webkit-mask-image: radial-gradient(circle, transparent 42%, black 43%, black 48%, transparent 49%);
}

.seal-inner {
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    border: 1.5px solid #8C7A5E;
}

.seal-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 52px;
    color: #8C7A5E;
    letter-spacing: 0.05em;
}

.title-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    letter-spacing: 0.015em;
    line-height: 1.15;
    color: #2C2C2C;
    position: relative;
    z-index: 2;
}

.title-rule {
    width: 0;
    height: 1px;
    background-color: #B8A88A;
    margin: 28px auto 24px;
    transition: width 1s ease-out 0.5s;
}

.title-rule.animate {
    width: 40vw;
}

.title-tagline {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6B6560;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}

.title-tagline.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-chevron {
    position: absolute;
    bottom: -140px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.8s ease 1.8s;
    animation: chevron-bob 2.5s ease-in-out infinite;
    animation-play-state: paused;
    cursor: pointer;
}

.scroll-chevron.animate {
    opacity: 1;
    animation-play-state: running;
}

@keyframes chevron-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   INSTITUTIONAL HEADER BAND
   ============================================================ */

#site-header {
    width: 100%;
    background-color: #2C2C2C;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.header-org-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 18px;
    color: #F7F5F0;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #D4CDC3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #B8A88A;
}

.header-double-rule {
    position: relative;
    height: 6px;
}

.header-double-rule .double-rule-top,
.header-double-rule .double-rule-bottom {
    position: absolute;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #B8A88A;
    transition: width 0.6s ease-out;
}

.header-double-rule .double-rule-top {
    top: 0;
}

.header-double-rule .double-rule-bottom {
    top: 5px;
    transition-delay: 0.2s;
}

.header-double-rule.animate .double-rule-top,
.header-double-rule.animate .double-rule-bottom {
    width: 100%;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

#main-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.content-section {
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #B8A88A;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: 0.015em;
    line-height: 1.15;
    color: #2C2C2C;
}

.section-rule {
    width: 0;
    height: 1px;
    background-color: #D4CDC3;
    margin: 24px 0 40px;
    transition: width 0.6s ease-out;
}

.section-rule.animate {
    width: 100%;
}

.section-body {
    position: relative;
}

.section-body p {
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    max-width: 65ch;
    margin-bottom: 1.5em;
    color: #2C2C2C;
}

.section-body p.stagger-line {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-body p.stagger-line.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Drop Caps */
.drop-cap-paragraph::first-letter {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 4.2em;
    float: left;
    line-height: 0.75;
    margin-right: 8px;
    margin-top: 8px;
    color: #2C2C2C;
    border-bottom: 2px solid #B8A88A;
    padding-bottom: 4px;
}

/* Section Divider */
.section-divider {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.centered-rule {
    width: 0;
    height: 1px;
    background-color: #D4CDC3;
    transition: width 0.6s ease-out;
}

.centered-rule.animate {
    width: 40%;
}

/* ============================================================
   SUBSECTION TITLES
   ============================================================ */

.subsection-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #2C2C2C;
    margin-bottom: 0.75em;
    margin-top: 2em;
    letter-spacing: 0.01em;
}

/* ============================================================
   PULL QUOTES
   ============================================================ */

.pull-quote {
    margin: 2.5em 0 2.5em 40px;
    padding-left: 24px;
    border-left: 3px solid #B8A88A;
    position: relative;
}

.pull-quote .border-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background-color: #B8A88A;
    transition: height 0.4s ease-out;
}

.pull-quote p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #2C2C2C;
    max-width: none;
}

.pull-quote-attribution {
    display: block;
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6B6560;
    margin-top: 12px;
}

/* ============================================================
   MARGIN NOTES
   ============================================================ */

.margin-note {
    position: absolute;
    left: -200px;
    width: 160px;
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    color: #6B6560;
}

.margin-note-label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    color: #B8A88A;
    margin-bottom: 4px;
}

.margin-note-text {
    display: block;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ============================================================
   DOCUMENTARY PHOTOGRAPHY
   ============================================================ */

.documentary-photo {
    margin: 2.5em 0;
}

.photo-placeholder {
    border: 1px solid #D4CDC3;
    overflow: hidden;
}

.photo-placeholder .photo-svg {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(85%) contrast(1.1) brightness(0.95);
}

.photo-caption {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6B6560;
    margin-top: 10px;
    line-height: 1.6;
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */

.publication-entry {
    padding: 24px 0;
    border-bottom: 1px solid #D4CDC3;
    position: relative;
}

.publication-entry:first-of-type {
    border-top: 1px solid #D4CDC3;
}

.pub-year {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #B8A88A;
    display: block;
    margin-bottom: 6px;
}

.pub-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.35;
    color: #2C2C2C;
    margin-bottom: 4px;
}

.pub-author {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 15px;
    color: #6B6560;
    margin-bottom: 2px;
}

.pub-detail {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #6B6560;
    letter-spacing: 0.03em;
}

/* Thematic Break */
.thematic-break {
    text-align: center;
    padding: 40px 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.thematic-break span {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    color: #B8A88A;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-block {
    margin: 2em 0;
    padding: 32px 0;
    border-top: 1px solid #D4CDC3;
    border-bottom: 1px solid #D4CDC3;
}

.contact-line {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 16px;
    color: #2C2C2C;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.contact-line:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #B8A88A;
    min-width: 140px;
    flex-shrink: 0;
}

/* ============================================================
   FOOTNOTES SECTION
   ============================================================ */

#footnotes {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 40px 60px;
}

.footnotes-title {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6B6560;
    margin-bottom: 16px;
}

.footnote-double-rule {
    position: relative;
    height: 6px;
    margin-bottom: 24px;
}

.footnote-double-rule .double-rule-top,
.footnote-double-rule .double-rule-bottom {
    position: absolute;
    left: 0;
    height: 1px;
    background-color: #D4CDC3;
}

.footnote-double-rule .double-rule-top {
    top: 0;
    width: 100%;
}

.footnote-double-rule .double-rule-bottom {
    top: 5px;
    width: 100%;
}

.footnote-entry {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
    transition: background-color 1s ease;
}

.footnote-entry.highlight {
    background-color: rgba(184, 168, 138, 0.2);
}

.footnote-number {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 14px;
    color: #B8A88A;
    flex-shrink: 0;
    min-width: 20px;
}

.footnote-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 14px;
    line-height: 1.65;
    color: #6B6560;
    margin-bottom: 0;
}

/* Footnote References */
.footnote-ref {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.75em;
    color: #B8A88A;
    cursor: pointer;
    text-decoration: none;
    vertical-align: super;
    line-height: 0;
    transition: color 0.2s ease;
}

.footnote-ref:hover {
    color: #8C7A5E;
}

/* Footnote Tooltip */
.footnote-tooltip {
    position: fixed;
    background-color: #E8E3DA;
    border: 1px solid #D4CDC3;
    padding: 16px 20px;
    max-width: 340px;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2C2C2C;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.08);
}

.footnote-tooltip.visible {
    opacity: 1;
}

/* ============================================================
   FOOTER / COLOPHON
   ============================================================ */

#site-footer {
    background-color: #2C2C2C;
    padding: 0;
}

.footer-double-rule {
    position: relative;
    height: 6px;
}

.footer-double-rule .double-rule-top,
.footer-double-rule .double-rule-bottom {
    position: absolute;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #B8A88A;
    transition: width 0.6s ease-out;
}

.footer-double-rule .double-rule-top {
    top: 0;
}

.footer-double-rule .double-rule-bottom {
    top: 5px;
    transition-delay: 0.2s;
}

.footer-double-rule.animate .double-rule-top,
.footer-double-rule.animate .double-rule-bottom {
    width: 100%;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-seal {
    width: 64px;
    height: 64px;
    position: relative;
}

.footer-seal-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid #8C7A5E;
}

.footer-seal-inner {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    border: 1px solid #8C7A5E;
}

.footer-seal-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    color: #8C7A5E;
    letter-spacing: 0.05em;
}

.footer-colophon {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.colophon-item {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #D4CDC3;
}

.colophon-sep {
    font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    color: #6B6560;
    margin: 0 14px;
}

/* ============================================================
   RESPONSIVE -- below 1200px: hide margin notes
   ============================================================ */

@media (max-width: 1200px) {
    .margin-note {
        position: relative;
        left: auto;
        width: auto;
        margin: 1.5em 0;
        padding-left: 16px;
        border-left: 2px solid #B8A88A;
    }
}

/* ============================================================
   RESPONSIVE -- below 768px
   ============================================================ */

@media (max-width: 768px) {
    #main-content {
        padding: 60px 20px 20px;
    }

    #footnotes {
        padding: 40px 20px 60px;
    }

    .header-inner {
        padding: 0 20px;
        height: 60px;
    }

    .header-nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .header-org-name {
        font-size: 14px;
        letter-spacing: 0.2em;
    }

    .section-divider {
        padding: 40px 0;
    }

    .pull-quote {
        margin-left: 20px;
        padding-left: 16px;
    }

    .seal-watermark {
        display: none;
    }

    .contact-line {
        flex-direction: column;
        gap: 4px;
    }

    .contact-label {
        min-width: auto;
    }

    .footer-inner {
        padding: 36px 20px;
    }

    .colophon-sep {
        margin: 0 8px;
    }
}

/* ============================================================
   RESPONSIVE -- below 480px: compact nav
   ============================================================ */

@media (max-width: 480px) {
    .header-nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .section-header {
        flex-direction: column;
        gap: 4px;
    }
}
