/* ============================================
   archaic.works - Styles
   Light-academia, coastal Mediterranean aesthetic
   ============================================ */

/* --- Custom Properties --- */
:root {
    /* Palette */
    --plaster-white: #F5F0E8;
    --aegean-blue: #1B4965;
    --coastal-teal: #5FA8D3;
    --terracotta-warm: #C17C56;
    --marble-vein: #D4C5B0;
    --obsidian-ink: #2B2D42;
    --patina-green: #7A9E7E;
    --golden-hour: #E8D5B7;

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-headline: 'Cormorant', serif;
    --font-body: 'Source Serif 4', serif;
    --font-annotation: 'Noto Sans', sans-serif;

    /* Spacing */
    --container-max: 1400px;
    --outer-margin: clamp(40px, 8vw, 120px);
    --slab-gap: clamp(80px, 12vh, 160px);

    /* Animation */
    --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-exit: cubic-bezier(0.55, 0, 0.1, 1);
    --duration-slab: 800ms;
    --duration-path: 1500ms;
    --duration-hover: 400ms;
    --duration-rotate: 72000ms;
}

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

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

body {
    background-color: var(--plaster-white);
    color: var(--aegean-blue);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    position: relative;
}

/* Paper grain texture overlay */
.paper-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   HERO SECTION - THE THRESHOLD
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, var(--plaster-white) 0%, var(--golden-hour) 30%, var(--coastal-teal) 70%, var(--aegean-blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-perspective {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sea backdrop visible through columns */
.sea-backdrop {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(95, 168, 211, 0.15) 30%,
        rgba(95, 168, 211, 0.3) 60%,
        rgba(27, 73, 101, 0.5) 100%
    );
    z-index: 0;
}

/* Cloud light shift */
.cloud-shift {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(95, 168, 211, 0.12), transparent);
    opacity: 0;
    z-index: 3;
    animation: cloudPass 12s ease-in-out infinite;
}

@keyframes cloudPass {
    0%, 100% { opacity: 0; }
    40% { opacity: 1; }
    60% { opacity: 1; }
}

/* --- Colonnade --- */
.colonnade {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%) rotateX(3deg);
    transform-style: preserve-3d;
    display: flex;
    gap: clamp(40px, 8vw, 100px);
    z-index: 2;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
}

.column-cap {
    width: clamp(50px, 7vw, 80px);
    height: clamp(16px, 2vw, 24px);
    background: linear-gradient(180deg, var(--marble-vein) 0%, var(--plaster-white) 40%, var(--marble-vein) 100%);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 -2px 8px rgba(27, 73, 101, 0.1);
}

.column-cap::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -8px;
    right: -8px;
    height: 6px;
    background: linear-gradient(180deg, var(--plaster-white), var(--marble-vein));
    border-radius: 2px 2px 0 0;
}

/* Ionic scroll decorations on capital */
.column-cap::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -4px;
    right: -4px;
    height: 3px;
    background: linear-gradient(90deg, var(--marble-vein), var(--plaster-white) 50%, var(--marble-vein));
    border-radius: 0 0 4px 4px;
}

.column-shaft {
    width: clamp(28px, 4vw, 44px);
    height: clamp(180px, 30vh, 320px);
    background: linear-gradient(90deg,
        var(--marble-vein) 0%,
        var(--plaster-white) 20%,
        #FEFCF8 45%,
        var(--plaster-white) 70%,
        var(--marble-vein) 100%
    );
    position: relative;
    border-radius: 2px;
}

/* Column fluting effect */
.column-shaft::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
        transparent 0px,
        rgba(27, 73, 101, 0.04) 2px,
        transparent 4px,
        transparent 8px
    );
    border-radius: 2px;
}

/* Entasis subtle curve illusion */
.column-shaft::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -2px;
    right: -2px;
    bottom: 10%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(254, 252, 248, 0.3) 30%,
        rgba(254, 252, 248, 0.4) 50%,
        rgba(254, 252, 248, 0.3) 70%,
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
}

