/* kaigenrei.com - Art Deco Ornate */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0A1628;
    color: #B0BCCC;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Pilaster borders */
.pilaster {
    position: fixed;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 100;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(139, 115, 64, 0.2) 8px,
        rgba(139, 115, 64, 0.2) 9px
    ),
    repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(139, 115, 64, 0.2) 8px,
        rgba(139, 115, 64, 0.2) 9px
    );
    border: 1px solid rgba(139, 115, 64, 0.3);
}

.pilaster--left {
    left: 0;
    border-right: 2px solid #8B7340;
}

.pilaster--right {
    right: 0;
    border-left: 2px solid #8B7340;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 40px;
    right: 40px;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(10, 22, 40, 0.95);
    border-bottom: 1px solid #8B7340;
}

.nav__item {
    font-family: 'Poiret One', cursive;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #C9A96E;
    cursor: pointer;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav__item:hover {
    color: #E8C872;
}

.nav__diamond {
    color: #8B7340;
    font-size: 10px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
}

.hero__fan-top,
.hero__fan-bottom {
    width: 300px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fan-svg {
    width: 100%;
    height: 100%;
}

.fan-svg--flipped {
    transform: scaleY(-1);
}

.fan-svg line {
    stroke: #C9A96E;
    stroke-width: 1;
    opacity: 0.4;
}

.hero__title {
    font-family: 'Poiret One', cursive;
    font-size: 60px;
    font-weight: 400;
    color: #C9A96E;
    letter-spacing: 0.12em;
    text-align: center;
    margin: 16px 0 8px;
    opacity: 0;
    animation: letterFadeIn 2s ease-out 0.4s forwards;
}

.hero__subtitle {
    font-family: 'Cinzel Decorative', serif;
    font-size: 24px;
    color: #C9A96E;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: letterFadeIn 0.4s ease-out 2.4s forwards;
}

@keyframes letterFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero__line {
    width: 0;
    height: 1px;
    background: #C9A96E;
    margin-top: 24px;
    animation: lineExpand 0.8s ease-out 2.8s forwards;
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 300px; }
}

/* Content sections */
.content-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.section-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 48px;
    color: #C9A96E;
    display: block;
    text-align: center;
    margin-bottom: 16px;
}

.section-heading {
    font-family: 'Poiret One', cursive;
    font-size: 36px;
    font-weight: 400;
    color: #C9A96E;
    letter-spacing: 0.12em;
    text-align: center;
    margin-bottom: 24px;
    transition: color 0.3s;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #E8C872;
    transition: width 0.2s ease-out, left 0.2s ease-out;
}

.section-heading:hover {
    color: #E8C872;
}

.section-heading:hover::after {
    width: 100%;
    left: 0;
}

.section-body {
    margin-bottom: 16px;
    text-align: justify;
}

/* Deco frame */
.deco-frame {
    border: 2px solid #8B7340;
    padding: 4px;
    position: relative;
}

.deco-frame::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(139, 115, 64, 0.5);
}

.deco-frame > * {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.deco-frame > .section-number {
    padding-top: 24px;
}

.deco-frame > p:last-child {
    padding-bottom: 24px;
}

/* Ornament dividers */
.ornament-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.ornament-divider:hover {
    opacity: 0.7;
}

.ornament-svg {
    width: 300px;
    height: 60px;
}

.ornament-svg line {
    stroke: #C9A96E;
    stroke-width: 1;
    opacity: 0.4;
}

/* Stepped pyramid */
.stepped-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.pyramid-step {
    background: #122240;
    border: 1px solid #C9A96E;
    height: 8px;
}

.pyramid-step--1 { width: 120px; }
.pyramid-step--2 { width: 96px; }
.pyramid-step--3 { width: 72px; }
.pyramid-step--4 { width: 48px; }
.pyramid-step--5 { width: 24px; }

.stepped-pyramid--small .pyramid-step--1 { width: 60px; }
.stepped-pyramid--small .pyramid-step--2 { width: 40px; }
.stepped-pyramid--small .pyramid-step--3 { width: 20px; }
.stepped-pyramid--small .pyramid-step { height: 6px; }

/* Footer */
.footer {
    text-align: center;
    padding: 48px 24px;
    border-top: 1px solid #8B7340;
}

.footer__ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.footer__text {
    font-family: 'Poiret One', cursive;
    font-size: 14px;
    color: #6B7A8D;
    letter-spacing: 0.12em;
}

/* Responsive */
@media (max-width: 768px) {
    .pilaster { width: 20px; }
    .nav { left: 20px; right: 20px; gap: 8px; }
    .nav__item { font-size: 11px; }
    .hero__title { font-size: 36px; }
    .hero__subtitle { font-size: 16px; }
    .section-heading { font-size: 24px; }
    .section-number { font-size: 36px; }
}
