/* ==========================================================
   Fonts
   ========================================================== */
@font-face {
    font-family: 'Sinhala MN';
    src: url('../font/sinhala-mn-regular/sinhala-mn-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../font/open-sans/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../font/open-sans/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../font/open-sans/OpenSans-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../font/open-sans/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../font/Proxima%20Nova/Proxima%20Nova%20Regular/Proxima%20Nova%20Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* ==========================================================
   Base
   ========================================================== */
:root {
    --font-heading: 'Sinhala MN', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --font-accent: 'Proxima Nova', 'Open Sans', Arial, sans-serif;
    --white: #fcfcfc;
    --brown: #6E5A44;
    --line: rgba(255, 255, 255, 0.28);
    --gutter: clamp(20px, 3.7vw, 70px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 0;
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 30px var(--gutter) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    width: 150px;
    height: auto;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav li { position: relative; }

.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 17px;
    letter-spacing: 0.3px;
    color: var(--white);
    transition: opacity 0.3s;
}
.main-nav > ul > li > a:hover { opacity: 0.7; }

.caret { width: 10px; height: 6px; fill: currentColor; }

.dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 200px;
    padding: 14px 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 8px 22px;
    font-family: var(--font-heading);
    font-size: 16px;
    color: #222;
    transition: color 0.3s, padding 0.3s;
}
.dropdown a:hover { color: var(--brown); padding-left: 28px; }

.nav-toggle {
    display: none;
    width: 34px;
    height: 24px;
    position: relative;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 60;
}
.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-open .nav-toggle span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Solid header (inner pages) */
.site-header--solid {
    position: relative;
    background: #fff;
    padding-top: 22px;
    padding-bottom: 22px;
}
.site-header--solid .site-logo img { width: 130px; }
.site-header--solid .main-nav > ul > li > a { color: #1a1a1a; }
.site-header--solid .nav-toggle span { background: #1a1a1a; }
.nav-open .site-header--solid .nav-toggle span { background: var(--white); }

.main-nav > ul > li.is-active > a { color: var(--brown); }
.site-header--transparent .main-nav > ul > li.is-active > a { color: var(--white); }

/* ==========================================================
   Page banner (inner pages)
   ========================================================== */
.page-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(180px, 22vw, 287px);
    padding: 40px var(--gutter);
    background: #8E877F;
    text-align: center;
}
.page-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 2.4vw + 12px, 50px);
    line-height: 1.1;
    color: #fff;
}

.page-content { min-height: 40vh; }

/* ==========================================================
   Hero slider
   ========================================================== */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: #1a1a1a;
    cursor: grab;
    user-select: none;
}
.hero.is-dragging { cursor: grabbing; }

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 0s linear 1s;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity 1s ease, visibility 0s;
}
.hero-slide.is-leaving {
    visibility: visible;
    z-index: 1;
}

/* Ken Burns: slow zoom 100% -> 110% over 10s */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 60% 60%;
    transform: scale(1);
    transform-origin: 60% 60%;
    will-change: transform;
}
.hero-slide.is-active .hero-bg,
.hero-slide.is-leaving .hero-bg {
    animation: kenburns 10s linear forwards;
}
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 45%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 40%);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: clamp(40px, 7vh, 70px);
    z-index: 3;
    color: var(--white);
    max-width: 900px;
}

.hero-subtitle {
    margin: 0 0 20px;
    overflow: hidden;
    font-family: var(--font-heading);
    font-size: clamp(34px, 3vw + 10px, 57px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.hero-subtitle span {
    display: inline-block;
    transform: translateY(100%);
}

.hero-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30%);
}

/* Intro animation (slide becomes active) */
.hero-slide.is-active .hero-subtitle span {
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}
.hero-slide.is-active .hero-title .char {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(0.63s + var(--i) * 0.02s);
}

/* Outro: text fades as the slide leaves */
.hero-slide.is-leaving .hero-content {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Slide dashes (bottom right) */
.hero-dots {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(40px, 7vh, 70px);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}
.hero-dot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1.5px;
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.hero-dot::after {
    content: '';
    width: 0;
    height: 1px;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-dot:hover { opacity: 0.85; }
.hero-dot.is-active { opacity: 1; }
.hero-dot.is-active::after { width: 32px; }
.hero-dot:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }

@media (max-width: 767px) {
    .hero-content { bottom: 80px; }
    .hero-dots { bottom: 32px; left: var(--gutter); right: auto; flex-direction: row; align-items: center; gap: 18px; }
    .hero-dot.is-active::after { width: 20px; }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
    position: relative;
    background: var(--brown);
    color: var(--white);
    border-radius: 0 0 22px 22px;
    padding: 40px 0 38px;
}

.footer-inner {
    width: min(1600px, 100% - 2 * clamp(20px, 8vw, 152px));
    margin: 0 auto;
}

.footer-logo { display: inline-block; }
.footer-logo img { width: 150px; height: auto; }

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 70px 0 34px;
    border-bottom: 1px solid var(--line);
}