.column-base {
    width: clamp(54px, 7.5vw, 84px);
    height: clamp(12px, 1.5vw, 18px);
    background: linear-gradient(0deg, var(--marble-vein) 0%, var(--plaster-white) 100%);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 4px 16px rgba(27, 73, 101, 0.12);
}

/* --- Lintel / Inscription --- */
.lintel {
    position: absolute;
    bottom: calc(15% + clamp(210px, 34vh, 370px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    padding: clamp(8px, 1.5vw, 16px) clamp(30px, 6vw, 80px);
    background: linear-gradient(180deg,
        var(--marble-vein) 0%,
        var(--plaster-white) 15%,
        #FEFCF8 50%,
        var(--plaster-white) 85%,
        var(--marble-vein) 100%
    );
    border-radius: 2px;
    box-shadow:
        0 6px 24px rgba(27, 73, 101, 0.15),
        0 2px 4px rgba(27, 73, 101, 0.1);
}

/* Chiseled text illusion on lintel */
.lintel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--marble-vein), var(--plaster-white) 20%, var(--plaster-white) 80%, var(--marble-vein));
}

.lintel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--marble-vein), var(--plaster-white) 20%, var(--plaster-white) 80%, var(--marble-vein));
}

.inscription {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--aegean-blue);
    white-space: nowrap;
    line-height: 1;
    text-shadow: 1px 1px 0 rgba(212, 197, 176, 0.5);
}

/* --- Epigraph --- */
.epigraph-container {
    position: absolute;
    bottom: clamp(30px, 6vh, 80px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
    opacity: 0;
    animation: fadeInEpigraph 1.5s var(--ease-enter) 2s forwards;
}

.epigraph {
    font-family: var(--font-headline);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.02em;
    color: var(--coastal-teal);
    line-height: 1.5;
}

.manicule {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--coastal-teal);
    margin-top: 16px;
    animation: gentleBob 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes fadeInEpigraph {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes gentleBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   NAVIGATION FRIEZE
   ============================================ */
.nav-frieze {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(90deg, var(--marble-vein), var(--plaster-white), var(--marble-vein));
    box-shadow: 0 2px 16px rgba(27, 73, 101, 0.08);
    transform: translateY(-100%);
    transition: transform 500ms var(--ease-enter);
    padding: 14px 0;
}

.nav-frieze.visible {
    transform: translateY(0);
}

.nav-frieze-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 32px);
    padding: 0 var(--outer-margin);
}

.nav-link {
    font-family: var(--font-annotation);
    font-weight: 400;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aegean-blue);
    cursor: pointer;
    position: relative;
    padding-bottom: 2px;
    transition: color var(--duration-hover) var(--ease-enter);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--terracotta-warm);
    transition: width var(--duration-hover) var(--ease-enter);
}

.nav-link:hover {
    color: var(--terracotta-warm);
}

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

.nav-separator {
    color: var(--marble-vein);
    font-size: 1.2em;
    user-select: none;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content-area {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--slab-gap) var(--outer-margin);
}

/* --- Parallax Background Layers --- */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.parallax-sea {
    background: linear-gradient(180deg,
        var(--plaster-white) 0%,
        var(--plaster-white) 60%,
        rgba(95, 168, 211, 0.05) 80%,
        rgba(27, 73, 101, 0.08) 100%
    );
}

.parallax-drawings {
    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%3Ccircle cx='200' cy='200' r='80' fill='none' stroke='%23D4C5B0' stroke-width='0.5' opacity='0.15'/%3E%3Ccircle cx='200' cy='200' r='120' fill='none' stroke='%23D4C5B0' stroke-width='0.5' opacity='0.1'/%3E%3Cline x1='80' y1='200' x2='320' y2='200' stroke='%23D4C5B0' stroke-width='0.3' opacity='0.1'/%3E%3Cline x1='200' y1='80' x2='200' y2='320' stroke='%23D4C5B0' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    opacity: 0.4;
}

/* ============================================
   CONTENT SLABS
   ============================================ */
