/* ============================================================
   archaic.studio - Styles
   Archaeological materiality as design system
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors from DESIGN.md */
    --aged-vellum: #f5f0e6;
    --linen-tray: #ebe3d1;
    --iron-gall-ink: #2c2418;
    --faded-script: #6b5d4e;
    --terracotta-ochre: #b5651d;
    --verdigris: #4a8572;
    --lapis-lazuli: #1e3a5f;
    --patina-gold: #c4a882;
    --excavation-dark: #1a1510;
    --aged-bronze: #8b6d47;
    --parchment-mid: #d4c5a9;

    /* Additional derived tones */
    --patina-gold-faint: rgba(196, 168, 130, 0.08);
    --strat-band-1: rgba(196, 168, 130, 0.04);
    --strat-band-2: rgba(181, 101, 29, 0.03);
    --strat-band-3: rgba(139, 109, 71, 0.05);

    /* Typography scale */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Source Serif 4', 'Georgia', serif;
    --font-caption: 'EB Garamond', 'Georgia', serif;
    --font-inscription: 'Noto Serif Display', 'Georgia', serif;

    /* Sizes */
    --title-size: clamp(2.5rem, 5vw, 5rem);
    --body-size: 18px;
    --caption-size: 13px;
    --margin-desktop: 12vw;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    overflow-x: hidden;
    background: var(--aged-vellum);
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: 1.72;
    color: var(--iron-gall-ink);
    background: var(--aged-vellum);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--terracotta-ochre);
    text-decoration: none;
    background-image: linear-gradient(var(--terracotta-ochre), var(--terracotta-ochre));
    background-size: 0% 1px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 300ms ease-out, color 300ms ease-out;
}

a:hover {
    color: var(--verdigris);
    background-size: 100% 1px;
}

/* --- Baseline Grid Overlay (faint hairlines) --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent calc(1.72 * var(--body-size) - 1px),
        var(--patina-gold-faint) calc(1.72 * var(--body-size) - 1px),
        var(--patina-gold-faint) calc(1.72 * var(--body-size))
    );
    opacity: 0.5;
}

/* --- Craquelure Overlay --- */
#craquelure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M23,5 Q45,34 67,89 T123,156 Q134,178 145,234 T189,312 Q201,345 210,389' fill='none' stroke='%232c2418' stroke-width='0.5'/%3E%3Cpath d='M67,2 Q89,56 112,123 T156,234 Q167,267 178,312 T212,378' fill='none' stroke='%232c2418' stroke-width='0.4'/%3E%3Cpath d='M134,8 Q156,45 178,112 T223,189 Q234,212 245,256 T278,334' fill='none' stroke='%232c2418' stroke-width='0.3'/%3E%3Cpath d='M200,3 Q212,67 234,134 T267,223 Q278,256 289,312' fill='none' stroke='%232c2418' stroke-width='0.5'/%3E%3Cpath d='M289,12 Q301,78 312,145 T334,234 Q345,267 356,323 T378,390' fill='none' stroke='%232c2418' stroke-width='0.4'/%3E%3Cpath d='M345,5 Q356,56 367,123 T389,212 Q395,245 398,278' fill='none' stroke='%232c2418' stroke-width='0.3'/%3E%3Cpath d='M5,67 Q34,89 89,112 T178,156 Q212,167 267,189 T356,223 Q378,234 395,245' fill='none' stroke='%232c2418' stroke-width='0.4'/%3E%3Cpath d='M8,145 Q45,156 112,178 T212,212 Q256,223 312,245 T389,278' fill='none' stroke='%232c2418' stroke-width='0.3'/%3E%3Cpath d='M3,234 Q56,245 123,267 T234,301 Q278,312 334,334 T398,356' fill='none' stroke='%232c2418' stroke-width='0.5'/%3E%3Cpath d='M12,312 Q67,323 134,345 T256,378 Q289,389 345,395' fill='none' stroke='%232c2418' stroke-width='0.4'/%3E%3Cpath d='M45,189 L67,201 Q89,178 112,201 L134,189 Q145,212 167,189 L189,201' fill='none' stroke='%232c2418' stroke-width='0.3'/%3E%3Cpath d='M234,89 L256,101 Q267,78 289,101 L312,89 Q323,112 345,89 L367,101' fill='none' stroke='%232c2418' stroke-width='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ============================================================
   FOLIO OPENING ANIMATION
   ============================================================ */
