/* ============================================
   prototype.report - Fairycore Bento Grid
   Colors: #1a1a14 #8a0a2a #0a3a8a #9a9a9a #0a6e3a #faf7f0 #d4a520 #6a0a8a
   Fonts: Syne, Crimson Text, Courier Prime
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Crimson Text", Georgia, serif;
    background-color: #1a1a14;
    color: #faf7f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.fairy-ornaments {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ornament {
    position: absolute;
    will-change: transform;
}

.ornament-leaf-1 {
    width: 80px;
    height: 120px;
    top: 8%;
    left: 5%;
}

.ornament-wing-1 {
    width: 100px;
    height: 80px;
    top: 25%;
    right: 8%;
}

.ornament-leaf-2 {
    width: 60px;
    height: 100px;
    bottom: 20%;
    left: 12%;
}

.ornament-wing-2 {
    width: 120px;
    height: 90px;
    bottom: 10%;
    right: 5%;
}

.site-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px 40px;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.site-title {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    color: #faf7f0;
    margin-bottom: 8px;
}

.title-dot {
    color: #d4a520;
}

.site-tagline {
    font-family: "Courier Prime", monospace;
    font-size: 0.95rem;
    color: #9a9a9a;
    letter-spacing: 0.05em;
}

.bento-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.bento-cell {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    perspective: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    border: 1px solid rgba(250, 247, 240, 0.08);
}

.bento-cell.cell-visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(212, 165, 32, 0.15), rgba(154, 154, 154, 0.08), rgba(212, 165, 32, 0.1)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}
.cell-hero {
    grid-column: span 2;
    grid-row: span 2;
}

.cell-services {
    grid-column: span 1;
    grid-row: span 2;
}

.cell-stats {
    grid-column: span 1;
    grid-row: span 1;
}

.cell-philosophy {
    grid-column: span 2;
    grid-row: span 1;
}

.cell-quote {
    grid-column: span 1;
    grid-row: span 1;
}

.cell-process {
    grid-column: span 1;
    grid-row: span 2;
}

.cell-featured {
    grid-column: span 2;
    grid-row: span 1;
}

.cell-contact {
    grid-column: span 1;
    grid-row: span 1;
}

.cell-stat2 {
    grid-column: span 1;
    grid-row: span 1;
}

.cell-manifesto {
    grid-column: span 2;
    grid-row: span 1;
}

.cell-tech {
    grid-column: span 1;
    grid-row: span 1;
}

.cell-year {
    grid-column: span 1;
    grid-row: span 1;
}

.jewel-sapphire {
    background: linear-gradient(145deg, #0a3a8a, #082d6e);
}

.jewel-sapphire-light {
    background: linear-gradient(145deg, rgba(10, 58, 138, 0.85), rgba(10, 58, 138, 0.65));
}

.jewel-amethyst {
    background: linear-gradient(145deg, #6a0a8a, #520870);
}

.jewel-amethyst-deep {
    background: linear-gradient(145deg, rgba(106, 10, 138, 0.9), rgba(82, 8, 112, 0.8));
}

.jewel-ruby {
    background: linear-gradient(145deg, #8a0a2a, #6e0822);
}

.jewel-emerald {
    background: linear-gradient(145deg, #0a6e3a, #08562e);
}

.jewel-emerald-dark {
    background: linear-gradient(145deg, #0a6e3a, #064d28);
}

.jewel-topaz {
    background: linear-gradient(145deg, #d4a520, #b8901a);
}

.jewel-topaz-dark {
    background: linear-gradient(145deg, rgba(212, 165, 32, 0.85), rgba(184, 144, 26, 0.7));
}

.jewel-charcoal {
    background: linear-gradient(145deg, #2a2a24, #1a1a14);
}

.jewel-ivory {
    background: linear-gradient(145deg, #faf7f0, #ede8dc);
}

.jewel-silver {
    background: linear-gradient(145deg, #9a9a9a, #8a8a8a);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.bento-cell.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back {
    transform: rotateY(180deg);
    background: rgba(26, 26, 20, 0.92);
    border-radius: 12px;
}
.cell-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    width: 100%;
}

.bento-cell:not([data-flip]) .cell-content,
.watercolor-cell .cell-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.cell-title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: #faf7f0;
}

.cell-subtitle {
    font-family: "Syne", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.dark-title {
    color: #1a1a14;
}

.cell-text {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(250, 247, 240, 0.85);
}

.dark-text {
    color: #1a1a14;
}

.accent-font {
    font-family: "Courier Prime", monospace;
}

.cell-ornament {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 3;
    pointer-events: none;
}

.cell-ornament-tl {
    top: 8px;
    left: 8px;
}

.cell-ornament-br {
    bottom: 8px;
    right: 8px;
}

.watercolor-cell {
    overflow: hidden;
}

.watercolor-bg {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at 30% 40%, rgba(138, 10, 42, 0.3), transparent 60%),
                radial-gradient(ellipse at 70% 60%, rgba(212, 165, 32, 0.2), transparent 50%);
    filter: url(#watercolor-wash);
    z-index: 1;
    pointer-events: none;
}

.watercolor-bg-alt {
    background: radial-gradient(ellipse at 40% 30%, rgba(10, 58, 138, 0.25), transparent 55%),
                radial-gradient(ellipse at 60% 70%, rgba(10, 110, 58, 0.2), transparent 50%);
    filter: url(#watercolor-soft);
}

.watercolor-bg-deep {
    background: radial-gradient(ellipse at 35% 45%, rgba(106, 10, 138, 0.3), transparent 55%),
                radial-gradient(ellipse at 65% 55%, rgba(212, 165, 32, 0.15), transparent 50%);
    filter: url(#watercolor-wash);
}

.flip-hint {
    display: inline-block;
    font-family: "Courier Prime", monospace;
    font-size: 0.75rem;
    color: rgba(250, 247, 240, 0.4);
    margin-top: 16px;
    transition: color 0.3s ease;
}

.bento-cell:hover .flip-hint {
    color: rgba(250, 247, 240, 0.7);
}
.back-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #d4a520;
}

.back-subtext {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 1rem;
    color: rgba(250, 247, 240, 0.6);
    margin-top: 16px;
    font-style: italic;
}

.back-quote {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #d4a520;
    text-align: center;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 1.05rem;
    color: rgba(250, 247, 240, 0.85);
    padding: 8px 0;
    border-bottom: 1px solid rgba(250, 247, 240, 0.1);
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.service-list li:last-child {
    border-bottom: none;
}

.bento-cell:hover .service-list li {
    padding-left: 8px;
    color: #faf7f0;
}

.stat-number {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: #faf7f0;
    line-height: 1;
}

.stat-unit {
    font-size: 1.8rem;
    color: rgba(250, 247, 240, 0.7);
}

.stat-label {
    font-family: "Courier Prime", monospace;
    font-size: 0.8rem;
    color: rgba(250, 247, 240, 0.6);
    margin-top: 8px;
    letter-spacing: 0.03em;
}

.featured-quote {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a1a14;
    text-align: center;
    line-height: 1.4;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: baseline;
    gap: 12px;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.step-num {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #d4a520;
    min-width: 30px;
}

.step-text {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 1.1rem;
    color: rgba(250, 247, 240, 0.8);
}
.work-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(250, 247, 240, 0.1);
}

.work-item:last-child {
    border-bottom: none;
}

.work-label {
    font-size: 0.9rem;
    color: #d4a520;
}

.work-type {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 0.85rem;
    color: rgba(250, 247, 240, 0.5);
    font-style: italic;
}

.contact-cta {
    margin-top: 12px;
}

.cta-arrow {
    display: inline-block;
    font-size: 1.5rem;
    color: #1a1a14;
    transition: transform 0.3s ease;
}

.manifesto-text {
    font-size: 1rem;
    line-height: 2;
    color: rgba(250, 247, 240, 0.85);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(26, 26, 20, 0.3);
    border-radius: 20px;
    font-family: "Courier Prime", monospace;
    font-size: 0.75rem;
    color: #1a1a14;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: default;
}

.tag:hover {
    background-color: rgba(26, 26, 20, 0.1);
}

.year-text {
    font-family: "Syne", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a14;
    text-align: center;
    display: block;
}

.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px 50px;
    border-top: 1px solid rgba(250, 247, 240, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: "Syne", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(250, 247, 240, 0.5);
}

.footer-divider {
    color: rgba(250, 247, 240, 0.2);
}

.footer-note {
    font-family: "Courier Prime", monospace;
    font-size: 0.8rem;
    color: rgba(250, 247, 240, 0.3);
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px 16px 40px;
    }

    .cell-hero {
        grid-column: span 2;
        grid-row: span 1;
    }

    .cell-featured {
        grid-column: span 2;
    }

    .cell-philosophy {
        grid-column: span 2;
    }

    .cell-manifesto {
        grid-column: span 2;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .card-inner {
        min-height: 160px;
    }
}

@media (max-width: 560px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cell-hero,
    .cell-featured,
    .cell-philosophy,
    .cell-manifesto {
        grid-column: span 1;
    }

    .site-title {
        font-size: 2rem;
    }

    .cell-title {
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .cell-content {
        padding: 20px;
    }
}