.content-slab {
    position: relative;
    padding: clamp(32px, 5vw, 56px);
    margin-bottom: var(--slab-gap);
    background-color: var(--plaster-white);
    border: 1px solid var(--marble-vein);
    border-radius: 3px;
    box-shadow: 0 8px 32px rgba(27, 73, 101, 0.08);

    /* Marble vein texture */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cpath d='M0,150 Q75,120 150,160 T300,140' fill='none' stroke='%23D4C5B0' stroke-width='0.5' opacity='0.04'/%3E%3Cpath d='M0,100 Q100,80 200,110 T300,90' fill='none' stroke='%23D4C5B0' stroke-width='0.3' opacity='0.03'/%3E%3Cpath d='M0,200 Q50,220 150,190 T300,210' fill='none' stroke='%23D4C5B0' stroke-width='0.4' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 300px 300px;

    /* Initial state for scroll animation */
    opacity: 0;
    transform: translateY(60px);
    transition: opacity var(--duration-slab) var(--ease-enter),
                transform var(--duration-slab) var(--ease-enter),
                background-position 800ms var(--ease-enter);
}

.content-slab.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slab hover - marble vein shift */
.content-slab:hover {
    background-position: 10px 10px;
}

/* Staggered positioning */
.slab-left {
    width: 55%;
    margin-right: auto;
    margin-left: 0;
}

.slab-right {
    width: 65%;
    margin-left: auto;
    margin-right: 0;
}

/* Chipped edges effect via clip-path */
.content-slab::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 24px;
    height: 24px;
    background: var(--plaster-white);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.content-slab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 16px;
    height: 16px;
    background: var(--plaster-white);
    clip-path: polygon(0 100%, 0 0, 100% 100%);
}

/* --- Slab Typography --- */
.slab-heading {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    letter-spacing: -0.01em;
    color: var(--aegean-blue);
    margin-bottom: clamp(16px, 3vw, 28px);
    line-height: 1.2;
}

.slab-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    color: var(--aegean-blue);
    margin-bottom: 1.5em;
}

.slab-body em {
    font-style: italic;
    color: var(--obsidian-ink);
}

.slab-quote {
    font-family: var(--font-headline);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--obsidian-ink);
    padding-left: clamp(16px, 3vw, 32px);
    border-left: 3px solid var(--terracotta-warm);
    margin-top: 1.5em;
}

.pilcrow {
    color: var(--terracotta-warm);
    margin-right: 0.3em;
    font-style: normal;
}

/* ============================================
   3D MARBLE OBJECTS
   ============================================ */
.marble-object {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

/* Marble Sphere */
.marble-sphere {
    top: -40px;
    right: -30px;
    width: clamp(100px, 15vw, 180px);
    height: clamp(100px, 15vw, 180px);
}

.marble-sphere-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 60% 60% at 35% 35%, rgba(254, 252, 248, 0.9), transparent 70%),
        radial-gradient(ellipse 80% 80% at 50% 50%, var(--plaster-white), var(--marble-vein));
    box-shadow:
        inset -20px -20px 40px rgba(27, 73, 101, 0.08),
        inset 10px 10px 20px rgba(254, 252, 248, 0.8),
        0 12px 40px rgba(27, 73, 101, 0.12),
        0 4px 12px rgba(27, 73, 101, 0.08);
    animation: slowRotate var(--duration-rotate) linear infinite;
    position: relative;
}

/* Marble veining on sphere */
.marble-sphere-inner::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 70%;
    height: 60%;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 30%, rgba(212, 197, 176, 0.3) 50%, transparent 70%);
    transform: rotate(-15deg);
}

/* Subsurface scattering glow on thin edge */
.marble-sphere-inner::after {
    content: '';
    position: absolute;
    top: 5%;
    right: 5%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 213, 183, 0.4), transparent 70%);
    filter: blur(6px);
}

/* Marble Cube */
.marble-cube {
    top: -30px;
    left: -25px;
    width: clamp(80px, 12vw, 140px);
    height: clamp(80px, 12vw, 140px);
    perspective: 600px;
}

