/* ===================================
   courthouse.app - Styles
   ===================================
   Palette:
   Limestone:       #E8E0D0
   Aged Ivory:      #F0E8D8
   Walnut Paneling: #3B2A1A
   Judicial Dark:   #1A1210
   Judicial Ink:    #2A1F18
   Polished Brass:  #C9A84C
   Tarnished Gold:  #8B7332
   Wax Red:         #8B2500
   Marble Vein:     #B8AFA4
   Mortar:          #D4CBC0
   =================================== */

/* ----------- Reset & Base ----------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lora', Georgia, serif;
    color: #F0E8D8;
    background: #1A1210;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ----------- Typography ----------- */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.accent-text,
.brass-plate-text,
.brass-plate-attribution,
.nav-numeral,
.nav-name,
.seal-letter,
.seal-stamp,
.footer-plate-text,
.footer-legal,
.column-label {
    font-family: 'Cinzel', 'Times New Roman', serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ----------- SVG Noise Texture ----------- */
/* Inline SVG noise for paper/limestone textures */

/* ----------- Panels (Full Viewport) ----------- */
.panel {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   SECTION I: THE PORTICO (Hero)
   ========================================== */
.panel-portico {
    background-color: #E8E0D0;
    background-image:
        radial-gradient(ellipse 80px 80px at 20% 30%, #D4CBC0 0%, transparent 70%),
        radial-gradient(ellipse 60px 60px at 70% 60%, #D4CBC0 0%, transparent 70%),
        radial-gradient(ellipse 100px 40px at 40% 80%, #D4CBC0 0%, transparent 60%),
        radial-gradient(ellipse 50px 70px at 85% 15%, #D4CBC0 0%, transparent 65%),
        radial-gradient(ellipse 90px 50px at 10% 70%, #D4CBC0 0%, transparent 60%),
        radial-gradient(circle 3px at 15% 25%, #B8AFA4 0%, transparent 100%),
        radial-gradient(circle 2px at 55% 45%, #B8AFA4 0%, transparent 100%),
        radial-gradient(circle 4px at 80% 75%, #B8AFA4 0%, transparent 100%);
}

/* --- Corinthian Columns --- */
.column {
    position: absolute;
    top: 5vh;
    width: 6vw;
    height: 90vh;
    z-index: 2;
    opacity: 0;
    background:
        repeating-linear-gradient(
            90deg,
            #E8E0D0 0px,
            #D4CBC0 1.5px,
            #E8E0D0 3px
        );
    box-shadow: inset 2px 0 4px rgba(0,0,0,0.1), inset -2px 0 4px rgba(0,0,0,0.1);
}

.column::before,
.column::after {
    content: '';
    position: absolute;
    left: -1vw;
    width: calc(6vw + 2vw);
    height: 3vh;
    background: linear-gradient(180deg, #D4CBC0, #E8E0D0, #D4CBC0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.column::before {
    top: 0;
    border-radius: 2px 2px 0 0;
}

.column::after {
    bottom: 0;
    border-radius: 0 0 2px 2px;
}

.column-left {
    left: 8%;
    transform: translateX(-2vw);
    transition: opacity 600ms ease, transform 600ms ease;
}

.column-right {
    right: 8%;
    transform: translateX(2vw);
    transition: opacity 600ms ease, transform 600ms ease;
}

.column-left.animate-in,
.column-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* --- Portico Content --- */
.portico-content {
    text-align: center;
    z-index: 3;
    position: relative;
}

.portico-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 7rem);
    letter-spacing: 0.15em;
    color: #2A1F18;
    text-transform: uppercase;
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}

.portico-title.animate-in {
    opacity: 1;
    animation: titleReveal 1200ms ease-out forwards;
}

@keyframes titleReveal {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0% 0 0); }
}

.portico-subtitle {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #8B7332;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 500ms ease;
}

.portico-subtitle.animate-in {
    opacity: 1;
}

/* --- Ornamental Rules --- */
.ornamental-rule {
    position: relative;
    width: 0;
    height: 1px;
    background: #8B7332;
    margin: 1.2rem auto;
    transition: width 500ms ease;
}

.ornamental-rule.animate-in {
    width: 60%;
}

/* Diamond variant */
.rule-diamond-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #8B7332;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Circle variant */
.rule-circle {
    background: #8B7332;
}

.rule-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #8B7332;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================
   SECTION II: THE VESTIBULE (Introduction)
   ========================================== */
.panel-vestibule {
    background-color: #3B2A1A;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(70,50,30,0.15) 0.5px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(50,35,20,0.1) 0.25px,
            transparent 0.5px,
            transparent 6px
        );
    padding: 15vh 10vw;
}

.vestibule-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.vestibule-text {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    color: #F0E8D8;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.vestibule-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.brass-plate {
    background: linear-gradient(135deg, #C9A84C, #8B7332, #C9A84C);
    border: 1px solid #8B7332;
    padding: 2.5rem 3rem;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.brass-plate.visible {
    opacity: 1;
    transform: translateY(0);
}

.brass-plate::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(26,18,16,0.3);
}

.brass-plate-text {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(0.75rem, 0.95vw, 0.9rem);
    letter-spacing: 0.15em;
    color: #1A1210;
    line-height: 1.8;
    font-style: italic;
}

.brass-plate-attribution {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    letter-spacing: 0.2em;
    color: #2A1F18;
    margin-top: 1rem;
}

/* ==========================================
   SECTION III: THE MAIN HALL (Features)
   ========================================== */
.panel-main-hall {
    background-color: #3B2A1A;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(70,50,30,0.12) 0.5px,
            transparent 1px,
            transparent 5px
        );
    padding: 10vh 8vw;
}

.hall-content {
    display: flex;
    flex-direction: column;
    gap: 6vh;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.document-block {
    background: #F0E8D8;
    position: relative;
    max-width: 520px;
    padding: 0;
}

.doc-frame {
    border: 2px solid #C9A84C;
    outline: 1px solid #8B7332;
    outline-offset: 4px;
    padding: 3rem 2.5rem;
    position: relative;
}

/* Corner ornaments */
.doc-frame::before,
.doc-frame::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #C9A84C;
    transform: rotate(45deg);
}

.doc-frame::before {
    top: -3px;
    left: -3px;
}

.doc-frame::after {
    bottom: -3px;
    right: -3px;
}

/* Z-pattern stagger with micro-rotations */
.doc-1 {
    align-self: flex-start;
    transform: rotate(-0.5deg);
}

.doc-2 {
    align-self: flex-end;
    transform: rotate(0.8deg);
}

.doc-3 {
    align-self: flex-start;
    margin-left: 5vw;
    transform: rotate(-0.3deg);
}

.doc-heading {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #2A1F18;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.doc-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.doc-text {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: #2A1F18;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.doc-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Seal */
.seal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #C9A84C 0%, #8B7332 60%, #5A4520 100%);
    border: 2px ridge #8B7332;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 400ms ease;
}

.seal.visible {
    opacity: 1;
}

.seal-letter {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 0.75rem;
    color: #2A1F18;
    opacity: 0.7;
    letter-spacing: 0;
}

/* ==========================================
   SECTION IV: THE COURTROOM (Central)
   ========================================== */
.panel-courtroom {
    background-color: #3B2A1A;
    transition: background-color 800ms ease;
    flex-direction: column;
    padding: 0;
}

.panel-courtroom.visible {
    background-color: #1A1210;
}

/* Coffered ceiling pattern */
.panel-courtroom::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 58px,
            #1E1614 58px,
            #1E1614 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 78px,
            #221A16 78px,
            #221A16 80px
        );
    opacity: 0.25;
    pointer-events: none;
}

.courtroom-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8vh 6vw;
    position: relative;
    z-index: 1;
}

.judges-bench {
    background: linear-gradient(180deg, #3B2A1A, #2A1F18);
    padding: 3rem 4rem 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    margin-bottom: 0;
    text-align: center;
}

.bench-heading {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #C9A84C;
    letter-spacing: 0.15em;
    opacity: 0;
    transform: translateY(-20vh);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bench-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.brass-railing {
    width: 100%;
    height: 1px;
    background: #C9A84C;
    margin-top: 1.5rem;
}

.courtroom-floor {
    display: flex;
    gap: 4%;
    padding: 4vh 0;
}

.court-column {
    flex: 1;
}

.prosecution {
    flex: 0 0 38%;
}

.defense {
    flex: 0 0 54%;
}

.column-label {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.2em;
    color: #C9A84C;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #8B7332;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.column-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimony {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.75;
    color: #F0E8D8;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.testimony.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   SECTION V: THE ARCHIVE (Evidence/Portfolio)
   ========================================== */
.panel-archive {
    background-color: #1A1210;
    flex-direction: column;
    padding: 10vh 8vw;
    position: relative;
}

.archive-watermark {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23C9A84C' stroke-width='1' stroke-linecap='round'%3E%3Crect x='6' y='4' width='14' height='7' rx='1.5' transform='rotate(-30 13 7.5)'/%3E%3Cline x1='16' y1='14' x2='24' y2='26'/%3E%3Cline x1='4' y1='26' x2='14' y2='26' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    transform: rotate(30deg) scale(1.5);
    opacity: 0.03;
    pointer-events: none;
}

.archive-heading {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    color: #C9A84C;
    letter-spacing: 0.12em;
    text-align: center;
    margin-bottom: 6vh;
    position: relative;
    z-index: 1;
}

.archive-heading .scroll-child {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
    display: inline-block;
}

.archive-heading .scroll-child.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Case Cards --- */
.case-card {
    background: #F5EFE0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    position: relative;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: box-shadow 250ms cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 4px rgba(26,18,16,0.3);
    opacity: 0;
    transform: translateY(15px);
}

.case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-card:hover {
    box-shadow: 0 12px 24px rgba(26,18,16,0.3);
    transform: translateY(-4px) rotate(0deg);
    z-index: 2;
}

/* Aspect ratio variants */
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-1-1 { aspect-ratio: 1/1; }

/* Micro-rotations with nth-child */
.case-card:nth-child(1) { transform: rotate(-0.5deg); }
.case-card:nth-child(2) { transform: rotate(0.3deg); }
.case-card:nth-child(3) { transform: rotate(-0.8deg); }
.case-card:nth-child(4) { transform: rotate(0.6deg); }
.case-card:nth-child(5) { transform: rotate(-0.2deg); }
.case-card:nth-child(6) { transform: rotate(0.4deg); }

.case-card.visible:nth-child(1) { transform: translateY(0) rotate(-0.5deg); }
.case-card.visible:nth-child(2) { transform: translateY(0) rotate(0.3deg); }
.case-card.visible:nth-child(3) { transform: translateY(0) rotate(-0.8deg); }
.case-card.visible:nth-child(4) { transform: translateY(0) rotate(0.6deg); }
.case-card.visible:nth-child(5) { transform: translateY(0) rotate(-0.2deg); }
.case-card.visible:nth-child(6) { transform: translateY(0) rotate(0.4deg); }

/* Wax Seal */
.wax-seal {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #a83a10 0%, #8B2500 50%, #5A1500 100%);
    border: 1px ridge rgba(139,37,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 200ms ease-out;
}

.case-card:hover .wax-seal {
    transform: scale(1.1);
}

/* Positional variation for seals */
.case-card:nth-child(1) .wax-seal { top: 8px; right: 6px; }
.case-card:nth-child(2) .wax-seal { top: 5px; right: 10px; }
.case-card:nth-child(3) .wax-seal { top: 10px; right: 4px; }
.case-card:nth-child(4) .wax-seal { top: 6px; right: 8px; }
.case-card:nth-child(5) .wax-seal { top: 4px; right: 7px; }
.case-card:nth-child(6) .wax-seal { top: 9px; right: 5px; }

.seal-stamp {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 0.65rem;
    color: rgba(240,232,216,0.6);
    letter-spacing: 0;
}

.case-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: #2A1F18;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.case-excerpt {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    color: #3B2A1A;
    font-style: italic;
}

/* ==========================================
   SECTION VI: THE STEPS (Exit/Footer)
   ========================================== */
.panel-steps {
    background-color: #E8E0D0;
    background-image:
        radial-gradient(ellipse 80px 80px at 30% 40%, #D4CBC0 0%, transparent 70%),
        radial-gradient(ellipse 60px 60px at 60% 70%, #D4CBC0 0%, transparent 70%),
        radial-gradient(ellipse 100px 40px at 50% 20%, #D4CBC0 0%, transparent 60%);
    flex-direction: column;
    padding: 10vh 8vw;
}

.steps-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.descending-steps {
    margin: 0 auto 5vh;
    perspective: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.step {
    height: 24px;
    background: #D4CBC0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-1 {
    width: 60%;
    background: #D4CBC0;
}

.step-2 {
    width: 72%;
    background: #DDD5C6;
}

.step-3 {
    width: 84%;
    background: #E8E0D0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.steps-statement {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    color: #2A1F18;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.steps-statement.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-plate {
    background: linear-gradient(135deg, #C9A84C, #8B7332, #C9A84C);
    border: 1px solid #8B7332;
    padding: 2rem 3rem;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.2);
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.footer-plate.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-plate::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(26,18,16,0.3);
}

.footer-plate-text {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    letter-spacing: 0.25em;
    color: #1A1210;
    font-weight: 700;
}

.footer-plate .ornamental-rule {
    width: 80%;
    margin: 0.8rem auto;
    height: 1px;
    background: rgba(26,18,16,0.3);
}

.footer-legal {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(0.55rem, 0.7vw, 0.65rem);
    letter-spacing: 0.2em;
    color: #2A1F18;
    opacity: 0.7;
}

/* ==========================================
   NAVIGATION
   ========================================== */
#gavel-trigger {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}

#gavel-icon {
    transition: transform 150ms ease;
}

#gavel-trigger:hover #gavel-icon {
    transform: rotate(-10deg);
}

/* Gavel strike animation on load */
@keyframes gavelStrike {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-18deg); }
    100% { transform: rotate(0deg); }
}

#gavel-head.strike {
    transform-origin: 50% 100%;
    animation: gavelStrike 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Navigation Overlay */
#nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,18,16,0.97);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 400ms ease-out;
}

#nav-overlay.open {
    transform: translateX(0);
}

#nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.nav-numeral {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #C9A84C;
    letter-spacing: 0.1em;
    transition: transform 200ms ease;
    min-width: 3rem;
    text-align: right;
}

.nav-name {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: #C9A84C;
    letter-spacing: 0.2em;
    transition: color 200ms ease;
    position: relative;
    padding-left: 0.5rem;
    border-left: 2px solid transparent;
    transition: border-color 200ms ease, color 200ms ease;
}

.nav-item:hover .nav-numeral {
    transform: scale(1.2);
}

.nav-item:hover .nav-name {
    color: #F0E8D8;
    border-left-color: #C9A84C;
}

/* ==========================================
   BRASS LINK HOVER (underline draw)
   ========================================== */
.brass-link {
    color: #C9A84C;
    text-decoration: none;
    position: relative;
    transition: color 300ms ease;
}

.brass-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F0E8D8;
    transition: width 300ms ease;
}

.brass-link:hover {
    color: #F0E8D8;
}

.brass-link:hover::after {
    width: 100%;
}

/* ==========================================
   SCROLL REVEAL UTILITY
   ========================================== */
.scroll-child {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.scroll-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .column {
        width: 4vw;
    }

    .column-left {
        left: 3%;
    }

    .column-right {
        right: 3%;
    }

    .panel-vestibule {
        padding: 10vh 6vw;
    }

    .panel-main-hall {
        padding: 8vh 5vw;
    }

    .document-block {
        max-width: 100%;
    }

    .doc-1,
    .doc-2,
    .doc-3 {
        align-self: center;
        margin-left: 0;
        transform: rotate(0deg);
    }

    .courtroom-floor {
        flex-direction: column;
    }

    .prosecution,
    .defense {
        flex: 1 1 100%;
    }

    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .judges-bench {
        padding: 2rem;
    }

    .brass-plate {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .case-grid {
        grid-template-columns: 1fr;
    }

    .column {
        display: none;
    }

    .portico-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}