.footer-col { max-width: 400px; }

.footer-text {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0;
    display: block;
}
.footer-tagline { max-width: 370px; margin-bottom: 40px; }
.footer-address { margin-bottom: 40px; }
a.footer-text:hover { opacity: 0.75; }

.footer-heading {
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
}
.footer-nav a {
    font-family: var(--font-heading);
    font-size: 19px;
    letter-spacing: 0.3px;
    transition: opacity 0.3s;
}
.footer-nav a:hover { opacity: 0.7; }

.footer-social {
    display: flex;
    gap: 20px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.3s;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); }
.footer-social img { width: 20px; height: 20px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

.go-top {
    position: absolute;
    right: clamp(14px, 3vw, 64px);
    bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--white);
    transition: transform 0.3s;
}
.go-top:hover { transform: translateY(-5px); }
.go-top svg { width: 12px; height: 34px; }
.go-top span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
}

/* ==========================================================
   Shared page sections
   ========================================================== */
.container {
    width: min(1290px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.section-title {
    font-size: clamp(32px, 1.6vw + 22px, 47px);
    line-height: 1.05;
    color: #000;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Accordion */
.accordion { margin-top: 40px; max-width: 514px; }

.accordion__item { border-bottom: 1px solid #e3e0dc; }
.accordion__item:last-child { border-bottom: 0; }

.accordion__title {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: 17px;
    color: #000;
    text-align: left;
    cursor: pointer;
}

.accordion__icon {
    position: relative;
    flex: 0 0 12px;
    height: 12px;
}
.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
    transition: transform 0.3s ease;
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__item.is-open .accordion__icon::after { transform: rotate(0deg); }

.accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > p {
    overflow: hidden;
    margin: 0;
    padding-left: 34px;
    font-family: var(--font-accent);
    font-size: 16px;
    line-height: 1.8;
    color: #8e8984;
}
.accordion__item.is-open .accordion__panel > p { padding-bottom: 18px; }

/* ==========================================================
   Brand page
   ========================================================== */
/* Founder's vision — five layouts, picked with $founderLayout in brand.php */
.founder__media img,
.founder__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #ece8e3;
    font-family: var(--font-heading);
    font-size: 20px;
    color: #8e8984;
    text-align: center;
}
.founder__eyebrow {
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-accent);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brown);
}
.founder__name {
    display: block;
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1.2;
    color: #000;
}
.founder__role {
    display: block;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-size: 17px;
    color: #8e8984;
}
.founder__quote {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(26px, 1.4vw + 16px, 40px);
    line-height: 1.25;
    color: #000;
}
.founder p {
    margin: 0 0 22px;
    font-size: 15.5px;
    line-height: 1.85;
    color: #8e8984;
}

/* Split */
.founder--split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 70px;
    padding: 100px 0 0;
}
.founder--split .founder__media { aspect-ratio: 4 / 5; overflow: hidden; }
.founder--split .founder__role { margin: 12px 0 30px; font-size: 19px; }

/* Quote */
.founder--quote { padding: 110px 0 10px; }
.founder--quote .founder__head {
    max-width: 900px;
    margin: 0 auto 70px;
    text-align: center;
}
.founder--quote .founder__quote { font-size: clamp(30px, 2vw + 18px, 50px); }
.founder--quote .founder__person {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    text-align: left;
}
.founder--quote .founder__avatar {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
}
.founder--quote .founder__avatar .founder__placeholder { font-size: 11px; padding: 8px; }
.founder--quote .founder__name { font-size: 22px; }
.founder--quote .founder__role { font-size: 15px; }
.founder--quote .founder__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}
.founder--quote .founder__columns p {
    margin: 0;
    padding-top: 26px;
    border-top: 1px solid #e3e0dc;
}

/* Overlap */
.founder--overlap { position: relative; padding: 100px 0 0; }
.founder--overlap .founder__media {
    width: 72%;
    margin-left: auto;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}
