@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Cormorant SC';
    src: url('fonts/CormorantSC-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant SC';
    src: url('fonts/CormorantSC-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Kalissa';
    src: url('fonts/KalissaRegular_0.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vivaldi';
    src: url('/fonts/Vivaldi.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SGTimes';
    src: url('/fonts/SGTimes.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

:root {
    --bg: #f6f4f1;
    --paper: #fbf8f1;

    --text: #13294b;
    --text-soft: #46556f;
    --muted: #7f8794;

    --line: rgba(19, 41, 75, 0.12);

    --blue: #13294b;
    --blue-2: #102232;

    --gold: #b79247;

    --white: #ffffff;

    --side: 140px;
    --logo-width: 110px;
    --logo-gap: 6px;

    --content-start:
        calc(var(--side) + var(--logo-width) + var(--logo-gap) - 10px);

    --content-end: var(--content-start);

    --content: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: #f6f4f1;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.site-shell {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
     border-radius: 0;
    background:
        radial-gradient(circle at 50% 0%, #ffffff 0%, #f7f5f1 46%, #f6f4f1 100%);
}

/* HEADER */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    overflow: visible;
}

.header-wave {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 200px;
    background-image: url("styles/image.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: left top;
    z-index: 1;
    pointer-events: none;
}


.header-inner {
    min-height: 104px;
    padding: 34px var(--content-end) 14px var(--side);

    display: grid;
     grid-template-columns: 260px 1fr;

    align-items: start;
    gap: 40px;
}

.brand {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}


.brand-logo {
display: none;
}


.brand-name {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 42px;

    padding-top: 16px;
}

.main-nav a {
    position: relative;

    padding: 8px 0;

    font-family: "Cormorant SC", serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;

    text-transform: uppercase;

    color: var(--blue);
}

.main-nav a:not(:last-child)::before {
    content: "•";

    position: absolute;

    right: -24px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--gold);

    font-size: 14px;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: var(--blue);

    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
}

/* HERO */

.home-page {
    padding-top: 0;
}

.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 92px var(--content-end) 46px var(--content-start);
    overflow: hidden;
    background-image: url("styles/3ogobg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 55%;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;

}

.hero-copy {
    position: relative;
    z-index: 3;
    width: 560px;
    max-width: 560px;
    padding-top: 0;
}

.hero-copy h1 {
    max-width: 560px;
    font-family: "Cormorant SC", serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    font-style: normal;
    line-height: 1.16;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--blue);
    text-shadow: none;
}

.hero-line {
    width: 48px;
    height: 2px;
    margin: 18px 0 16px;
    background: var(--gold);
}

.hero-copy p {
    max-width: 390px;
    font-family: "Playfair Display", serif;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.32;
    color: var(--blue);
    text-shadow: none;
}

.text-arrow-link {
    width: 230px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
    
    font-family: "Cormorant SC", serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--blue);
    
    transition: 0.25s ease;
}

.text-arrow-link::after {
    display: none;
}

.text-arrow-link span {
    font-size: 24px;
    line-height: 1;
    color: var(--gold);
}

/* COMMON HEAD */

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    margin-bottom: 42px;
}

.home-section-head h2 {
    font-family: "Cormorant SC", serif;
    font-size: clamp(32px, 3vw, 54px);
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
    color: var(--blue);
}

.section-more-link {
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    gap: 24px;

    font-family: "Cormorant SC", serif;
    font-size: 22px;

    color: var(--blue);
}

.section-more-link span {
    font-size: 34px;
    line-height: 1;
}

/* NEWS */

.home-news-section {
    padding:
        36px
        var(--content-end)
        42px
        var(--content-start);

    background: transparent;
}

.home-news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.home-news-card {
    min-height: auto;

    padding: 22px;

    border: none;

    border-radius: 10px;

    background: rgba(255,255,255,0.8);

    box-shadow:
        0 4px 18px rgba(0,0,0,0.04);
}

.home-news-date {
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--blue);
}

.home-news-tag {
    margin-bottom: 14px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--gold);
}

.home-news-card img {
    width: 100%;
    height: 165px;

    margin: 16px 0 18px;

    object-fit: cover;

    border-radius: 4px;
}

.home-news-title {
    max-width: 100%;

    margin-bottom: 18px;

    font-family: "Playfair Display", serif;

    font-size: 22px;

    line-height: 1.46;

    color: var(--blue);
}

.home-news-arrow {
    display: inline-block;

    margin-top: 6px;

    font-size: 28px;

    color: var(--gold);
}

/* STATEMENT */

.statement-section {
    padding: 28px var(--content-end) 34px var(--content-start);
}

.statement-card {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 48px;

    padding: 24px 58px;

    overflow: hidden;
    border-radius: 26px;

    background:
        linear-gradient(
            90deg,
            rgba(18, 39, 67, 0.98),
            rgba(19, 45, 78, 0.98)
        );

    color: #ffffff;
}

.statement-sketch {
    display: none;
}