.marble-cube-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: slowRotateCube var(--duration-rotate) linear infinite;
    transform: rotateX(-15deg) rotateY(25deg);
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--plaster-white) 0%, #FEFCF8 40%, var(--marble-vein) 100%);
    border: 1px solid rgba(212, 197, 176, 0.4);
    backface-visibility: visible;
}

.cube-front  { transform: translateZ(calc(clamp(80px, 12vw, 140px) / 2)); }
.cube-back   { transform: rotateY(180deg) translateZ(calc(clamp(80px, 12vw, 140px) / 2)); }
.cube-left   { transform: rotateY(-90deg) translateZ(calc(clamp(80px, 12vw, 140px) / 2)); }
.cube-right  { transform: rotateY(90deg) translateZ(calc(clamp(80px, 12vw, 140px) / 2)); }
.cube-top    { transform: rotateX(90deg) translateZ(calc(clamp(80px, 12vw, 140px) / 2)); background: linear-gradient(135deg, #FEFCF8 0%, var(--plaster-white) 100%); }
.cube-bottom { transform: rotateX(-90deg) translateZ(calc(clamp(80px, 12vw, 140px) / 2)); background: linear-gradient(135deg, var(--marble-vein) 0%, var(--plaster-white) 100%); }

/* Marble Toroid (approximated as a ring) */
.marble-toroid {
    top: -35px;
    right: -20px;
    width: clamp(100px, 14vw, 160px);
    height: clamp(100px, 14vw, 160px);
}

.marble-toroid-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: clamp(18px, 3vw, 30px) solid var(--plaster-white);
    box-shadow:
        inset 0 0 20px rgba(212, 197, 176, 0.4),
        0 8px 32px rgba(27, 73, 101, 0.1),
        inset 6px 6px 12px rgba(254, 252, 248, 0.6),
        inset -6px -6px 12px rgba(212, 197, 176, 0.3);
    background: transparent;
    animation: slowRotate var(--duration-rotate) linear infinite reverse;
    position: relative;
}

/* Marble Fragment (broken pediment shape) */
.marble-fragment {
    top: -25px;
    left: -20px;
    width: clamp(90px, 13vw, 150px);
    height: clamp(70px, 10vw, 120px);
}

.marble-fragment-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--plaster-white) 0%, #FEFCF8 30%, var(--marble-vein) 80%);
    clip-path: polygon(10% 100%, 0% 60%, 15% 20%, 30% 0%, 55% 5%, 75% 15%, 100% 30%, 90% 70%, 85% 100%);
    box-shadow: 0 8px 24px rgba(27, 73, 101, 0.1);
    animation: slowRotateFragment 90000ms linear infinite;
    position: relative;
}

.marble-fragment-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 197, 176, 0.2) 50%, transparent 70%);
    clip-path: inherit;
}

/* Rotation animations */
@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slowRotateCube {
    from { transform: rotateX(-15deg) rotateY(25deg); }
    to { transform: rotateX(-15deg) rotateY(385deg); }
}

@keyframes slowRotateFragment {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   SVG DECORATIVE MOTIFS
   ============================================ */
.svg-motif {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--slab-gap);
    opacity: 0;
    transition: opacity 600ms var(--ease-enter);
}

.svg-motif.visible {
    opacity: 1;
}

.motif-svg {
    width: clamp(200px, 40vw, 400px);
    height: auto;
    overflow: visible;
}

.motif-rosette {
    width: clamp(80px, 15vw, 160px);
}

.motif-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset var(--duration-path) var(--ease-enter);
}

.svg-motif.visible .motif-path {
    stroke-dashoffset: 0;
}

/* ============================================
   HORIZON / FOOTER
   ============================================ */
.horizon {
    position: relative;
    padding: clamp(80px, 15vh, 200px) var(--outer-margin) clamp(60px, 10vh, 120px);
    overflow: hidden;
    text-align: center;
}

.horizon-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        var(--plaster-white) 0%,
        rgba(95, 168, 211, 0.15) 30%,
        rgba(95, 168, 211, 0.3) 60%,
        var(--aegean-blue) 100%
    );
    z-index: 0;
}

