/* continu.st - Bauhaus meets Tropical Reef */
/* Colors: #3d2b1a #2a5a5e #2e1f14 #5c3d2e #c4654a #8b6a4e #e8d5c4 */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #e8d5c4;
}

body {
    font-family: 'Lora', Georgia, serif;
    color: #2e1f14;
    background-color: #e8d5c4;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ================================
   SCROLL PROGRESS BAR
   ================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(46, 31, 20, 0.1);
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c4654a, #2a5a5e);
    transition: width 0.1s linear;
}

/* ================================
   FISH CURRENT COLUMN (LEFT MARGIN)
   ================================ */
.fish-current {
    position: fixed;
    left: 0;
    top: 0;
    width: 18vw;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.fish {
    position: absolute;
    width: 60px;
    height: 40px;
    opacity: 0.3;
    animation: swimUp 20s linear infinite;
}

.fish-1 { left: 20%; animation-delay: 0s; animation-duration: 22s; }
.fish-2 { left: 50%; animation-delay: -4s; animation-duration: 18s; }
.fish-3 { left: 30%; animation-delay: -8s; animation-duration: 25s; }
.fish-4 { left: 60%; animation-delay: -12s; animation-duration: 20s; }
.fish-5 { left: 15%; animation-delay: -16s; animation-duration: 23s; }
.fish-6 { left: 45%; animation-delay: -6s; animation-duration: 19s; }

/* Geometric fish body - Bauhaus style */
.fish-body {
    position: absolute;
    width: 40px;
    height: 24px;
    background: #8b6a4e;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow:
        2px 2px 4px rgba(61, 43, 26, 0.3),
        inset -2px -1px 3px rgba(232, 213, 196, 0.2);
    left: 10px;
    top: 8px;
}

.fish-1 .fish-body { background: #2a5a5e; }
.fish-2 .fish-body { background: #c4654a; }
.fish-3 .fish-body { background: #8b6a4e; }
.fish-4 .fish-body { background: #5c3d2e; }
.fish-5 .fish-body { background: #2a5a5e; }
.fish-6 .fish-body { background: #c4654a; }

.fish-tail {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 16px solid #8b6a4e;
    left: 0;
    top: 10px;
    transform: scaleX(0.8);
}

.fish-1 .fish-tail { border-right-color: #2a5a5e; }
.fish-2 .fish-tail { border-right-color: #c4654a; }
.fish-3 .fish-tail { border-right-color: #8b6a4e; }
.fish-4 .fish-tail { border-right-color: #5c3d2e; }
.fish-5 .fish-tail { border-right-color: #2a5a5e; }
.fish-6 .fish-tail { border-right-color: #c4654a; }

.fish-fin {
    position: absolute;
    width: 14px;
    height: 8px;
    background: rgba(139, 106, 78, 0.6);
    border-radius: 0 50% 50% 0;
    top: 4px;
    left: 24px;
    transform: skewX(-15deg);
}

.fish-1 .fish-fin { background: rgba(42, 90, 94, 0.6); }
.fish-2 .fish-fin { background: rgba(196, 101, 74, 0.6); }

.fish-eye {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #2e1f14;
    border-radius: 50%;
    top: 14px;
    left: 38px;
    box-shadow: 1px 0 0 rgba(232, 213, 196, 0.5);
}

@keyframes swimUp {
    0% {
        transform: translateY(110vh) translateX(0px) rotate(5deg);
        opacity: 0;
    }
    5% {
        opacity: 0.25;
    }
    50% {
        transform: translateY(50vh) translateX(10px) rotate(-3deg);
        opacity: 0.35;
    }
    95% {
        opacity: 0.25;
    }
    100% {
        transform: translateY(-15vh) translateX(-5px) rotate(2deg);
        opacity: 0;
    }
}

/* ================================
   CONTINUOUS LINE SVG
   ================================ */
.continuous-line {
    position: fixed;
    left: 17vw;
    top: 0;
    width: 30px;
    height: 100vh;
    z-index: 5;
    opacity: 0.4;
    pointer-events: none;
}

.line-path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 0.05s linear;
}

/* ================================
   CONTENT COLUMN
   ================================ */
.content-column {
    max-width: 720px;
    margin-left: 22vw;
    margin-right: 8vw;
    padding: 0 2rem;
    position: relative;
    z-index: 20;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 0;
    position: relative;
}

.hero-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-point .hero-letter {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: 120px;
    color: #3d2b1a;
    opacity: 0;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(36px, 5.5vw, 80px);
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: #3d2b1a;
    margin-bottom: 1.5rem;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title .letter.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title .dot-separator {
    color: #c4654a;
    font-size: 1.2em;
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-title .dot-separator.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.8vw, 18px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #5c3d2e;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease 1.5s, transform 0.8s ease 1.5s;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-geometric {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
}

.geo-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid #2a5a5e;
    border-radius: 50%;
    top: 0;
    right: 0;
    opacity: 0.3;
    animation: geoFloat 8s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(196, 101, 74, 0.2);
    bottom: 20px;
    left: 20px;
    animation: geoFloat 8s ease-in-out infinite 2s;
}

.geo-parallelogram {
    position: absolute;
    width: 70px;
    height: 40px;
    background: rgba(139, 106, 78, 0.15);
    transform: skewX(-15deg);
    top: 80px;
    right: 40px;
    animation: geoFloat 8s ease-in-out infinite 4s;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* ================================
   BAUHAUS DIVIDERS
   ================================ */
.bauhaus-divider {
    display: flex;
    gap: 8px;
    padding: 3rem 0;
    align-items: center;
}

.bauhaus-divider .bar {
    height: 4px;
    flex: 1;
    display: block;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bauhaus-divider .bar.animated {
    transform: scaleX(1);
}

.bar-coral { background-color: #c4654a; }
.bar-teal { background-color: #2a5a5e; }
.bar-amber { background-color: #8b6a4e; }

/* ================================
   FLIP CARDS
   ================================ */
.card-section {
    padding: 2rem 0;
    perspective: 1200px;
}

.flip-card {
    width: 100%;
    max-width: 600px;
    height: 320px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-front {
    background: #3d2b1a;
    color: #e8d5c4;
    overflow: hidden;
}

.flip-card-front h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(28px, 3.5vw, 42px);
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.flip-card-front .card-hint {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b6a4e;
    position: relative;
    z-index: 2;
}

.card-geometric-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(42, 90, 94, 0.4);
    border-radius: 50%;
    z-index: 1;
}

.accent-variant-2 {
    border-radius: 0;
    border-color: rgba(196, 101, 74, 0.4);
    transform: rotate(15deg);
}

.accent-variant-3 {
    width: 0;
    height: 0;
    border: none;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(139, 106, 78, 0.2);
    top: -10px;
    right: -10px;
}

.flip-card-back {
    background: #2a5a5e;
    color: #e8d5c4;
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.75;
    color: #e8d5c4;
}

.flip-card-back em {
    font-style: italic;
    color: #e8d5c4;
}

/* ================================
   FLOWING TEXT SECTIONS
   ================================ */
.section-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(28px, 4vw, 52px);
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: #3d2b1a;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.flowing-section {
    padding: 4rem 0;
}

.flowing-text p {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.8;
    color: #3d2b1a;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ================================
   BAUHAUS COMPOSITION
   ================================ */
.composition-section {
    padding: 4rem 0;
}

.bauhaus-composition {
    position: relative;
    height: 300px;
    margin: 2rem 0;
}

.comp-circle {
    position: absolute;
    border-radius: 50%;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.comp-1 {
    width: 100px;
    height: 100px;
    background: #c4654a;
    opacity: 0.7;
    top: 20px;
    left: 10%;
    box-shadow: 4px 4px 12px rgba(61, 43, 26, 0.2);
}

.comp-2 {
    width: 60px;
    height: 60px;
    background: #2a5a5e;
    opacity: 0.6;
    top: 100px;
    left: 35%;
    box-shadow: 3px 3px 8px rgba(61, 43, 26, 0.15);
}

.comp-rect {
    position: absolute;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.comp-3 {
    width: 120px;
    height: 50px;
    background: #8b6a4e;
    opacity: 0.5;
    top: 60px;
    left: 50%;
    transform: skewX(-10deg);
    box-shadow: 3px 3px 10px rgba(61, 43, 26, 0.15);
}

.comp-triangle {
    position: absolute;
    width: 0;
    height: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.comp-4 {
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 80px solid #5c3d2e;
    opacity: 0.5;
    top: 150px;
    left: 20%;
}

.comp-5 {
    width: 80px;
    height: 80px;
    background: rgba(42, 90, 94, 0.3);
    border: 2px solid #2a5a5e;
    top: 180px;
    left: 55%;
}

.comp-6 {
    width: 40px;
    height: 40px;
    background: #c4654a;
    opacity: 0.4;
    top: 200px;
    left: 75%;
    box-shadow: 2px 2px 6px rgba(61, 43, 26, 0.2);
}

.composition-caption {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.7;
    color: #5c3d2e;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.composition-caption.visible {
    opacity: 1;
}

/* ================================
   PRINCIPLES SECTION
   ================================ */
.philosophy-section {
    padding: 4rem 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.principle {
    padding: 2rem;
    border-left: 3px solid #2a5a5e;
    background: rgba(61, 43, 26, 0.03);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.principle.visible {
    opacity: 1;
    transform: translateX(0);
}

.principle-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    position: relative;
}

.icon-circle {
    width: 32px;
    height: 32px;
    border: 2px solid #c4654a;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 0;
}

.icon-line {
    width: 28px;
    height: 2px;
    background: #2a5a5e;
    position: absolute;
    top: 24px;
    left: 16px;
}

.icon-wave {
    width: 40px;
    height: 20px;
    border: 2px solid #8b6a4e;
    border-radius: 0 0 50% 50%;
    border-top: none;
    position: absolute;
    top: 10px;
    left: 0;
}

.icon-wave::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 20px;
    border: 2px solid #8b6a4e;
    border-radius: 50% 50% 0 0;
    border-bottom: none;
    top: -2px;
    left: 16px;
}

.icon-spiral {
    width: 30px;
    height: 30px;
    border: 2px solid #2a5a5e;
    border-radius: 50%;
    border-right-color: transparent;
    position: absolute;
    top: 5px;
    left: 5px;
}

.icon-spiral::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #c4654a;
    border-radius: 50%;
    border-left-color: transparent;
    top: 4px;
    left: 4px;
}

.principle h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #3d2b1a;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.principle p {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.75;
    color: #5c3d2e;
}

/* ================================
   CLOSING SECTION
   ================================ */
.closing-section {
    padding: 6rem 0 4rem;
    text-align: center;
}

.final-divider {
    justify-content: center;
    margin-bottom: 3rem;
}

.closing-quote {
    max-width: 560px;
    margin: 0 auto 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.closing-quote.visible {
    opacity: 1;
    transform: translateY(0);
}

.closing-quote p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(20px, 2.8vw, 32px);
    line-height: 1.5;
    color: #3d2b1a;
    margin-bottom: 1rem;
}

.closing-quote cite {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b6a4e;
    font-style: normal;
}

.closing-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: 48px;
    color: #3d2b1a;
    padding-bottom: 4rem;
}

.mark-dot {
    color: #c4654a;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .fish-current {
        width: 12vw;
    }
    .content-column {
        margin-left: 16vw;
        margin-right: 4vw;
    }
    .continuous-line {
        left: 12vw;
    }
    .hero-geometric {
        right: -30px;
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .fish-current {
        display: none;
    }
    .continuous-line {
        display: none;
    }
    .content-column {
        margin-left: auto;
        margin-right: auto;
        max-width: 90vw;
        padding: 0 1.5rem;
    }
    .hero-geometric {
        display: none;
    }
    .flip-card {
        height: 280px;
    }
    .flip-card-front,
    .flip-card-back {
        padding: 1.5rem;
    }
    .bauhaus-composition {
        height: 220px;
    }
    .comp-1 {
        width: 70px;
        height: 70px;
    }
    .comp-3 {
        width: 80px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .flip-card {
        height: 260px;
    }
    .closing-quote {
        padding: 0 1rem;
    }
}