.founder--overlap .founder__card {
    position: relative;
    width: 46%;
    margin-top: -340px;
    padding: 56px 54px 34px;
    background: var(--brown);
    color: #fff;
}
.founder--overlap .founder__eyebrow,
.founder--overlap .founder__role,
.founder--overlap p { color: rgba(255, 255, 255, 0.78); }
.founder--overlap .founder__title {
    font-size: clamp(36px, 1.6vw + 24px, 52px);
    line-height: 1.05;
    color: #fff;
}
.founder--overlap .founder__role { margin: 8px 0 28px; }

/* Dark band */
.founder--dark {
    margin-top: 160px;
    background: #2f2a26;
    color: #fff;
}
.founder--dark .founder__inner {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 80px;
}
.founder--dark .founder__text { padding: 90px 0 80px; }
.founder--dark .founder__eyebrow { color: #c9b49c; }
.founder--dark .founder__quote { margin-bottom: 36px; color: #fff; }
.founder--dark p { color: rgba(255, 255, 255, 0.68); }
.founder--dark .founder__signature {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.founder--dark .founder__name { color: #fff; }
.founder--dark .founder__role { color: rgba(255, 255, 255, 0.6); }
.founder--dark .founder__media {
    align-self: start;
    margin-top: -90px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.founder--dark .founder__placeholder { background: #4a433d; color: rgba(255, 255, 255, 0.6); }

/* Sticky story */
.founder--sticky {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 90px;
    padding: 100px 0 0;
}
/* Text on the left, portrait pinned on the right */
.founder--sticky .founder__aside { position: sticky; top: 40px; order: 2; }
.founder--sticky .founder__media {
    aspect-ratio: 4 / 5;
    margin-bottom: 24px;
    overflow: hidden;
}
.founder--sticky .founder__quote { margin-bottom: 60px; }
.founder--sticky .founder__chapter {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    padding: 34px 0;
    border-top: 1px solid #e3e0dc;
}
.founder--sticky .founder__number {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1;
    color: var(--brown);
}
.founder--sticky .founder__chapter p { margin: 0; }

.brand-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
}

/* Image with the stat boxes hanging off its bottom edge */
.brand-intro__media {
    position: relative;
    width: 554px;
    max-width: 100%;
    margin-left: auto;
    margin-bottom: 70px;
}
/* Desktop: image on the left, text on the right */
@media (min-width: 1025px) {
    .brand-intro__media { order: -1; margin-left: 0; margin-right: auto; }
}

.brand-intro__image {
    width: 100%;
    aspect-ratio: 554 / 500;
    overflow: hidden;
}
.brand-intro__image img,
.brand-heritage__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-boxes {
    position: absolute;
    left: 0;
    right: 4%;
    bottom: -70px;
    display: flex;
    gap: 12px;
}

.stat-box {
    flex: 1;
    min-width: 0;
    padding: 26px 28px 28px;
    color: #fff;
}
.stat-box--brown { background: var(--brown); }
.stat-box--dark  { background: #2f2a26; }

.stat-box__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.stat-box__value {
    display: flex;
    align-items: flex-start;
    font-family: var(--font-heading);
    font-size: clamp(40px, 2.4vw + 18px, 58px);
    line-height: 1;
}

/* Odometer: each digit is a column of 0-9 that rolls into place */
.odometer { display: inline-flex; overflow: hidden; }
.odometer__digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
}
.odometer__strip {
    display: flex;
    flex-direction: column;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.odometer__strip span { height: 1em; line-height: 1; }

.brand-heritage { padding: 0 0 100px; }

.brand-heritage__grid {
    display: grid;
    grid-template-columns: 851fr 409fr;
    gap: 30px;
    margin-top: 50px;
}

.brand-heritage__image {
    aspect-ratio: 851 / 547;
    overflow: hidden;
}

.brand-heritage__text p {
    margin: 0 0 28px;
    font-size: 15.5px;
    line-height: 1.85;
    color: #8e8984;
}
.brand-heritage__text p:first-child { margin-top: -6px; }

/* ==========================================================
   Our Infra page
   ========================================================== */
.infra-page { background: #ececec; }

.infra { padding: 50px 0 60px; }

.infra-intro {
    max-width: 940px;
    margin: 0 auto 60px;
    text-align: center;
}
.infra-intro__title {
    font-size: clamp(26px, 0.8vw + 20px, 32px);
    line-height: 1.2;
    color: #282828;
    margin-bottom: 30px;
}
.infra-intro__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
}

.timeline { position: relative; }

.timeline__track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: #e0e0e0;
}
.timeline__progress {
    width: 100%;
    height: 100%;
    background: var(--brown);
    transform: scaleY(0);
    transform-origin: top;
}

.timeline__step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 130px 1fr;
    grid-template-areas: "content marker media";
    min-height: 450px;
    padding-top: 50px;
}
.timeline__step--reverse { grid-template-areas: "media marker content"; }

.timeline__content { grid-area: content; }
.timeline__marker  { grid-area: marker; }
.timeline__media   { grid-area: media; }

.timeline__content {
    max-width: 470px;
    margin-left: auto;
    text-align: right;
}
.timeline__step--reverse .timeline__content {
    margin-left: 0;
    text-align: left;
}

.timeline__number {
    display: block;
    font-family: var(--font-body);
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    color: var(--brown);
    margin-bottom: 8px;
}
.timeline__title {
    font-size: 20px;
    line-height: 1.4;
    color: #282828;
    margin-bottom: 18px;
}
.timeline__text {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: #000;
    text-align: justify;
    text-align-last: right;
}
.timeline__step--reverse .timeline__text { text-align-last: left; }

.timeline__marker {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.timeline__badge {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f4f0ea;
    border: 3px solid #ececec;
    box-shadow: 0 0 0 1px var(--brown), inset 0 0 0 1px rgba(110, 90, 68, 0.35);
    color: var(--brown);
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}
.timeline__badge svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.timeline__step.is-active .timeline__badge {
    background: var(--brown);
    color: #fff;
    transform: scale(1.08);
}

.timeline__media {
    aspect-ratio: 563 / 350;
    overflow: hidden;
    align-self: start;
}
.timeline__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================
   Contact page
   ========================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.contact { padding: 70px 0 90px; }

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}
.contact-intro__title {
    font-size: clamp(28px, 1.2vw + 20px, 40px);
    line-height: 1.1;
    letter-spacing: -1px;
    color: #2e2b28;
    margin-bottom: 20px;
}
.contact-intro__text {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #2e2b28;
}

.form-notice {
    margin: 0 0 30px;
    padding: 16px 20px;
    font-size: 15px;
    text-align: center;
}
.form-notice a { text-decoration: underline; }
.form-notice--success { background: #eef3ea; color: #3c5a2f; }
.form-notice--error   { background: #f7ecea; color: #8a2f22; }

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 36px;
}
.form-field--full { grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #212121;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.3;
    color: #212121;
    transition: border-color 0.3s;
}
.contact-form textarea { min-height: 94px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #212121; opacity: 0.85; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--brown);
}

.form-field.has-error input,
.form-field.has-error textarea { border-bottom-color: #b3261e; }
.form-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #b3261e;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
}

.contact-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.btn-submit {
    padding: 20px 46px;
    border: 0;
    border-radius: 10px;
    background: #f0ece7;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.btn-submit:hover { background: var(--brown); color: #fff; }

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    text-align: center;
}
.contact-info h3 {
    font-size: 24px;
    letter-spacing: -0.5px;
    color: #2e2b28;
    margin-bottom: 14px;
}
.contact-info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #2e2b28;
}
.contact-info a:hover { color: var(--brown); }

.contact-map { line-height: 0; }
.contact-map iframe {
    width: 100%;
    height: 500px;
    border: 0;
    filter: grayscale(0.15);
}

/* ==========================================================
   Product grid (Marble Slab & Tiles, Furnishing & Decor)
   ========================================================== */
.product-grid-section {
    width: min(1400px, 100% - 2 * var(--gutter));
    padding: 40px 0 90px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    padding: 10px 10px 4px;
    border: 1px solid #a3a3a3;
    border-radius: 15px;
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    animation: cardIn 0.6s ease both;
}
.product-card.is-hidden { display: none; }
.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--brown);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.product-card__image {
    aspect-ratio: 1024 / 647;
    border-radius: 10px;
    overflow: hidden;
    background: #f1efec;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-card__image img { transform: scale(1.06); }

.product-card__title {
    padding: 14px 2px 12px;
    font-size: 20px;
    line-height: 1.2;
    color: #000;
}

.product-grid__sentinel { height: 1px; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================
   Product detail page
   ========================================================== */
.product-card { display: block; color: inherit; }

.product-detail { padding: 70px 0 60px; width: min(1385px, 100% - 2 * var(--gutter)); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #6e5944;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep {
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin: 0 4px 0 2px;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 693fr 593fr;
    gap: 50px;
    align-items: start;
}

/* Gallery */
.product-gallery {
    padding: 20px;
    border-radius: 20px;
    background: #c9c1b8;
    min-width: 0;
}
.product-gallery__viewport {
    overflow: hidden;
    border-radius: 20px;
    touch-action: pan-y;
    cursor: grab;
}
.product-gallery__viewport.is-dragging { cursor: grabbing; }
.product-gallery__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-gallery__slide {
    flex: 0 0 100%;
    aspect-ratio: 650 / 572;
    background: #ddd6ce;
}
.product-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.product-gallery__thumbs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.product-gallery__thumb {
    width: 119px;
    max-width: 22%;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: 0.75;
    transition: border-color 0.3s, opacity 0.3s;
}
.product-gallery__thumb:hover { opacity: 1; }
.product-gallery__thumb.is-active { border-color: var(--brown); opacity: 1; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Summary */
.product-summary { padding-top: 20px; }
.product-summary__title {
    font-size: 32px;
    line-height: 1.1;
    color: #000;
    margin-bottom: 18px;
}
.product-summary__text {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.7;
    color: #8e8984;
}
.product-summary__meta {
    margin: 0 0 14px;
    font-size: 17px;
    color: #424242;
}
.product-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
}

.btn-outline,
.btn-solid {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--brown);
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 1;
    transition: background 0.3s, color 0.3s;
}
.btn-outline { color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fbfaf8; }
.btn-solid { color: #fbfaf8; background: var(--brown); }
.btn-solid:hover { background: transparent; color: var(--brown); }

/* Related products */
.related-products {
    padding-bottom: 90px;
    width: min(1385px, 100% - 2 * var(--gutter));
}
.related-products__title {
    font-size: 28px;
    color: #000;
    margin-bottom: 26px;
}
.related-products .product-grid-section {
    width: 100%;
    padding: 0;
}

.product-missing { padding: 80px 0; text-align: center; }
.product-missing .btn-outline { margin: 6px; }

/* ==========================================================
   Projects pages (Residential, Commercial)
   ========================================================== */
.projects {
    width: min(1268px, 100% - 2 * var(--gutter));
    padding: 50px 0 90px;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f0ece7;
}

/* Pinned card scene (desktop, turned on by main.js):
   the section pins when its top edge reaches the top of the screen,
   then each card slides up from below and lands on top of the previous one. */
.projects.is-scene {
    padding: 0;
    /* height is set by main.js: scene height + scroll distance for the cards */
}
.projects.is-scene .projects__panel {
    position: sticky;
    top: 0;
    /* height is set by main.js: top space + card height + bottom space */
}
.projects.is-scene .project-row {
    position: absolute;
    left: 0;
    right: 0;
    transform-origin: center top;
    will-change: transform, filter;
}

.project-row__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
}
.project-row__number,
.project-row__title {
    font-family: var(--font-heading);
    font-size: 25px;
    line-height: 1.2;
    color: #000;
}
.project-row__number { display: block; margin-bottom: 14px; }
.project-row__title { margin-bottom: 22px; }
.project-row__desc {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: #8e8984;
}

.project-row__image {
    overflow: hidden;
    aspect-ratio: 634 / 500;
}
.project-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-row:hover .project-row__image img { transform: scale(1.04); }

/* ==========================================================
   Residential / Commercial pages (tabs)
   ========================================================== */
.topics { padding: 80px 0 100px; }

.topics-intro {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}
.topics-intro__text {
    margin: 20px 0 0;
    font-size: 15.5px;
    line-height: 1.85;
    color: #8e8984;
}

.tabs__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 34px;
    margin-bottom: 50px;
    border-bottom: 1px solid #e3e0dc;
}
.tabs__tab {
    position: relative;
    padding: 14px 0 16px;
    background: none;
    border: 0;
    font-family: var(--font-heading);
    font-size: 18px;
    color: #8e8984;
    cursor: pointer;
    transition: color 0.3s;
}
.tabs__tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--brown);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tabs__tab:hover { color: #000; }
.tabs__tab.is-active { color: #000; }
.tabs__tab.is-active::after { transform: scaleX(1); }
.tabs__tab:focus-visible { outline: 1px solid var(--brown); outline-offset: 4px; }

.tabs__panel.is-active { animation: tab-in 0.6s ease; }
@keyframes tab-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

.topic {
    display: grid;
    grid-template-columns: 4fr 7fr;
    align-items: start;
    gap: 60px;
}
.topic__title {
    margin-bottom: 24px;
    font-size: clamp(26px, 1vw + 20px, 34px);
    line-height: 1.15;
    color: #000;
}
.topic__text p {
    margin: 0 0 22px;
    font-size: 15.5px;
    line-height: 1.85;
    color: #8e8984;
}

.topic__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.topic__image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.topic__image:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.topic__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.topic__image:hover img { transform: scale(1.04); }

/* Our Clients logo marquee */
.clients { padding: 0 0 70px; }
.clients__title {
    font-size: 25px;
    text-align: center;
    color: #000;
    margin-bottom: 40px;
}
.clients__marquee {
    overflow: hidden;
    border-top: 1px solid #e3e0dc;
    border-bottom: 1px solid #e3e0dc;
}
.clients__track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }
.clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 110px;
    padding: 0 30px;
    border-right: 1px solid #e3e0dc;
}
.clients__item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.3s, opacity 0.3s;
}
.clients__item:hover img { filter: none; opacity: 1; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Card effect preview switcher (?demo=1) */
.effect-switcher {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 14px 16px 16px;
    border-radius: 16px;
    background: rgba(30, 24, 18, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    color: #fff;
    text-align: center;
    backdrop-filter: blur(6px);
}
.effect-switcher__label {
    max-width: 520px;
    margin: 0 auto 12px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.8);
}
.effect-switcher__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.effect-switcher__button {
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.effect-switcher__button:hover { border-color: #fff; }
.effect-switcher__button.is-active {
    background: #fff;
    border-color: #fff;
    color: var(--brown);
}

/* ==========================================================
   Homepage sections
   ========================================================== */
.home .container { width: min(1290px, 100% - 2 * var(--gutter)); }
/* Same as the original: 1290px wide on large screens, shrinking with ~133px side margins */
@media (min-width: 1025px) {
    .home .container { width: min(1290px, 100% - 266px); }
}

/* Intro: staggered images either side of a centred heading */
.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
    gap: 4.5%;
    padding: 130px 0 120px;
}
.home-intro__img { overflow: hidden; aspect-ratio: 4 / 5; }
.home-intro__img img {
    width: 100%;
    height: 116%;
    margin-top: -8%;
    object-fit: cover;
    will-change: transform;
}
.home-intro__img--right { margin-top: clamp(80px, 12vw, 200px); }
.home-intro__center {
    align-self: center;
    text-align: center;
}
.home-intro__text {
    margin: 30px auto 0;
    max-width: 420px;
    font-size: 16px;
    line-height: 1.8;
    color: #8e8984;
}

/* Statement + service cards */
.home-services { padding: 0 0 130px; }
.home-services__title {
    text-align: center;
    margin-bottom: 100px;
}
.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}
.service-card { display: block; color: #000; }
.service-card__image {
    overflow: hidden;
    aspect-ratio: 414 / 374;
}
/* Zig-zag: the middle card drops lower, with its caption above the image */
.service-card--offset {
    display: flex;
    flex-direction: column-reverse;
    margin-top: clamp(60px, 7vw, 110px);
}
.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
    transform: scale(var(--zoom, 1));
    transform-origin: var(--focus, 50% 50%);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Caption: title + light line; on hover the number slides in, an arrow button appears and the line darkens */
.service-card__caption {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 20px;
}
.service-card__caption::before,
.service-card__caption::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
}
.service-card__caption::before { right: 0; background: #d9d6d2; }
.service-card__caption::after {
    width: 100%;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__caption::after { transform: scaleX(1); }

.service-card__title {
    display: flex;
    align-items: baseline;
    font-size: 24px;
    line-height: 1.2;
    color: #000;
}
.service-card__number {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__number {
    max-width: 3em;
    margin-right: 0.45em;
    opacity: 1;
}

.service-card__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #c9c5c0;
    border-radius: 50%;
    color: #000;
    opacity: 0;
    transform: translateX(-12px) scale(0.85);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s;
}
.service-card__arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.service-card:hover .service-card__arrow {
    opacity: 1;
    transform: none;
}
.service-card__arrow:hover { background: #000; color: #fff; }

/* Touch screens have no hover: show the full caption */
@media (hover: none) {
    .service-card__number { max-width: 3em; margin-right: 0.45em; opacity: 1; }
    .service-card__arrow { opacity: 1; transform: none; }
}

/* Full-width parallax banner */
.home-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 810px;
    max-height: 90vh;
    min-height: 480px;
    overflow: hidden;
    text-align: center;
}
.home-banner__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -15%;
    height: 130%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}
.home-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}
.home-banner__title {
    position: relative;
    z-index: 1;
    padding: 0 var(--gutter);
    font-size: clamp(32px, 1.6vw + 22px, 47px);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

/* Feature boxes */
.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 130px 0;
}
.feature-box {
    padding: 83px 38px;
    text-align: center;
    transition: opacity 1s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.feature-box:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
.feature-box--brown { background: var(--brown); color: #fff; }
.feature-box--dark  { background: #000; color: #fff; }
.feature-box--light { background: #f2ede9; color: #000; }
.feature-box__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-box__title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.feature-box__text {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.7;
    opacity: 0.8;
}
.feature-box--light .feature-box__text { color: #8e8984; opacity: 1; }

/* CTA over a fixed background */
.home-cta {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 615px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
}
.home-cta__inner { position: relative; z-index: 1; padding: 80px 0; }
.home-cta__title {
    font-size: clamp(32px, 1.6vw + 22px, 47px);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 40px;
}
.btn-light {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #fff;
    font-size: 15px;
    line-height: 1;
    color: #fff;
    transition: background 0.3s, color 0.3s;
}
.btn-light:hover { background: #fff; color: #000; }

/* Luxury living */
/* Image runs to the right edge; the text card overlaps its left side */
.home-living {
    position: relative;
    padding: 110px 0 130px;
}
.home-living__image {
    width: 62%;
    margin-left: auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.home-living__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-living__inner {
    position: absolute;
    top: 110px;
    bottom: 130px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.home-living__text {
    width: 52%;
    max-width: 640px;
    padding: clamp(40px, 4.5vw, 70px);
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
}
.home-living__text .section-title { margin-bottom: 30px; }
.home-living__text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #2e2b28;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
    .nav-toggle { display: block; }

    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(30, 24, 18, 0.97);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; }
    .nav-open { overflow: hidden; }

    .main-nav > ul { flex-direction: column; gap: 14px; text-align: center; }
    .main-nav > ul > li > a,
    .site-header--solid .main-nav > ul > li > a { font-size: 26px; justify-content: center; color: var(--white); }
    .main-nav > ul > li.is-active > a { color: #c9b49c; }

    .dropdown {
        position: static;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 4px 0 8px;
    }
    .has-dropdown.is-open .dropdown { display: block; }
    .dropdown a { color: rgba(255, 255, 255, 0.75); font-size: 18px; }
    .dropdown a:hover { color: #fff; padding-left: 22px; }
}

@media (max-width: 1024px) {
    .home-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px 6%; padding: 90px 0; }
    .home-intro__center { grid-column: 1 / -1; grid-row: 1; }
    .home-intro__img--right { margin-top: 80px; }
    .home-features { grid-template-columns: 1fr; padding: 90px 0; }
    .home-living { padding: 80px 0 90px; }
    .home-living__image { width: 100%; }
    .home-living__inner { position: relative; top: auto; bottom: auto; }
    .home-living__text { width: auto; max-width: 640px; margin: -90px 0 0 20px; }
    .home-cta { background-attachment: scroll; }
    .project-row { grid-template-columns: 1fr; }
    .project-row__image { order: -1; }
    .product-detail__grid { grid-template-columns: 1fr; gap: 30px; }
    .product-summary { padding-top: 0; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .founder--split,
    .founder--sticky { grid-template-columns: 1fr; gap: 40px; padding-top: 70px; }
    .founder--split .founder__media,
    .founder--sticky .founder__media { max-width: 480px; }
    .founder--sticky .founder__aside { position: static; order: 0; }
    .founder--quote { padding-top: 80px; }
    .founder--quote .founder__columns { grid-template-columns: 1fr; gap: 26px; }
    .founder--overlap { padding-top: 70px; }
    .founder--overlap .founder__media { width: 100%; }
    .founder--overlap .founder__card { width: auto; margin: -80px 20px 0; }
    .founder--dark { margin-top: 70px; }
    .founder--dark .founder__inner { grid-template-columns: 1fr; gap: 0; }
    .founder--dark .founder__media { order: -1; max-width: 480px; margin-top: -40px; }
    .founder--dark .founder__text { padding: 50px 0 60px; }
    .topic { grid-template-columns: 1fr; gap: 36px; }
    .brand-intro { grid-template-columns: 1fr; padding: 70px 0; }
    .brand-intro__media { width: 100%; }
    .brand-intro__image { width: 100%; aspect-ratio: 16 / 11; }
    .brand-heritage__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .site-header { padding-top: 20px; }
    .brand-intro__media { margin-bottom: 0; }
    .stat-boxes { position: static; flex-direction: column; gap: 12px; margin-top: 12px; }
    .stat-box { width: 100%; padding: 26px 26px 30px; }
    .founder--split,
    .founder--sticky { padding-top: 50px; }
    .founder--split .founder__media,
    .founder--sticky .founder__media,
    .founder--dark .founder__media { max-width: none; }
    .founder--quote { padding-top: 60px; }
    .founder--quote .founder__head { margin-bottom: 40px; }
    .founder--overlap { padding-top: 50px; }
    .founder--overlap .founder__card { margin: -50px 12px 0; padding: 36px 26px 20px; }
    .founder--sticky .founder__chapter { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
    .founder--sticky .founder__number { font-size: 36px; }
    .topics { padding: 50px 0 70px; }
    .topics-intro { margin-bottom: 30px; }
    .tabs__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-bottom: 30px;
        scrollbar-width: none;
    }
    .tabs__list::-webkit-scrollbar { display: none; }
    .tabs__tab { flex: 0 0 auto; font-size: 16px; }
    .topic__gallery { gap: 12px; }
    .brand-heritage { padding-bottom: 70px; }
    .brand-heritage__grid { margin-top: 30px; }

    .infra-intro { margin-bottom: 40px; }
    .timeline__track { left: 25px; }
    .timeline__step,
    .timeline__step--reverse {
        grid-template-columns: 50px 1fr;
        grid-template-areas: "marker content" "marker media";
        column-gap: 18px;
        row-gap: 20px;
        min-height: 0;
        padding: 0 0 50px;
    }
    .timeline__content,
    .timeline__step--reverse .timeline__content {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }
    .timeline__text,
    .timeline__step--reverse .timeline__text { text-align-last: left; }
    .timeline__number { font-size: 40px; }

    .contact { padding: 50px 0 60px; }
    .contact-form__grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }
    .contact-map iframe { height: 360px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-grid-section { padding: 30px 0 60px; }
    .product-card { padding: 6px 6px 2px; border-radius: 12px; }
    .product-card__image { border-radius: 8px; }
    .product-card__title { font-size: 16px; padding: 10px 2px 8px; }

    .product-detail { padding: 40px 0 40px; }
    .product-gallery { padding: 12px; border-radius: 14px; }
    .product-gallery__viewport { border-radius: 12px; }
    .product-gallery__thumbs { gap: 10px; margin-top: 10px; }
    .product-summary__title { font-size: 28px; }
    .related-products { padding-bottom: 60px; }
    .related-products__title { font-size: 24px; }

    .projects { padding: 30px 0 60px; }
    .project-row__text { padding: 30px 22px 36px; }
    .project-row__number,
    .project-row__title { font-size: 22px; }
    .clients__item { width: 160px; height: 90px; padding: 0 20px; }

    .home-intro { gap: 30px 16px; padding: 60px 0; }
    .home-intro__img--right { margin-top: 50px; }
    .home-intro__text { margin-top: 20px; }
    .home-services { padding-bottom: 70px; }
    .home-services__title { margin-bottom: 40px; }
    .home-services__grid { grid-template-columns: 1fr; gap: 30px; }
    .service-card--offset { flex-direction: column; margin-top: 0; }
    .home-banner { height: 460px; min-height: 0; }
    .home-features { padding: 60px 0; gap: 16px; }
    .feature-box { padding: 50px 28px; }
    .home-cta { min-height: 460px; }
    .home-living { padding: 60px 0 70px; }
    .home-living__image { aspect-ratio: 4 / 3; }
    .home-living__text { margin: -60px 0 0 12px; padding: 32px 26px; }
    .site-logo img { width: 120px; }

    .hero-subtitle { margin-bottom: 14px; }
    .hero-title { font-size: 13px; }

    .footer-top { flex-direction: column; padding-top: 44px; }
    .footer-middle { flex-direction: column; align-items: flex-start; }
    .footer-nav a { font-size: 17px; }
    .footer-social { gap: 10px; margin-left: -8px; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .go-top { bottom: auto; top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .clients__track { animation: none; }
    .hero-slide.is-active .hero-bg { animation: none; }
    .hero-slide.is-active .hero-title .char,
    .hero-slide.is-active .hero-subtitle span { transition-duration: 0.01s; transition-delay: 0s; }
}
