/*
Theme Name: Thema-ipeace
Author: Antigravity
Description: Custom theme for i.PEACE
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,700;1,900&family=Noto+Serif+JP:wght@200;300;400;500;600;700;900&family=Shippori+Mincho:wght@400;500;600;700;800&display=swap');

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

:root {
    --bg: #F0F5FA;
    --ink: #1A1310;
    --ink-soft: #2C2420;
    --rust: #8B4513;
    --sepia: #8B7355;
    --gold: #C9A96E;
    --ivory: #F0F5FA;
    --cream: #E6EEF6;
    --dark: #0D0B09;
    --slate: #475569;
}

html {
    scroll-behavior: smooth;
    margin-top: 0 !important;
    /* WP admin bar fix */
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'EB Garamond', 'Noto Serif JP', serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ripple {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.05;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes lineGrow {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: linear-gradient(rgba(26, 19, 16, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 19, 16, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotate(-2deg);
    pointer-events: none;
}

.hero-logo {
    display: flex;
    align-items: baseline;
    animation: fadeUp 1.8s ease-out;
}

.hero-logo .logo-i {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(80px, 12vw, 140px);
    color: var(--ink);
    line-height: 1;
    position: relative;
}

.hero-logo .logo-i .plane-tittle {
    position: absolute;
    width: 22px;
    height: 22px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.plane-tittle .axis-h {
    position: absolute;
    width: 100%;
    height: 0.7px;
    top: 50%;
    left: 0;
    background: rgba(26, 19, 16, 0.3);
}

.plane-tittle .axis-v {
    position: absolute;
    height: 100%;
    width: 0.7px;
    left: 50%;
    top: 0;
    background: rgba(26, 19, 16, 0.3);
}

.plane-tittle .ipoint {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rust);
    top: 4px;
    right: 2px;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.12);
}

.hero-logo .logo-period {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    align-self: flex-end;
    margin-bottom: 4px;
    margin-right: 2px;
}

.logo-period .dot-core {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rust);
    z-index: 2;
    position: relative;
}

.logo-period .rp {
    position: absolute;
    border-radius: 50%;
    border: 0.6px solid var(--rust);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 4s ease-in-out infinite;
}

.logo-period .rp1 {
    width: 22px;
    height: 22px;
    opacity: 0.2;
}

.logo-period .rp2 {
    width: 36px;
    height: 36px;
    opacity: 0.1;
    animation-delay: 0.8s;
}

.hero-logo .logo-peace {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(42px, 6vw, 72px);
    color: var(--ink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    letter-spacing: 5px;
    color: rgba(26, 19, 16, 0.7);
    margin-top: 52px;
    animation: fadeIn 2.5s ease-out 0.8s both;
}

.hero-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(26, 19, 16, 0.35);
    margin-top: 12px;
    animation: fadeIn 2.5s ease-out 1.2s both;
}

.hero-formula {
    position: absolute;
    bottom: 80px;
    right: 80px;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 13px;
    color: rgba(26, 19, 16, 0.1);
    letter-spacing: 2px;
}

.scroll-line {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(26, 19, 16, 0.15), transparent);
    animation: fadeIn 3s ease-out 2s both;
}

section {
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 60px;
}

.section-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--sepia);
    opacity: 0.5;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-title-jp {
    font-family: 'Shippori Mincho', serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(26, 19, 16, 0.4);
    letter-spacing: 3px;
}

.accent-line {
    width: 0;
    height: 0.5px;
    background: var(--rust);
    opacity: 0.4;
    margin: 40px 0;
    transition: width 1s ease-out;
}

.accent-line.visible {
    width: 60px;
}

.philosophy {
    background: var(--cream);
}

.philosophy .big-quote {
    font-family: 'Noto Serif JP', 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 50px;
}

.philosophy .body-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 15px;
    line-height: 2.4;
    color: rgba(26, 19, 16, 0.6);
    max-width: 680px;
    letter-spacing: 0.5px;
}

.philosophy .body-text strong {
    color: var(--ink);
}

.name-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.name-meanings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meaning-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.meaning-letter {
    width: 48px;
    height: 48px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
}

.meaning-letter.rust {
    color: var(--rust);
}

.meaning-letter.gold {
    color: var(--gold);
}

.meaning-desc {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    color: var(--slate);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.collage-img {
    width: 100%;
    max-width: 420px;
    animation: float 6s ease-in-out infinite;
}

.pillars-section {
    background: var(--bg);
    color: var(--ink);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.pillar-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.pillar-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pillar-card .pillar-bg {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    flex-shrink: 0;
}

.pillar-card:hover .pillar-bg {
    transform: scale(1.03);
}

.pillar-card .pillar-overlay {
    display: none;
}

.pillar-card .pillar-content {
    position: relative;
    z-index: 2;
    padding: 28px 32px 32px;
    background: #E6EEF6;
    flex: 1;
}

.pillar-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    color: var(--rust);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.pillar-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--ink);
    margin-bottom: 4px;
}

.pillar-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--sepia);
    margin-bottom: 14px;
}

.pillar-desc {
    font-family: 'Shippori Mincho', serif;
    font-size: 13px;
    color: var(--slate);
    line-height: 2;
}

.pillar-tag {
    display: inline-block;
    padding: 4px 16px;
    font-family: 'Shippori Mincho', serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.formula-section {
    background: #E0EAF3;
    overflow: hidden;
}

.formula-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.formula-big {
    font-family: 'EB Garamond', serif;
    font-size: clamp(48px, 7vw, 80px);
    color: var(--ivory);
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
}

.formula-big .eq-gold {
    color: var(--gold);
}

.formula-explain {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formula-line {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    line-height: 1.8;
}

.formula-line .var {
    color: var(--gold);
}

.founder-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
}

.founder-photo {
    width: 280px;
    filter: grayscale(0.1);
}

.founder-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.founder-name-en {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--sepia);
    margin-bottom: 24px;
}

.founder-bio {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    line-height: 2.2;
    color: rgba(26, 19, 16, 0.6);
    max-width: 520px;
}

.closing {
    background: var(--dark);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.closing-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
}

.closing-content {
    position: relative;
    z-index: 2;
}

.closing-logo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 24px;
}

.closing-logo .ci {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 64px;
    color: var(--ivory);
}

.closing-logo .cdot {
    font-family: 'EB Garamond', serif;
    font-size: 64px;
    color: var(--gold);
}

.closing-logo .cpeace {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    color: var(--ivory);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.closing-tagline {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    color: rgba(240, 235, 224, 0.4);
    letter-spacing: 5px;
    margin-bottom: 40px;
}

.closing-meta {
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
    margin: 0 auto 24px;
}

.closing-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(240, 235, 224, 0.2);
}

.pillar-card .pillar-bg-peace {
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #E6EEF6;
}

@media (max-width:768px) {
    .container {
        padding: 80px 28px;
    }

    .name-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .formula-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .founder-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-photo {
        width: 200px;
        margin: 0 auto;
    }

    .pillar-card .pillar-bg {
        height: 200px;
    }

    .pillar-card .pillar-bg-peace {
        background-size: cover;
    }
}