:root {
    --dark-blue: #00223B;
    /* Base font size scales with viewport */
    font-size: clamp(12px, 1vw, 16px);
}

/* HK Gothic fonts from local fonts folder */
@font-face {
    font-family: 'HK Gothic';
    src: url('fonts/hk-gothic/HK Gothic Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'HK Gothic';
    src: url('fonts/hk-gothic/HK Gothic SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

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

body {
    font-family: 'HK Gothic', sans-serif;
    font-weight: 600;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #FFFFFF;
    height: 535vh;
    font-size: clamp(14px, 1.2vw, 16px);
    /* Frames total (435vh) + extra viewport for final slide */
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: clamp(0.75rem, 0.78vw, 1.5rem) 0;
}

.container {
    max-width: none;
    margin: 0;
    padding: 0 clamp(20px, 3.65vw, 70px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: clamp(40px, 4.17vw, 80px);
    width: clamp(116px, 12.08vw, 232px);
    max-width: 100%;
    object-fit: contain;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5px, 0.26vw, 5px);
    padding: clamp(2.5px, 0.26vw, 5px);
}

.menu-toggle span {
    width: clamp(20px, 1.56vw, 30px);
    height: clamp(2px, 0.16vw, 3px);
    background: var(--dark-blue);
    transition: all 0.3s ease;
}

/* Frame Base */
.about-frame {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    transition: transform 0.3s ease-out;
    will-change: transform;
    overflow: hidden;
}

/* Frame 1: Born From Master Builders */
.about-frame-1 {
    background: #FFFFFF;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 clamp(20px, 3.65vw, 70px);
    position: fixed;
}

.about-hero-content {
    /* Let the title define the intrinsic width; subtitle will match it */
    width: clamp(600px, 95vw, 1800px);
    max-width: clamp(600px, 95vw, 1800px);
    z-index: 2;
    padding-right: clamp(25px, 2.6vw, 50px);
    margin-bottom: clamp(50px, 5.21vw, 100px);
    margin-top: clamp(80px, 7.81vw, 150px);
}

.about-main-title {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(32px, 5vw, 96px);
    font-weight: 600;
    line-height: 1.1;
    color: #000000;
    margin-bottom: clamp(15px, 1.56vw, 30px);
    letter-spacing: clamp(-4px, -0.25vw, -5px) !important;
    white-space: nowrap;
    width: fit-content;
}

.about-subtitle {
    /* Use full width of the hero content so left/right match title */
    width: 100%;
    max-width: clamp(600px, 95vw, 1800px);
    font-family: 'HK Gothic', sans-serif;
    font-style: normal;
    font-weight: 100;
    font-size: clamp(14px, 1.15vw, 22px);
    line-height: clamp(20px, 1.88vw, 36px);
    word-spacing: 0.3em !important;
    display: block;
    text-align: left;
    text-align-last: left;
    letter-spacing: -0.05em !important;
    color: #546B7C;
    box-sizing: border-box;
}

.about-hero-image {
    position: absolute;
    right: 0;
    bottom: clamp(-30px, -3.13vw, -60px);
    height: clamp(300px, 75vh, 75vh);
    width: clamp(200px, 47%, 47%);
    max-width: 100%;
    z-index: 1;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom right;
    max-width: 100%;
}

/* Frame 2: Precision. Durability. Beauty */
.about-frame-2 {
    background-color: #000E19;
    background-image: url('assets/building5.png');
    background-size: clamp(1100px, 110vw, 2400px) auto; /* slightly smaller than previous */
    background-position: center calc(100% - 3vh);
    background-repeat: no-repeat;
    height: 120vh;
    min-height: 120vh;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: clamp(100px, 10.42vw, 200px) clamp(8%, 16%, 16%) 15vh;
    gap: clamp(10px, 1.04vw, 20px);
}

.about-frame-2 h2 {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(32px, 3.75vw, 72px);
    font-weight: 600;
    color: #FFFFFF;
    margin-top: clamp(30px, 3.13vw, 60px);
    margin-bottom: clamp(4px, 0.42vw, 8px);
    letter-spacing: clamp(-3px, -0.3vw, -6px);
}

.about-frame-2 p {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(14px, 1.04vw, 20px);
    font-weight: 300;
    line-height: clamp(24px, 2.08vw, 40px);
    color: #9AB1C2;
    max-width: clamp(600px, 62.5vw, 1200px); /* tuned so copy forms ~3 lines at 1920px */
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* Frame 3: We Build Legacies */
.about-frame-3 {
    background: #FFFFFF;
    height: 115vh;
    min-height: 115vh;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* push content further down from top and give more horizontal room */
    padding: 4vh 3% 0;
    gap: 40px;
}

.legacy-intro {
    width: min(clamp(600px, 63.07vw, 1211px), 90%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.04vw, 20px);
    margin: clamp(70px, 7.29vw, 140px) auto clamp(15px, 1.56vw, 30px) auto;
    text-align: center;
}

.legacy-title {
    font-family: 'HK Gothic', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 3.75vw, 72px);
    line-height: 1.15;
    letter-spacing: clamp(-2px, -0.21vw, -4px);
    color: #000E19;
    text-align: center;
    width: 100%;
}

.legacy-description {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(14px, 1.04vw, 20px);
    font-weight: 300;
    line-height: clamp(20px, 1.04vw, 20px);
    word-spacing: 0.15em;
    color: #000000;
    max-width: clamp(1300px, 135.42vw, 2600px);
    width: 100%;
    text-align: center;
    margin: 0 auto;
    white-space: pre-line;
}

.legacy-gallery {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    margin-top: -20px;
}

.legacy-card {
    overflow: hidden;
    flex-shrink: 0;
    background: #d9d9d9;
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    border-radius: 20px;
}

.legacy-card:hover {
    transform: translateY(-10px);
}

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

.legacy-card--tall {
    width: clamp(150px, 16.67vw, 320px);
    height: clamp(550px, 57vh, 1100px);
}

.legacy-card--medium {
    width: clamp(130px, 14.58vw, 280px);
    height: clamp(460px, 40vh, 770px);
}

.legacy-card--wide {
    width: clamp(200px, 20.83vw, 400px);
    height: clamp(380px, 35vh, 670px);
    align-self: flex-end;
}

.legacy-card-1,
.legacy-card-5 {
    clip-path: path('M0% 20% Q0% 0% 20% 0% Q35% 0% 40% 5% Q45% 8% 50% 6% Q55% 4% 60% 5% Q65% 6% 70% 4% Q75% 2% 80% 0% Q100% 0% 100% 20% V100% H0% Z');
    -webkit-clip-path: path('M0% 20% Q0% 0% 20% 0% Q35% 0% 40% 5% Q45% 8% 50% 6% Q55% 4% 60% 5% Q65% 6% 70% 4% Q75% 2% 80% 0% Q100% 0% 100% 20% V100% H0% Z');
}

.legacy-card-2,
.legacy-card-4 {
    clip-path: path('M0% 25% Q0% 5% 18% 5% Q30% 5% 38% 8% Q42% 10% 50% 7% Q58% 4% 62% 8% Q66% 12% 70% 6% Q74% 0% 82% 5% Q100% 5% 100% 25% V100% H0% Z');
    -webkit-clip-path: path('M0% 25% Q0% 5% 18% 5% Q30% 5% 38% 8% Q42% 10% 50% 7% Q58% 4% 62% 8% Q66% 12% 70% 6% Q74% 0% 82% 5% Q100% 5% 100% 25% V100% H0% Z');
}

.legacy-card-3 {
    clip-path: path('M0% 30% Q0% 8% 15% 8% Q28% 8% 35% 12% Q40% 15% 50% 10% Q60% 5% 65% 12% Q70% 19% 75% 8% Q80% -3% 85% 8% Q100% 8% 100% 30% V100% H0% Z');
    -webkit-clip-path: path('M0% 30% Q0% 8% 15% 8% Q28% 8% 35% 12% Q40% 15% 50% 10% Q60% 5% 65% 12% Q70% 19% 75% 8% Q80% -3% 85% 8% Q100% 8% 100% 30% V100% H0% Z');
}

@media (max-width: 1200px) {
    .legacy-gallery {
        flex-wrap: wrap;
        justify-content: center;
    }

    .legacy-card,
    .legacy-card--tall,
    .legacy-card--medium,
    .legacy-card--wide {
        width: calc(50% - clamp(6px, 0.63vw, 12px));
        height: clamp(200px, 16.67vw, 320px);
        border-radius: clamp(20px, 2.08vw, 40px);
    }
}

@media (max-width: 768px) {
    .about-main-title {
        white-space: normal;
    }

    .about-hero-content {
        max-width: clamp(280px, 85vw, 1200px);
        width: 100%;
    }

    .about-contact-title {
        white-space: normal;
        text-align: center;
        margin-left: 0;
    }

    .about-hero-image {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 300px;
        bottom: 0;
        margin-top: clamp(20px, 2.08vw, 40px);
    }

    .about-frame-1 {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .about-hero-content {
        max-width: clamp(250px, 90vw, 1200px);
        width: 100%;
    }
}

@media (max-width: 640px) {
    .legacy-gallery {
        gap: clamp(10px, 1.04vw, 20px);
    }

    .legacy-card,
    .legacy-card--tall,
    .legacy-card--medium,
    .legacy-card--wide {
        width: 100%;
        height: clamp(200px, 13.54vw, 260px);
    }

    .legacy-description {
        line-height: clamp(24px, 1.67vw, 32px);
    }
}

/* Frame 4: Contact (Same as Why Page) */
.about-frame-4 {
    background: url('assets/building6.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 120vh;
    min-height: 120vh;
    z-index: 400;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(60px, 6.25vw, 120px) clamp(4%, 8%, 8%) clamp(150px, 15.63vw, 300px);
}

.about-contact-wrapper {
    text-align: center;
    max-width: clamp(380px, 39.58vw, 760px);
    width: 100%;
}

.about-contact-tag {
    display: inline-block;
    padding: clamp(5px, 0.52vw, 10px) clamp(10px, 1.04vw, 20px);
    border: 1px solid #FFFFFF;
    border-radius: clamp(10px, 1.04vw, 20px);
    font-size: clamp(10px, 0.73vw, 14px);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: clamp(0.5px, 0.05vw, 1px);
    margin-bottom: clamp(10px, 1.04vw, 20px);
    text-transform: uppercase;
}

.about-contact-title {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(32px, 5vw, 96px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: clamp(-1.5px, -0.16vw, -3px);
    color: #FFFFFF;
    margin: clamp(15px, 1.56vw, 30px) 0 clamp(5px, 0.52vw, 10px);
    white-space: nowrap;
    text-align: left;
    margin-left: clamp(-180px, -18vw, -300px);
}

.about-contact-description {
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(14px, 0.94vw, 18px);
    font-weight: 50;
    line-height: clamp(22px, 1.56vw, 28px);
    color: rgba(255, 249, 249, 0.979);
    margin: 0 auto clamp(12px, 1.25vw, 24px);
    margin-left: clamp(-20px, -2.08vw, -40px);
    max-width: clamp(1250px, 130.21vw, 2500px);
    width: 100%;
    text-align: center;
}

.description-line1 {
    white-space: nowrap;
}

.about-contact-form {
    background: #FFFFFF;
    backdrop-filter: blur(2.5px);
    padding: clamp(12px, 1.25vw, 24px) clamp(25px, 2.6vw, 50px);
    border-radius: clamp(16px, 1.67vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 0.83vw, 16px);
    border: 1px solid #E6E9EB;
    margin: clamp(2.5px, 0.26vw, 5px) auto 0;
    max-width: clamp(600px, 62.08vw, 1200px);
    min-height: clamp(80px, 6.25vw, 120px);
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 2.08vw, 40px);
}

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

.about-contact-form input,
.about-contact-form textarea {
    width: 100%;
    padding: clamp(11px, 1.15vw, 22px) 0;
    border: none;
    border-bottom: 1px solid #E6E9EB;
    border-radius: 0;
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(12px, 0.83vw, 16px);
    font-weight: 500;
    color: #000000;
    background: transparent;
    outline: none;
}

.about-contact-form input:focus,
.about-contact-form textarea:focus {
    border-bottom-color: #00223B;
}

.about-contact-form input::placeholder,
.about-contact-form textarea::placeholder {
    color: #C7C7C7;
}

.about-contact-form textarea {
    min-height: clamp(40px, 3.13vw, 60px);
    resize: vertical;
    grid-column: 1 / -1;
}

.about-contact-form button {
    padding: clamp(10px, 1.04vw, 20px) clamp(20px, 2.08vw, 40px);
    background: #00223B;
    color: #FFFFFF;
    border: none;
    border-radius: clamp(6px, 0.63vw, 12px);
    font-family: 'HK Gothic', sans-serif;
    font-size: clamp(14px, 1.04vw, 20px);
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: clamp(12px, 1.25vw, 24px);
}

.about-contact-form button:hover {
    background: #003a5f;
    transform: translateY(-2px);
}
