
/* ==========================================
   PAUL DEL ROSARIO — WEBSITE REVAMP
   VERSION 4 — CLEAN RESPONSIVE LAYOUT
   KARAWAN + GUIDES FIX
   ========================================== */

/* GENERAL SAFETY */

.revamp-hero,
.revamp-feature,
.revamp-project-intro,
.revamp-pillar-grid,
.guides-grid {
    min-width: 0;
}

.revamp-feature img,
.revamp-project-intro img,
.guides-grid img {
    display: block;
    max-width: 100%;
}

/* ==========================================
   HERO
   ========================================== */

.revamp-hero {
    min-height: 690px;
}

.revamp-hero .hero-title {
    letter-spacing: -.055em;
}

.revamp-hero .hero-title .hero-first-line {
    white-space: normal;
}

.revamp-hero .hero-title em {
    color: #f0d74d;
    font-style: normal;
    font-size: .78em;
}

.revamp-hero .hero-copy {
    background: #0c0d0c;
}

.revamp-hero .hero-copy > p:not(.kicker) {
    max-width: 620px;
}

.revamp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.revamp-actions .subtle {
    border-color: #5a5954;
    color: #c7c5bb;
}

.revamp-hero .hero-number {
    color: #e0dcd0;
    left: 3%;
    font-size: 10px;
}

/* HERO ARTWORK */

.revamp-hero .hero-art {
    position: relative;
    min-width: 0;
    background: #10110f;
    overflow: hidden;
}

.revamp-hero .hero-art img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* ==========================================
   INTRO
   ========================================== */

.revamp-intro {
    background: #f0d74d;
    color: #151513;
    padding: 64px clamp(24px, 8vw, 130px);
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 28px;
    align-items: center;
}

.revamp-intro .kicker {
    color: #312c12;
}

.revamp-intro p {
    font: clamp(23px, 2.8vw, 42px)/1.2
          Georgia, 'Yu Mincho', serif;
    letter-spacing: -.025em;
    margin: 0;
}

.revamp-intro a {
    white-space: nowrap;
    border-bottom: 1px solid #111;
    font: bold 11px Arial, sans-serif;
    letter-spacing: .08em;
    padding-bottom: 8px;
}

/* ==========================================
   KARAWAN FEATURE
   ========================================== */

.revamp-feature {
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
    min-height: 590px;
    background: #171917;
    color: #faf8f0;
}

.revamp-feature-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 550px;
    overflow: hidden;
    background: #10110f;
}

.revamp-feature-photo img {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

.revamp-feature-copy {
    padding: clamp(35px, 5vw, 84px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}

.revamp-feature-copy .kicker {
    color: #f0d74d;
}

.revamp-feature h2 {
    font-size: clamp(52px, 6vw, 95px);
    letter-spacing: -.065em;
    margin: 18px 0 28px;
}

.revamp-feature p {
    font-size: 17px;
    max-width: 550px;
    color: #c1c0b9;
}

.revamp-feature .revamp-asahi-note {
    border-top: 1px solid #54534d;
    padding-top: 18px;
    margin-top: 30px;
    font-size: 13px;
    color: #aba99e;
}

/* ==========================================
   FOUR PILLARS
   MAKE / BUILD / STAND / MOVE
   ========================================== */

.revamp-pillars {
    padding-top: 85px;
    padding-bottom: 95px;
}

.revamp-pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #4e4b43;
    border: 1px solid #4e4b43;
}

.revamp-pillar-grid a {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 310px;
    background: #181a18;
    padding: 30px 24px;
}

.revamp-pillar-grid a:hover {
    background: #272923;
}

.revamp-pillar-grid span {
    color: #f0d74d;
    font: 700 10px Arial, sans-serif;
    letter-spacing: .13em;
}

.revamp-pillar-grid h3 {
    font-size: clamp(24px, 2.1vw, 36px);
    letter-spacing: -.035em;
    margin: 0;
}

.revamp-pillar-grid p {
    color: #b8b7af;
    font-size: 14px;
}

.revamp-pillar-grid b {
    margin-top: auto;
    font-size: 24px;
}

/* ==========================================
   PROJECTS
   ========================================== */

.revamp-project-intro {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1fr);
    background: #141613;
    color: #f4f0e7;
}