#folio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

#folio-top,
#folio-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--excavation-dark);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

#folio-top {
    top: 0;
    transform-origin: top center;
}

#folio-bottom {
    bottom: 0;
    transform-origin: bottom center;
}

#folio-overlay.open #folio-top {
    transform: translateY(-100%);
}

#folio-overlay.open #folio-bottom {
    transform: translateY(100%);
}

#folio-overlay.complete {
    display: none;
}

#folio-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--patina-gold);
    z-index: 3;
    transform: translateY(-50%);
    transition: width 2s ease-in-out;
}

#folio-line.drawn {
    width: 100%;
}

#folio-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

#folio-title.visible {
    opacity: 1;
}

.title-text {
    display: block;
    font-family: var(--font-inscription);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.25em;
    color: var(--terracotta-ochre);
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(139, 109, 71, 0.3);
    margin-bottom: 0.5em;
}

.title-text .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.15s ease-in;
}

.title-text .char.visible {
    opacity: 1;
}

.subtitle-text {
    display: block;
    font-family: var(--font-caption);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--faded-script);
    opacity: 0;
    transition: opacity 1.2s ease-in;
    letter-spacing: 0.06em;
}

.subtitle-text.visible {
    opacity: 0.7;
}

/* ============================================================
   TIMELINE NAVIGATION (Desktop)
   ============================================================ */
#timeline-nav {
    position: fixed;
    left: 2vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

#timeline-nav.visible {
    opacity: 1;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--patina-gold);
    opacity: 0.4;
    transform: translateX(-50%);
    z-index: -1;
}

.timeline-node {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    text-decoration: none;
    background-image: none;
    cursor: pointer;
}

.timeline-node:hover {
    background-image: none;
}

.node-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--patina-gold);
    background: var(--aged-vellum);
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.timeline-node.active .node-circle {
    background: var(--terracotta-ochre);
    border-color: var(--terracotta-ochre);
    animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 0 0 rgba(181, 101, 29, 0); }
    50% { opacity: 1; box-shadow: 0 0 8px 2px rgba(181, 101, 29, 0.2); }
}

.node-label {
    font-family: var(--font-caption);
    font-size: 12px;
    font-weight: 500;
    color: var(--faded-script);
    letter-spacing: 0.06em;
    transition: color 0.4s ease;
}

.timeline-node.active .node-label {
    color: var(--terracotta-ochre);
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
#mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 9000;
    background: rgba(245, 240, 230, 0.95);
    border-bottom: 1px solid var(--patina-gold);
    align-items: center;
    padding: 0 1.25rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#mobile-header.visible {
    opacity: 1;
}

#mobile-menu-btn {
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.chisel-stroke {
    display: block;
    height: 0;
    border: none;
    background: var(--iron-gall-ink);
}

.stroke-1 { width: 28px; height: 2.5px; }
.stroke-2 { width: 20px; height: 1.5px; }
.stroke-3 { width: 24px; height: 2px; }

.mobile-brand {
    font-family: var(--font-inscription);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--iron-gall-ink);
    margin-left: auto;
}

#mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 21, 16, 0.95);
    z-index: 8999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#mobile-menu-overlay.open {
    display: flex;
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-links a {
    font-family: var(--font-caption);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--patina-gold);
    letter-spacing: 0.06em;
    background-image: none;
    transition: color 0.4s ease;
}

.mobile-nav-links a:hover {
    color: var(--terracotta-ochre);
    background-image: none;
}

/* ============================================================
   PLATES (Main Content Sections)
   ============================================================ */
.plate {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    overflow: hidden;
}

.plate-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem var(--margin-desktop);
}

.plate-content.align-left .plate-inner {
    max-width: 60%;
    margin-left: 0;
    margin-right: auto;
}