/* Fallen marble fragments at footer bottom */
.fallen-fragments {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(20px, 5vw, 60px);
    padding: 0 10%;
}

.fallen-piece {
    background: linear-gradient(135deg, var(--plaster-white), var(--marble-vein));
    box-shadow: 0 2px 8px rgba(27, 73, 101, 0.15);
}

.fallen-1 {
    width: 40px;
    height: 25px;
    clip-path: polygon(5% 100%, 0% 40%, 30% 0%, 70% 10%, 100% 50%, 95% 100%);
    transform: rotate(-8deg);
}

.fallen-2 {
    width: 55px;
    height: 35px;
    clip-path: polygon(0% 100%, 10% 30%, 40% 0%, 80% 15%, 100% 60%, 90% 100%);
    transform: rotate(5deg);
}

.fallen-3 {
    width: 30px;
    height: 45px;
    clip-path: polygon(10% 100%, 0% 50%, 20% 0%, 60% 5%, 100% 40%, 85% 100%);
    transform: rotate(-3deg);
}

.fallen-4 {
    width: 48px;
    height: 28px;
    clip-path: polygon(0% 100%, 5% 20%, 45% 0%, 90% 10%, 100% 70%, 80% 100%);
    transform: rotate(12deg);
}

.fallen-5 {
    width: 35px;
    height: 30px;
    clip-path: polygon(15% 100%, 0% 60%, 25% 0%, 75% 5%, 100% 45%, 90% 100%);
    transform: rotate(-6deg);
}

/* Colophon */
.colophon {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px);
    background: rgba(245, 240, 232, 0.12);
    border: 1px solid rgba(212, 197, 176, 0.3);
    border-radius: 3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.colophon-text {
    font-family: var(--font-annotation);
    font-weight: 500;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plaster-white);
    margin-bottom: 16px;
}

.colophon-sub {
    font-family: var(--font-headline);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.02em;
    color: var(--golden-hour);
    line-height: 1.5;
    margin-bottom: 12px;
}

.colophon-meta {
    font-family: var(--font-annotation);
    font-weight: 400;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--coastal-teal);
}

/* ============================================
   LINK STYLES (global)
   ============================================ */
a {
    color: var(--coastal-teal);
    text-decoration: none;
    position: relative;
    transition: color var(--duration-hover) var(--ease-enter);
}

a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--terracotta-warm);
    transition: width var(--duration-hover) var(--ease-enter);
}

a:hover {
    color: var(--terracotta-warm);
}

a:hover::after {
    width: 100%;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .slab-left,
    .slab-right {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    :root {
        --slab-gap: clamp(40px, 8vh, 80px);
    }

    .colonnade {
        gap: clamp(20px, 5vw, 40px);
    }

    .column-shaft {
        height: clamp(120px, 25vh, 200px);
    }

    .marble-object {
        transform: scale(0.7);
    }

    .marble-sphere {
        right: -15px;
        top: -25px;
    }

    .marble-cube {
        left: -10px;
        top: -20px;
    }

    .marble-toroid {
        right: -10px;
        top: -20px;
    }

    .marble-fragment {
        left: -10px;
        top: -15px;
    }

    .nav-frieze-inner {
        gap: 12px;
    }

    .fallen-fragments {
        gap: 15px;
    }

    .lintel {
        bottom: calc(15% + clamp(140px, 27vh, 220px));
    }
}

@media (max-width: 480px) {
    .inscription {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: 0.1em;
    }

    .colonnade {
        gap: 15px;
    }

    .column {
        transform: scale(0.8);
    }

    .marble-object {
        display: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .cloud-shift {
        animation: none;
        opacity: 0;
    }

    .manicule {
        animation: none;
    }

    .epigraph-container {
        animation: none;
        opacity: 1;
    }

    .marble-sphere-inner,
    .marble-cube-inner,
    .marble-toroid-inner,
    .marble-fragment-inner {
        animation: none;
    }

    .content-slab {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }

    .motif-path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        transition: none;
    }

    .svg-motif {
        opacity: 1;
        transition: none;
    }

    .nav-frieze {
        transition: none;
    }
}