.statement-quote-mark {
    position: absolute;
    left: 42px;
    top: 20px;

    font-family: "Playfair Display", serif;
    font-size: 38px;
    line-height: 1;

    color: rgba(255, 255, 255, 0.92);
}

.statement-card blockquote {
    max-width: 920px;
    margin-left: 42px;

    font-family: "Cormorant SC", serif;
    font-size: clamp(26px, 2.6vw, 42px);
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: 0.01em;

    color: #ffffff;
}

.statement-sign {
    position: relative;
    justify-self: end;

    width: 330px;
    height: 135px;

    transform: translateX(-20px);
    overflow: visible;
}

.statement-sign img {
    position: absolute;
    left: 0;
    top: -120px;

    width: 260px;
    height: auto;

    margin: 0;

    filter: invert(1);
    transform: none;
}

.statement-sign p {
    position: absolute;
    left: 45px;
    top: 100px;

    margin: 0;

    font-family: "Cormorant SC", serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.82);
}

/* PROJECTS */

.home-projects-section {
    padding: 36px var(--content-end) 86px var(--content-start);
    background: transparent;
}

.projects-head {
    margin-bottom: 42px;
}

.projects-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.projects-timeline::before {
    display: none;
}

.project-timeline-card {
    position: relative;
    min-height: auto;
    padding: 22px;
    border-radius: 10px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

.project-timeline-card::before {
    content: "";
    display: block;
    width: 100%;
    height: 165px;
    margin-bottom: 18px;
    border-radius: 4px;
    background-image: var(--project-image, url("styles/nopic.png"));
    background-size: cover;
    background-position: center;
}

.project-number {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: Inter, Arial, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
}

.project-dot {
    display: none;
}

.project-title {
    max-width: 100%;
    margin-bottom: 14px;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.46;
    letter-spacing: 0;
    color: var(--blue);
}

.project-meta {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

.project-arrow {
    display: inline-block;
    margin-top: 6px;
    font-size: 28px;
    color: var(--gold);
}

/* FOOTER */

.site-footer {
    position: relative;
    margin-top: 60px;
    padding: 10px var(--content-end) 10px var(--content-start);
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-2) 100%);
    color: #ffffff;
    transition: padding 0.3s ease;
}

.site-footer.is-form-collapsed {
    padding-top: 150px;
}

.footer-contact-card {
    position: absolute;
    left: 50%;
    top: -72px;
    z-index: 5;
    width: min(820px, calc(100% - 80px));
    min-height: 210px;
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 46px;
    padding: 34px 44px 36px;
    background: #f7f4ee;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 18px;
    color: #111111;
    transform: translateX(-50%);
    transform-origin: bottom center;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
    transition: top 0.3s ease, min-height 0.3s ease, padding 0.3s ease;
}

.footer-contact-card.is-collapsed {
    top: 46px;
    min-height: 92px;
    grid-template-columns: 1fr;
    padding: 26px 44px;
}

.footer-contact-info h2 {
    font-family: "Cormorant SC", serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.12;
    color: var(--blue);
    padding-right: 42px;
}

.footer-contact-line {
    width: 44px;
    height: 1px;
    margin: 18px 0 20px;
    background: var(--gold);
}