.plate-content.align-right .plate-inner {
    max-width: 60%;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.plate-content.align-right .plate-body {
    text-align: left;
}

.plate-content.align-center .plate-inner {
    max-width: 60%;
    margin: 0 auto;
    text-align: center;
}

/* --- Plate Number (Roman Numeral subtitle) --- */
.plate-number {
    font-family: var(--font-caption);
    font-weight: 500;
    font-size: var(--caption-size);
    letter-spacing: 0.06em;
    color: var(--faded-script);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.plate-number-light {
    color: var(--patina-gold);
}

.plate.in-view .plate-number {
    opacity: 1;
    transform: translateY(0);
}

/* --- Plate Title --- */
.plate-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--title-size);
    letter-spacing: -0.02em;
    color: var(--iron-gall-ink);
    line-height: 1.15;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.plate.in-view .plate-title {
    opacity: 1;
    transform: translateY(0);
}

/* Slight rotation for hand-set type feel */
.plate:nth-child(odd) .plate-title {
    transform: rotate(-0.3deg) translateY(20px);
}

.plate.in-view:nth-child(odd) .plate-title {
    transform: rotate(-0.3deg) translateY(0);
}

.plate:nth-child(even) .plate-title {
    transform: rotate(0.5deg) translateY(20px);
}

.plate.in-view:nth-child(even) .plate-title {
    transform: rotate(0.5deg) translateY(0);
}

/* --- Drop Caps --- */
.drop-cap {
    float: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4.5em;
    line-height: 0.8;
    color: var(--terracotta-ochre);
    padding: 0.05em 0.12em 0 0;
    border-left: 2px solid var(--patina-gold);
    border-bottom: 2px solid var(--patina-gold);
    margin-right: 0.05em;
}

/* --- Plate Body --- */
.plate-body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.plate.in-view .plate-body {
    opacity: 1;
    transform: translateY(0);
}

.plate-body p {
    margin-bottom: 1.2em;
}

.plate-body p + p {
    text-indent: 2em;
}

/* --- Stratigraphy Bands --- */
.stratigraphy-bands {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    pointer-events: none;
}

.stratigraphy-bands::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(196, 168, 130, 0.04));
}

.stratigraphy-bands::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, transparent, rgba(181, 101, 29, 0.03));
}

/* Additional stratigraphy via box-shadow on plate -- uses #8b6d47 (aged bronze) */
.plate::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to bottom, transparent, var(--aged-bronze));
    opacity: 0.05;
    pointer-events: none;
}

/* --- Margin Annotations --- */
.margin-annotation {
    position: absolute;
    top: 50%;
    font-family: var(--font-caption);
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--faded-script);
    opacity: 0.15;
    white-space: nowrap;
    pointer-events: none;
}

.margin-annotation::before {
    content: attr(data-text);
}

.margin-annotation.left-margin {
    left: 3vw;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left center;
}

.margin-annotation.right-margin {
    right: 3vw;
    transform: rotate(90deg) translateX(50%);
    transform-origin: right center;
}

/* ============================================================
   PLATE DIVIDERS (SVG Ornaments)
   ============================================================ */
.plate-divider {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider-svg {
    width: 60%;
    max-width: 600px;
    height: 40px;
}

.divider-path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 1.8s ease-in-out;
}

.plate-divider.drawn .divider-path {
    stroke-dashoffset: 0;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    padding: 2rem;
    background: var(--linen-tray);
    border: 1px solid rgba(196, 168, 130, 0.4);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.6s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}

.project-card:hover {
    border-color: var(--patina-gold);
    box-shadow: 4px 6px 20px rgba(44, 36, 24, 0.1);
}

.card-artifact-silhouette {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.15;
}

.amphora-silhouette {
    background: var(--iron-gall-ink);
    clip-path: polygon(35% 0%, 65% 0%, 70% 8%, 60% 12%, 75% 45%, 80% 85%, 75% 100%, 25% 100%, 20% 85%, 25% 45%, 40% 12%, 30% 8%);
}

.tablet-silhouette {
    background: var(--iron-gall-ink);
    clip-path: polygon(8% 5%, 92% 5%, 95% 8%, 95% 92%, 92% 95%, 8% 95%, 5% 92%, 5% 8%);
}

.mirror-silhouette {
    background: var(--iron-gall-ink);
    clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 75%, 15% 85%, 0% 50%, 15% 15%);
}

