/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
    /* Colors */
    --bg-color: #f2f2f2;
    /* Weazer-like off-white */
    --text-main: #333333;
    /* Soft Black */
    --text-sub: #777777;
    --accent: #999999;
    /* Subtle accent */
    --border: #e0e0e0;

    /* Fonts */
    --font-jp: 'Zen Old Mincho', serif;
    --font-en: 'Outfit', sans-serif;

    /* Layout */
    --container: 1400px;
    /* Wider container */
    --header-h: 0px;
    /* Fixed but transparent initially */

    /* Animation */
    --easing: cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition: 0.6s var(--easing);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-en), var(--font-jp);
    -webkit-font-smoothing: antialiased;
    line-height: 2;
    letter-spacing: 0.08em;
    overflow-x: hidden;
    width: 100%;
}

.site-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
.section-title {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
    font-family: var(--font-en);
    position: relative;
    padding-left: 20px;
}

/* Vertical Text for Japanese aesthetic */
.jp-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.3em;
    font-family: var(--font-jp);
    line-height: 2.5;
}

.section-desc {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 400;
    line-height: 2.2;
    text-align: justify;
}

/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 6vw;
    /* Responsive padding */
}

/* Asymmetric Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* Slightly offset */
    gap: 8vw;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.grid-reverse {
    grid-template-columns: 1.1fr 0.9fr;
}

.section {
    padding: 180px 0;
    /* Huge spacing */
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* Buttons (Minimal) */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid var(--text-main);
    border-radius: 50px;
    /* Pill shape */
    color: var(--text-main);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    background: transparent;
    margin-top: 40px;
}

.btn-cta:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
    transform: scale(1.02);
}

/* Header (Minimal & Fixed) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    /* Logo left, Menu right */
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    mix-blend-mode: difference;
    /* Ensure visibility over everything */
    color: #fff;
    pointer-events: none;
    /* Let clicks pass through header area except buttons */
}

.header>* {
    pointer-events: auto;
}

.header .logo {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    font-family: var(--font-en);
    text-transform: uppercase;
    color: #fff;
    /* Blend mode handles color */
}

/* Desktop Nav is HIDDEN by design now */
.desktop-nav {
    display: none;
}

/* Menu Trigger (Hamburger) */
.menu-trigger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    /* Wider gap */
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-trigger span {
    width: 100%;
    height: 2px;
    /* Thinner lines */
    background-color: #fff;
    /* Blend mode handles color */
    transition: 0.4s var(--easing);
}

.menu-trigger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Nav Overlay (Full Screen) */
.mobile-nav {
    position: fixed;
    inset: 0;
    background-color: #1a1a1a;
    /* Dark overlay for contrast */
    color: #fff;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--easing);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav li {
    margin: 40px 0;
    overflow: hidden;
    /* For text reveal effect if added */
}

.mobile-nav a {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    font-family: var(--font-en);
    color: #fff;
    padding: 10px;
    display: inline-block;
    transition: transform 0.4s;
}

.mobile-nav a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Hero Section (Immersive) */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: zoomEffect 20s infinite alternate;
    /* Subtle breathing effect */
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 6vw;
    z-index: 2;
    color: #fff;
    /* Vertical layout for title */
    display: flex;
    flex-direction: row-reverse;
    /* Title right, subtitle left */
    align-items: flex-end;
    gap: 40px;
}

.hero-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--font-en);
    /* Quiet Desgin Update: Smaller and simpler */
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    line-height: 1;
    margin: 0;
    opacity: 0.9;
}

.hero-subtitle {
    writing-mode: vertical-rl;
    font-family: var(--font-jp);
    font-size: 1rem;
    letter-spacing: 0.5em;
    line-height: 2;
    opacity: 0.8;
}

/* Feature Cards (Thumbnail Layout) */
.feature-card {
    display: block;
    transition: transform 0.4s var(--easing);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 20px;
}

.feature-img-wrapper img {
    transition: transform 0.6s var(--easing);
}

.feature-card:hover .feature-img-wrapper img {
    transform: scale(1.05);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-family: var(--font-en);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.8;
}

/* Detail Pages Gallery */
.gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 100px;
}

.gallery-vertical img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

/* Footer */
.footer {
    padding: 120px 0 40px;
    background-color: #1a1a1a;
    /* Dark footer */
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer .logo {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-nav ul {
    gap: 40px;
}

.footer-nav a {
    color: #999;
}

.footer-nav a:hover {
    color: #fff;
}

/* ==========================================================================
   6. Animations
   ========================================================================== */
.fade-in,
.fade-in-up {
    opacity: 0;
    transition: opacity 1.2s var(--easing), transform 1.2s var(--easing);
}

.fade-in-up {
    transform: translateY(60px);
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .header {
        padding: 0 20px;
        height: 80px;
    }

    .container {
        padding: 0 30px;
    }

    .grid-2,
    .grid-reverse {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 100px 0;
    }

    .hero-content {
        bottom: 120px;
        left: 30px;
    }

    .hero-title {
        font-size: 3rem;
        /* Keep it modest on mobile too */
    }

    .section-title {
        font-size: 2rem;
    }
}