.footer-contact-info p {
    max-width: 230px;
    font-size: 12px;
    line-height: 1.75;
    color: #4d4a43;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-form,
.footer-contact-line,
.footer-contact-info p {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-contact-card.is-collapsed .footer-form,
.footer-contact-card.is-collapsed .footer-contact-line,
.footer-contact-card.is-collapsed .footer-contact-info p {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.footer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: transparent;
    padding: 10px 12px;
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    color: #111111;
    outline: none;
}

.footer-form textarea {
    min-height: 62px;
    resize: vertical;
}

.footer-form button {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 34px;
    margin-top: 2px;
    border: none;
    background: transparent;
    color: #111111;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

.footer-form button span {
    font-size: 20px;
    line-height: 1;
    color: var(--gold);
}

.footer-form-toggle {
    position: absolute;
    right: 5px;
    top: 10px;
    left: auto;
    bottom: auto;
    z-index: 8;

    width: 32px;
    height: 32px;

    border: 1px solid rgba(19, 41, 75, 0.16);
    border-radius: 50%;

    background: #f7f4ee;
    color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transform: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.footer-shell {
    display: grid;
    grid-template-columns: 220px 180px 260px;
    gap: 70px;
    align-items: start;
    width: min(820px, calc(100% - 80px));
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-brand {
    width: 170px;
    height: 95px;
    overflow: hidden;
}

.footer-logo {
    width: 170px;
    height: auto;
    filter: invert(1);
    transform: translateY(-8px);
}

.footer-nav,
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-contacts a,
.footer-contacts p {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 1px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-bottom div {
    display: flex;
    gap: 28px;
}

.reveal-card {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-card:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-card:nth-child(4) {
    transition-delay: 0.24s;
}
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;

    width: 46px;
    height: 46px;

    border: 1px solid rgba(19, 41, 75, 0.18);
    border-radius: 50%;

    background: #f7f4ee;
    color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: 0.25s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--blue);
    color: #ffffff;
}

/* HOME HOVER ANIMATIONS */

/* BUTTON LINK HOVER */

.text-arrow-link,
.section-more-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    isolation: isolate;
}

.text-arrow-link::before,
.section-more-link::before {
    content: "";

    position: absolute;
    left: -14px;
    top: 50%;
    z-index: -1;

    width: 34px;
    height: 34px;

    border-radius: 999px;
    background: rgba(183, 146, 71, 0.18);

    transform: translateY(-50%) scale(0);
    transform-origin: center;
    transition:
        transform 0.32s ease,
        width 0.32s ease;
}

.text-arrow-link:hover::before,
.section-more-link:hover::before {
    width: calc(100% + 28px);
    transform: translateY(-50%) scale(1);
}

.text-arrow-link span,
.section-more-link span {
    transition:
        transform 0.28s ease,
        color 0.28s ease;
}

.text-arrow-link:hover span,
.section-more-link:hover span {
    transform: translateX(10px) rotate(-12deg);
    color: var(--gold);
}

.home-news-card,
.project-timeline-card {
    transition:
        transform 0.32s ease,
        box-shadow 0.32s ease,
        border-color 0.32s ease;
}

.home-news-card:hover,
.project-timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(15, 32, 58, 0.12);
    border-color: rgba(19, 41, 75, 0.18);
}

.home-news-arrow,
.project-arrow {
    display: inline-block;
    transition: transform 0.28s ease;
}

.home-news-card:hover .home-news-arrow,
.project-timeline-card:hover .project-arrow {
    transform: translateX(8px);
}


/* RESPONSIVE */

@media (max-width: 1200px) {

    :root {
        --side: 30px;

        --logo-width: 92px;
        --logo-gap: 6px;

        --content-start:
            calc(var(--side) + var(--logo-width) + var(--logo-gap) - 8px);

        --content-end: var(--content-start);
    }

    .hero-section {
        min-height: 680px;
    }

    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-timeline::before {
        display: none;
    }

    .project-dot {
        display: none;
    }
}

@media (max-width: 900px) {

    :root {
        --side: 18px;
        --content-start: var(--side);
        --content-end: var(--side);
    }

   .header-inner {
    min-height: 92px;
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 22px 18px 12px;
    gap: 12px;
}

.brand {
    justify-content: flex-start;
}

.brand-logo {
    display: none;
}

.brand-name {
 display: none;
}

.main-nav {
    position: fixed;
    right: 18px;
    top: 78px;
    z-index: 120;
    display: none;
    width: 210px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(19, 41, 75, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.main-nav.is-open {
    display: flex;
}

.main-nav a {
    font-size: 15px;
    letter-spacing: 0.08em;
}

.mobile-menu-btn {
    position: fixed;
    right: 18px;
    top: 24px;
    z-index: 150;
    display: flex;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--blue);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--gold);
}

.header-wave {
    position: fixed;
    left: 0;
    top: 0;
    width: 190px;
    height: 125px;
    background-image: url("styles/image.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left top;
    z-index: 110;
    pointer-events: none;
}

.hero-section {
    min-height: 520px;
    padding: 108px 22px 42px;
    background-image: url("styles/3ogobg.png");
    background-repeat: no-repeat;
    background-size: auto 115%;
    background-position: 60% 0px;
}

.hero-copy {
    width: 100%;
    max-width: 270px;
    padding-top: 46px;
}

.hero-copy h1 {
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.hero-line {
    width: 42px;
    height: 1px;
    margin: 16px 0 14px;
}

.hero-copy p {
    max-width: 250px;
    font-size: 22px;
    line-height: 1.25;
}

.text-arrow-link {
    width: 190px;
    height: 46px;
    margin-top: 22px;
    gap: 22px;
    font-size: 13px;
}
    .home-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .statement-card {
        grid-template-columns: 1fr;

        gap: 24px;

        padding: 30px 24px;
    }

    .statement-sketch {
        display: none;
    }

.projects-timeline {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
}

.project-timeline-card {
    padding: 16px;
}

.project-timeline-card::before {
    height: 120px;
}

.project-title {
    font-size: 17px;
}

.project-number {
    font-size: 9px;
}

.site-footer {
    margin-top: 70px;
    padding: 20px 18px 22px;
}

.footer-contact-card {
    top: -58px;
    width: calc(100% - 36px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 22px;
    border-radius: 18px;
}

.footer-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
}

.footer-shell {
    width: 100%;
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    gap: 16px;
    align-items: start;
    padding-top: 26px;
    margin: 0;
}

.footer-brand {
    width: 110px;
    height: 76px;
}

.footer-logo {
    width: 135px;
    transform: translateY(-8px);
}

.footer-nav,
.footer-contacts {
    gap: 8px;
}

.footer-nav a,
.footer-contacts a,
.footer-contacts p {
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: 0.08em;
}

.footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 8px;
}

.footer-bottom div {
    gap: 14px;
}
}