/* ========================================
   Custom Fonts
   ======================================== */
@font-face {
    font-family: 'Raleway';
    src: url('../Fonts/RALEWAY/Raleway-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../Fonts/RALEWAY/Raleway-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('../Fonts/RALEWAY/Raleway-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Sangbleu Versailles';
    src: url('../Fonts/SANGBLEU%20VERSAILLES/SangBleuVersailles-RegularItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'JR-Type';
    src: url('../Fonts/JR-TYPE/JRTYPE-Regular.ttf') format('truetype'),
         url('../Fonts/JR-TYPE/JRTYPE-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
:root {
    --page-margin: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

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

/* ========================================
   Hero Wrapper (header floats over hero image)
   ======================================== */
.hero-wrap {
    position: relative;
}

/* ========================================
   Header Styles
   ======================================== */
.header {
    position: absolute;
    top: 32px;
    left: var(--page-margin);
    z-index: 100;
}

.header-container {
    position: relative;
    display: flex;
    align-items: stretch;
    background-color: #fff;
    border: 1px solid #000;
}

/* ========================================
   Logo
   ======================================== */
.logo {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-right: 1px solid #000;
}

.logo-mark {
    width: 56px;
    height: auto;
    display: block;
}

/* ========================================
   Language Switch
   ======================================== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 1.5rem;
    font-family: 'JR-Type', 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #bbb;
}

.lang-switch a {
    color: #bbb;
}

.lang-switch a.active {
    color: #000;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.35rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
    padding: 0 2rem;
}

.nav-menu a {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #000;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid transparent;
}

.nav-menu a:hover {
    border-bottom-color: #999;
}

.nav-menu a.active {
    border-bottom-color: #000;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    height: 92vh;
    min-height: 520px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card {
    position: absolute;
    left: var(--page-margin);
    right: var(--page-margin);
    bottom: 32px;
    max-width: 1100px;
    background-color: #fff;
    border: 1px solid #000;
    padding: 2.5rem;
}

.hero-card h1 {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    font-weight: 400;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.1;
    white-space: nowrap;
}

.hero-card h1 .hero-break {
    display: none;
}

.hero-card p {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #222;
    line-height: 1.6;
}

/* ========================================
   Main Content
   ======================================== */
main {
    padding: 2rem var(--page-margin);
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: #222;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: clamp(2rem, 5vw, 5rem);
}

.about-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    align-self: center;
    padding: 3rem 0;
}

.about-text p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-text p a {
    text-decoration: underline;
}

.about-text blockquote {
    margin: 2rem 0 0;
    padding-left: 1.5rem;
    border-left: 1px solid #000;
}

.about-text blockquote p {
    font-family: 'Sangbleu Versailles', 'Raleway', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 0.75rem;
}

.about-text cite {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-style: normal;
    font-size: 0.95rem;
    color: #333;
}

/* ========================================
   Stats
   ======================================== */
.stats {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem var(--page-margin);
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: calc(100% + 160px);
    background-image: url('../Images/backdrop 2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.stats-grid {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: start;
    text-align: center;
}

.stat-number {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    color: #fff;
}

.stat-label {
    margin-top: 0.75rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #fff;
}

/* ========================================
   Origin
   ======================================== */
.origin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: clamp(2rem, 5vw, 5rem);
}

.origin-text {
    align-self: center;
    padding: 3rem 0;
}

.origin-text p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
}

.origin-text p a {
    text-decoration: underline;
}

.origin-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    overflow: hidden;
}

.origin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   Sketches
   ======================================== */
.sketches p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
}

.sketches p a {
    text-decoration: underline;
}

.sketches-image {
    margin-top: 2.5rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.sketches-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crossing-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: #999;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* ========================================
   Around
   ======================================== */
.around-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: clamp(1.5rem, 4vw, 3rem);
    row-gap: 3.5rem;
}

.around-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #eee;
}

.around-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.around-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../Images/backdrop 2.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.around-item:hover .around-overlay,
.around-item:focus-within .around-overlay {
    opacity: 1;
}

.around-overlay p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #fff;
}

.around-overlay a {
    color: #fff;
    text-decoration: underline;
}

.around-item h3 {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    color: #222;
    margin-top: 1.25rem;
}