.revamp-project-intro > div:first-child {
    padding: clamp(40px, 6vw, 90px);
}

.revamp-project-intro h2 {
    font-size: clamp(40px, 5.5vw, 88px);
    letter-spacing: -.05em;
    margin: 18px 0 28px;
}

.revamp-project-intro p {
    max-width: 480px;
    color: #c5c1b8;
    font-size: 18px;
}

.revamp-project-intro img {
    position: relative !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

.revamp-about-ctas {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

/* ==========================================
   GUIDES — CONSISTENT CARD LAYOUT
   ========================================== */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.guides-grid .guide-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #171717;
    border: 1px solid #363330;
}

.guides-grid .guide-item img {
    display: block;
    width: 100%;
    height: 460px;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #101010;
    padding: 12px;
}

.guides-grid .guide-item > div {
    flex: 1;
    padding: 26px;
}

.guides-grid .guide-item h3 {
    font-size: clamp(24px, 2.1vw, 34px);
    line-height: 1.2;
    overflow-wrap: break-word;
    margin: 12px 0 18px;
}

.guides-grid .guide-item p {
    font-size: 15px;
    line-height: 1.65;
}

/* ==========================================
   JAPANESE TYPOGRAPHY
   ========================================== */

html[lang="ja"] .revamp-pillar-grid h3 {
    font-size: clamp(22px, 2vw, 32px);
}

/* ==========================================
   MEDIUM DESKTOP / TABLET
   ========================================== */

@media (max-width: 1200px) {

    /* Show KARAWAN image above its text */

    .revamp-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .revamp-feature-photo {
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    .revamp-feature-photo img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .revamp-feature-copy {
        padding: 45px 6%;
    }
}

@media (max-width: 1000px) {

    .guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guides-grid .guide-item img {
        height: 400px;
    }
}

@media (max-width: 950px) {

    .revamp-intro {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .revamp-pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .revamp-feature h2 {
        font-size: clamp(48px, 6vw, 70px);
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 680px) {

    .revamp-hero {
        min-height: auto;
    }

    .revamp-hero .hero-art {
        min-height: 0;
        height: auto;
    }

    .revamp-hero .hero-art img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    .revamp-feature,
    .revamp-project-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .revamp-feature-photo {
        width: 100%;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .revamp-feature-photo img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    .revamp-feature-copy {
        padding: 50px 6%;
    }

    .revamp-feature h2 {
        font-size: clamp(42px, 11vw, 64px);
    }

    .revamp-pillar-grid {
        grid-template-columns: 1fr;
    }

    .revamp-pillar-grid a {
        min-height: 220px;
    }

    .revamp-intro {
        padding: 48px 6%;
    }

    .revamp-project-intro img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    .revamp-hero .hero-title em {
        font-size: .76em;
    }
}

@media (max-width: 650px) {

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

    .guides-grid .guide-item img {
        height: 380px;
        padding: 10px;
    }

    .guides-grid .guide-item > div {
        padding: 22px;
    }

    .guides-grid .guide-item h3 {
        font-size: 27px;
    }
    
/* ========================================
   GUIDE COVERS — ACTUAL HTML CLASS FIX
   ======================================== */

.guides-section .tiles.triple,
.page-guides .tiles.triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.guide-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
    overflow: hidden;
}

/* Equal-height image area */
.guide-card .work-visual {
    width: 100% !important;
    height: 440px !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #101010;
}

/* Links surrounding covers */
.guide-card .work-visual a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

/* Keep entire cover visible */
.guide-card .work-visual img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 12px !important;
    transform: none !important;
}

/* Text under each cover */
.guide-card .work-info {
    flex: 1;
    padding: 26px;
}

.guide-card .work-info h3 {
    font-size: clamp(23px, 2vw, 32px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Japanese titles */
html[lang="ja"] .guide-card .work-info h3 {
    font-size: clamp(21px, 1.8vw, 29px);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 1000px) {
    .guides-section .tiles.triple,
    .page-guides .tiles.triple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-card .work-visual {
        height: 400px !important;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .guides-section .tiles.triple,
    .page-guides .tiles.triple {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-card .work-visual {
        height: 380px !important;
    }
}

}
