:root {
    --bg-color: #Fdfcfb;
    --text-color: #1a1a1a;
    --accent-color: #D4AF37;
    /* Pale Gold */
    --greige: #E5E4E2;
    --gray-light: #f5f5f5;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --font-jp: 'Zen Old Mincho', serif;

    --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    /* scroll-behavior: smooth;  <-- Removed to let Lenis handle it */
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-jp);
    line-height: 2;
    overflow-x: hidden;
    opacity: 0;
    /* For loader */
    transition: opacity 1s ease;
}

body.loaded {
    opacity: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    line-height: 1.4;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

p {
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section {
    padding: 10vh 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.center-layout {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--gray-light);
}

.text-center {
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.nav-list {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-list a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #111;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s var(--easing);
        z-index: 90;
        /* Below header content but above page */
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.5rem;
        color: white;
    }

    .menu-toggle {
        display: block;
        z-index: 101;
        /* Above nav overlay */
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 1px;
        background-color: white;
        margin-bottom: 6px;
        transition: transform 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    /* Add a 3rd span for the hamburger menu iconic look if not present, 
       but previously I had 2 spans. Let's make it 2 spans becoming X */
    .menu-toggle span:last-child {
        margin-bottom: 0;
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-title {
    font-family: var(--font-jp);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-logo {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
}

/* Philosophy */
.philosophy .image-col img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: sepia(15%) saturate(90%) brightness(1.05) contrast(95%);
    transition: filter 0.5s ease;
}

.philosophy .image-col:hover img {
    filter: sepia(0%) saturate(100%) brightness(1) contrast(100%);
}

/* Vision */
.vision .image-col img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: sepia(15%) saturate(90%) brightness(1.05) contrast(95%);
    transition: filter 0.5s ease;
}

.vision .image-col:hover img {
    filter: sepia(0%) saturate(100%) brightness(1) contrast(100%);
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Mission */
.mission-statement h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 3rem;
    font-family: var(--font-jp);
}

/* Value */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.value-card {
    padding: 2rem;
    border-top: 1px solid var(--greige);
}

.value-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Service */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 10vh;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: center;
}

.service-item:nth-child(even) {
    direction: rtl;
}

.service-item:nth-child(even)>* {
    direction: ltr;
}

@media (max-width: 768px) {

    .service-item,
    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

.service-img img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    filter: sepia(10%) contrast(90%);
    transition: filter 0.5s ease;
}

.service-img:hover img {
    filter: sepia(0%) contrast(100%);
}

.service-info {
    padding: 2rem;
}

.service-info h3 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Company */
.company-list {
    max-width: 600px;
    margin: 0 auto;
    border-top: 1px solid var(--greige);
}

.company-list .row {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--greige);
}

@media (max-width: 480px) {
    .company-list .row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Contact */
.cta-button {
    display: inline-block;
    border: 1px solid var(--text-color);
    padding: 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--easing);
}

.cta-button .en {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.cta-button .ja {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
}

.cta-button:hover {
    background-color: var(--text-color);
    color: white;
}

.cta-button:hover .ja {
    opacity: 1;
}

.cta-button.small {
    padding: 1rem 3rem;
    font-size: 0.9em;
}

.cta-button.small .en {
    font-size: 1rem;
}

/* Links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.link-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s var(--easing), box-shadow 0.5s var(--easing);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.link-card-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.link-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--easing);
}

.link-card:hover .link-card-img img {
    transform: scale(1.05);
}

.link-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: white;
}

.link-card-name {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    letter-spacing: 0.1em;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.link-card-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s var(--easing);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.link-card:hover .link-card-arrow {
    transform: translateX(6px);
}

.service-action {
    margin-top: 2rem;
}

/* Contact Card */
.contact-card {
    max-width: 640px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--greige);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.contact-header {
    padding: 2rem 2.5rem;
}

.contact-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--greige);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
}

.contact-divider-v {
    width: 1px;
    height: 20px;
    background: var(--greige);
}

.contact-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0;
}

.contact-heading {
    margin-top: 1.25rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: var(--font-jp);
}

.contact-desc {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

.contact-divider {
    height: 1px;
    background: var(--greige);
    margin-top: 1.5rem;
}

.contact-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .contact-quick-links {
        grid-template-columns: 1fr;
    }
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--greige);
    background: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: var(--gray-light);
    border-color: #ccc;
    opacity: 1;
}

.contact-link-icon {
    width: 16px;
    height: 16px;
    color: #555;
}

/* Contact Form */
.contact-form {
    padding: 2rem 2.5rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    font-family: var(--font-jp);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--greige);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    font-family: var(--font-jp);
    color: var(--text-color);
    outline: none;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ccc;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.textarea-wrap {
    position: relative;
}

.textarea-wrap textarea {
    padding-right: 3rem;
    resize: vertical;
}

.textarea-icon {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--greige);
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.textarea-icon svg {
    width: 16px;
    height: 16px;
    color: #777;
}

.contact-form-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-note {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0;
    flex: 1;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    background: var(--text-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-jp);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.contact-submit:hover {
    background: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-submit svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {

    .contact-header,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-submit {
        justify-content: center;
    }
}

/* Footer */
.footer {
    background-color: #111;
    color: white;
    padding: 4rem 5vw;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.5;
    font-family: var(--font-sans);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s var(--easing);
}

.loader.hidden {
    transform: translateY(-100%);
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.2s;
}

.loader-line {
    width: 0;
    height: 1px;
    background: #000;
    animation: growLine 1.5s var(--easing) forwards 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes growLine {
    to {
        width: 100px;
    }
}

/* Utils */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--easing), transform 1s var(--easing);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Styles */
.logo img,
.hero-logo img,
.loader-logo img,
.footer-logo img {
    height: auto;
    display: block;
}

/* Header Logo */
.logo img {
    width: 120px;
    max-height: 40px;
    object-fit: contain;
}

/* Hero Logo (Big) */
.hero-logo img {
    width: clamp(200px, 40vw, 500px);
    object-fit: contain;
}

/* Loader Logo */
.loader-logo img {
    width: 200px;
    filter: invert(1);
}

/* Footer Logo */
.footer-logo img {
    width: 150px;
    margin: 0 auto;
}