@media (max-width: 900px) {
    .around-grid {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.25rem;
        row-gap: 0;
        margin: 0 calc(var(--page-margin) * -1);
        padding: 0 var(--page-margin) 0.5rem;
        scrollbar-width: none;
    }

    .around-grid::-webkit-scrollbar {
        display: none;
    }

    .around-item {
        display: flex;
        flex-direction: column;
        flex: 0 0 78%;
        scroll-snap-align: center;
    }

    /* The image box's aspect-ratio + overflow:hidden only had room for the
       img when the overlay was absolutely positioned on top of it. Let the
       img define the square shape itself so the box can grow to fit the
       caption panel below it. */
    .around-image {
        aspect-ratio: unset;
        overflow: visible;
    }

    .around-image img {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    /* Hover reveals don't work on touch, so show the caption as a static
       panel under the image instead of an on-hover overlay. Fixed height
       keeps every tile the same size so rows of cards stay aligned top
       and bottom; it's sized to fit the longest caption (Echoes) in full. */
    .around-overlay {
        position: static;
        inset: auto;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        opacity: 1;
        background-image: none;
        background-color: #fff;
        border: 1px solid #000;
        height: 14rem;
        padding: 1rem 1.25rem;
        text-align: left;
        overflow: hidden;
    }

    .around-overlay p {
        font-size: 0.85rem;
        color: #000;
    }

    .around-overlay a {
        color: #000;
    }

    /* Title moves above the photo on mobile. */
    .around-item h3 {
        order: -1;
        margin-top: 0;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .around-item {
        flex: 0 0 86%;
    }
}

.btn-jr {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.75rem 0.75rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: 1.425rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
}

.btn-jr:hover {
    opacity: 0.8;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-main {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.gallery-arrow svg {
    width: 100%;
    height: 100%;
}

.gallery-arrow:hover {
    opacity: 1;
}

.gallery-arrow-prev {
    left: 1rem;
}

.gallery-arrow-next {
    right: 1rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 100px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid transparent;
    background: none;
    overflow: hidden;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.gallery-thumb:hover img {
    opacity: 0.85;
}

.gallery-thumb.active {
    border-color: #000;
}

.gallery-thumb.active img {
    opacity: 1;
}

/* ========================================
   Legal Notice
   ======================================== */
.legal-main {
    padding: 8.5rem var(--page-margin) 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal h1 {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #222;
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: #222;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 400;
    color: #222;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.legal-content ul {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
}

.legal-content li {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-content a {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-main {
        padding: 7rem var(--page-margin) 1.5rem;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: #fff;
    color: #000;
    border-top: 1px solid #000;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 5fr 3.2fr 1.5fr;
}

.footer-col {
    padding: 2.5rem 1.75rem;
    border-right: 1px solid #000;
}

.footer-col:last-child {
    border-right: none;
}


.footer-col h3 {
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    color: #000;
    margin-bottom: 1rem;
}

.footer-contact h3:not(:first-child) {
    margin-top: 1.5rem;
}

.footer-contact p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
}

.footer-contact a {
    color: #333;
    text-decoration: underline;
}

.footer-contact a:hover {
    color: #000;
}

.footer-newsletter {
    position: relative;
    padding: 2.5rem 1.75rem 2.5rem var(--page-margin);
    color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('../Images/backdrop%202.jpg');
    background-size: cover;
    background-position: center;
}

.footer-newsletter h3 {
    color: #fff;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
}

.footer-newsletter-text {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.newsletter-row {
    display: flex;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 1px solid #000;
    border-right: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    padding: 0.85rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    font-family: 'JR-Type', 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.newsletter-form button:hover {
    opacity: 0.8;
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.newsletter-consent input[type="checkbox"] {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    accent-color: #000;
    cursor: pointer;
}

.newsletter-consent label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #fff;
}

.newsletter-consent label a {
    color: #fff;
    text-decoration: underline;
}

.newsletter-consent.error label {
    color: #ff5c5c;
}

.newsletter-consent.error label a {
    color: #ff5c5c;
}

.newsletter-consent.error input[type="checkbox"] {
    outline: 2px solid #ff5c5c;
    outline-offset: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: var(--page-margin);
}

.footer-logo img {
    width: 100%;
    max-width: 90px;
    height: auto;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--page-margin);
    border-top: 1px solid #000;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: #333;
}

.footer-bottom a {
    color: #333;
}

.footer-bottom a:hover {
    color: #000;
}

.footer-lang {
    padding: 0;
    font-family: 'JR-Type', 'Raleway', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #000;
}

.footer-lang a {
    color: #000;
}

.footer-links {
    display: flex;
    gap: clamp(1.5rem, 6vw, 5rem);
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col {
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
    }

    .footer-col:first-child {
        padding-left: 1.75rem;
        grid-column: 1 / -1;
    }

    .footer-logo {
        padding-right: 1.75rem;
    }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1rem 1.5rem;
        padding: 1.25rem 1.75rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 2rem 0;
    }

    .origin-content {
        grid-template-columns: 1fr;
    }

    .origin-content .origin-image {
        order: -1;
    }

    .origin-text {
        padding: 2rem 0;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --page-margin: 16px;
    }

    .header {
        top: 16px;
        right: var(--page-margin);
    }

    .logo {
        padding: 0.6rem 0.9rem;
    }

    .logo-mark {
        width: 42px;
    }

    .lang-switch {
        padding: 0 0.9rem;
        font-size: 1rem;
    }

    .nav {
        flex: 1;
    }

    /* Mobile Menu Toggle */
    .nav-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -2px;
        right: -2px;
        width: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background-color: #fff;
        border: 1px solid #000;
        border-top: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border: none;
        font-size: 1rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: #f5f5f5;
        border: none;
    }

    .hero-card {
        bottom: 16px;
        padding: 1.5rem;
        max-width: none;
    }

    .hero-card h1 {
        white-space: normal;
        font-size: clamp(2.4rem, 9vw, 4.5rem);
    }

    .hero-card h1 .hero-break {
        display: block;
    }

    .hero-card h1 .hero-line {
        white-space: nowrap;
    }

    section {
        margin-bottom: 1.25rem;
    }

    section h2 {
        font-size: clamp(2.75rem, 9vw, 3.5rem);
        line-height: 1.05;
    }

    main {
        padding: 1.5rem var(--page-margin);
    }

    .stats {
        padding: 2.5rem var(--page-margin);
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .stat-number {
        font-size: clamp(4rem, 18vw, 5.5rem);
    }

    .stat-label {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .gallery-arrow {
        width: 32px;
        height: 32px;
    }

    .gallery-arrow-prev {
        left: 0.5rem;
    }

    .gallery-arrow-next {
        right: 0.5rem;
    }

    .gallery-thumb {
        width: 76px;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding: 1.25rem;
    }

    .hero-card h1 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    section h2 {
        font-size: clamp(2.25rem, 11vw, 2.75rem);
    }
}
