@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/Cinzel-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/Cinzel-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-LightItalic.woff2') format('woff2');
  font-style: italic;
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #d4d4d4;
    font-family: 'Cormorant Garamond', serif;
    overflow: hidden;
}

.toc {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Geometric background pattern */
.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.04;
}

.geo-circle {
    position: absolute;
    border: 1px solid #fff;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.geo-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.geo-circle:nth-child(2) {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.geo-circle:nth-child(3) {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.04;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.08;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Vertical dividers */
.vertical-divider {
    position: absolute;
    width: 1px;
    height: 60%;
    top: 20%;
    background: linear-gradient(to bottom, transparent, rgba(100, 80, 90, 0.3), transparent);
}

.vertical-divider:nth-child(1) {
    left: 25%;
    animation: fadeInOut 6s ease-in-out infinite;
}

.vertical-divider:nth-child(2) {
    right: 25%;
    animation: fadeInOut 6s ease-in-out infinite 3s;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Atmospheric fog */
.fog {
    position: absolute;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.9) 80%);
    animation: fogMove 20s ease-in-out infinite;
}

@keyframes fogMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
}

/* Content container */
.toc-content {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 0 2.5rem;
}

/* Top ornamental symbol */
.top-symbol {
    margin-bottom: 2.1875rem;
    opacity: 0;
    animation: symbolAppear 1.5s ease forwards 0.2s;
}

.top-symbol img {
    width: 3rem;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 0.8));
    will-change: transform, opacity;
}

@keyframes symbolAppear {
    from {
        opacity: 0;
        transform: translateY(-1.875rem) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Pre-title */
.pre-title {
    text-transform: uppercase;
    color: #555;
    opacity: 0;
    animation: textFadeIn 1.2s ease forwards 0.5s;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1.5rem;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main title */
.toc h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(60px, 10vw, 110px);
    font-weight: 700;
    opacity: 0;
    animation: titleReveal 1.5s ease forwards 0.8s;
    color: #fff;
    text-shadow: 
        0 0 40px rgba(120, 100, 110, 0.5),
        0 5px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    letter-spacing: 1.125rem;
    margin-bottom: 1.25rem;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        letter-spacing: 30px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 18px;
    }
}

/* Horizontal accent line */
.accent-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(120, 100, 110, 0.8), transparent);
    position: relative;
    opacity: 0;
    animation: lineExpand 1.5s ease forwards 1.1s;
    width: 12.5rem;
    margin: 2rem auto;
}

.accent-line::before,
.accent-line::after {
    content: '◆';
    position: absolute;
    color: rgba(120, 100, 110, 0.8);
    top: -0.6rem;
}

.accent-line::before { left: -1.25rem; }
.accent-line::after  { right: -1.25rem; }

@keyframes lineExpand {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 200px;
    }
}

/* Subtitle/Description */
.description {
    font-size: clamp(16px, 2vw, 21px);
    line-height: 2;
    font-style: italic;
    color: #888;
    opacity: 0;
    animation: textFadeIn 1.2s ease forwards 1.4s;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    max-width: 40rem;
    letter-spacing: 0.0625rem;
}

/* Bottom symbol */
.bottom-symbol {
    margin-top: 3rem;
    opacity: 0;
    animation: symbolAppear 1.5s ease forwards 1.7s;
    display: inline-block;
    width: fit-content;
    height: fit-content;
    position: relative;
}

.bottom-symbol img {
    width: 10rem;
    aspect-ratio: 1 / 1;
    filter: invert(43%) sepia(5%) saturate(1239%) hue-rotate(278deg) brightness(92%) contrast(89%);
    opacity: 50%;
}

/* Heartbeat halo */
.bottom-symbol::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8rem;
    height: 8rem;
    transform: translate(-50%, -52%);
    border-radius: 50%;
    border: 2px solid rgba(120, 100, 110, 0.6);
    filter: drop-shadow(0 0 15px rgba(120, 100, 110, 0.4));
    opacity: 0;
    animation: fadeIn 3.2s ease forwards, heartbeat 20s ease-in-out infinite;
    animation-delay: 3.2s, 6.4s; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.5; }
}

@keyframes heartbeat {
    0%, 100% {
        transform: translate(-50%, -52%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -52%) scale(1.05);
        opacity: 1;
    }
}

/* Ink drops falling slowly */
.ink-drop {
    position: absolute;
    top: -10%;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, transparent, rgba(100, 80, 90, 0.4));
    animation: inkFall 8s ease-in infinite;
}

.ink-drop:nth-child(1) { left: 18%; animation-delay: 0s; }
.ink-drop:nth-child(2) { left: 45%; animation-delay: 3s; }
.ink-drop:nth-child(3) { left: 72%; animation-delay: 6s; }
.ink-drop:nth-child(4) { left: 88%; animation-delay: 2s; }

@keyframes inkFall {
    0% {
        height: 0;
        top: -10%;
        opacity: 0;
    }
    20% {
        height: 10rem;
        opacity: 0.6;
    }
    100% {
        top: 110%;
        height: 10rem;
        opacity: 0;
    }
}

@media (max-width: 48em) {
    .toc h1 {
        font-size: 3rem;
        letter-spacing: 0.625rem;
    }
}

#circle { 
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25rem;
    height: 25rem;
    transform: translate(-50%, -51%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bottom-symbol:hover #circle {
    opacity: 1;
}

#circle text {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1rem;
    fill: rgba(120, 100, 110, 0.4);
}

#circle svg { 
    width: 100%;
    height: 100%;
    animation: rotate 25s linear infinite reverse;
}

@-webkit-keyframes rotate {
    from { -webkit-transform: rotate(360deg); }
}

@keyframes rotate {
    from { transform: rotate(360deg); }
}