.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--iron-gall-ink);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.card-caption {
    font-family: var(--font-caption);
    font-style: italic;
    font-size: var(--caption-size);
    color: var(--faded-script);
    letter-spacing: 0.06em;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-date {
    font-family: var(--font-caption);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--patina-gold);
}

/* ============================================================
   ARCHIVE ENTRIES
   ============================================================ */
.archive-entries {
    margin-top: 2rem;
}

.archive-entry {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(196, 168, 130, 0.2);
    transition: border-color 0.4s ease;
}

.archive-entry:hover {
    border-color: var(--patina-gold);
}

.entry-number {
    font-family: var(--font-caption);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--patina-gold);
    min-width: 3rem;
}

.entry-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--iron-gall-ink);
    flex: 1;
}

.entry-period {
    font-family: var(--font-caption);
    font-style: italic;
    font-size: var(--caption-size);
    color: var(--faded-script);
    letter-spacing: 0.04em;
}

/* ============================================================
   PLATE VI: COLOPHON (Dark Footer)
   ============================================================ */
.plate-dark {
    background: var(--excavation-dark);
    color: var(--patina-gold);
}

.plate-dark::after {
    display: none;
}

.colophon-title {
    font-family: var(--font-inscription);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.25em;
    color: var(--terracotta-ochre);
    text-shadow: 1px 1px 0 rgba(139, 109, 71, 0.3);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.plate-dark.in-view .colophon-title {
    opacity: 1;
    transform: translateY(0);
}

.colophon-subtitle {
    font-family: var(--font-caption);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--faded-script);
    letter-spacing: 0.06em;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.plate-dark.in-view .colophon-subtitle {
    opacity: 0.7;
    transform: translateY(0);
}

.colophon-body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.plate-dark.in-view .colophon-body {
    opacity: 1;
    transform: translateY(0);
}

.colophon-body p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--parchment-mid);
    line-height: 1.72;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.colophon-details {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.colophon-detail {
    text-align: center;
}

.detail-label {
    display: block;
    font-family: var(--font-caption);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faded-script);
    margin-bottom: 0.3rem;
}

.detail-value {
    font-family: var(--font-caption);
    font-style: italic;
    font-size: var(--caption-size);
    color: var(--patina-gold);
    letter-spacing: 0.04em;
}

.colophon-link {
    color: var(--terracotta-ochre);
}

.colophon-link:hover {
    color: var(--verdigris);
}

.colophon-ornament {
    margin: 2.5rem auto 1.5rem;
    text-align: center;
}

.colophon-ornament-svg {
    width: 120px;
    height: 40px;
    opacity: 0.5;
}

.colophon-finis {
    font-family: var(--font-caption);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--faded-script);
    opacity: 0.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --margin-desktop: 6vw;
    }

    .plate-content.align-left .plate-inner,
    .plate-content.align-right .plate-inner,
    .plate-content.align-center .plate-inner {
        max-width: 80%;
    }

    .margin-annotation {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --margin-desktop: 5vw;
        --body-size: 16px;
    }

    #timeline-nav {
        display: none !important;
    }

    #mobile-header {
        display: flex;
    }

    .plate {
        min-height: auto;
        min-height: 100vh;
        scroll-snap-align: none;
    }

    .plate-content {
        padding: 5rem var(--margin-desktop) 4rem;
    }

    .plate-content.align-left .plate-inner,
    .plate-content.align-right .plate-inner,
    .plate-content.align-center .plate-inner {
        max-width: 100%;
        text-align: left;
    }

    .plate-content.align-right .plate-inner {
        text-align: left;
    }

    .drop-cap {
        font-size: 3.5em;
    }

    .project-cards {
        grid-template-columns: 1fr;
    }

    .archive-entry {
        flex-direction: column;
        gap: 0.3rem;
    }

    .colophon-details {
        flex-direction: column;
        gap: 1.5rem;
    }

    .divider-svg {
        width: 80%;
    }

    .title-text {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    body::before {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --margin-desktop: 4vw;
    }

    .plate-content {
        padding: 4rem var(--margin-desktop) 3rem;
    }
}

/* ============================================================
   UTILITY: Animation states
   ============================================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
