/* FabStone — Premium Stone Countertops */

:root {
    --color-bg: #f7f6f4;
    --color-bg-muted: #eeece8;
    --color-bg-dark: #0d0d0d;
    --color-bg-dark-2: #1a1a1a;
    --color-bg-card: rgba(255, 255, 255, 0.72);
    --color-text: #141414;
    --color-text-muted: #5c5a56;
    --color-text-light: #9c9890;
    --color-white: #ffffff;
    --color-accent: #c9a24e;
    --color-accent-light: #dfc06a;
    --color-accent-hover: #a8842f;
    --color-accent-glow: rgba(201, 162, 78, 0.35);
    --color-border: rgba(20, 20, 20, 0.08);
    --color-success: #065f46;
    --color-success-bg: #d1fae5;
    --gradient-gold: linear-gradient(135deg, #dfc06a 0%, #c9a24e 50%, #a8842f 100%);
    --gradient-dark: linear-gradient(160deg, #0d0d0d 0%, #1a1816 50%, #0d0d0d 100%);
    --gradient-mesh: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201, 162, 78, 0.06) 0%, transparent 60%),
                     radial-gradient(ellipse 60% 50% at 80% 90%, rgba(201, 162, 78, 0.04) 0%, transparent 60%);
    --font-display: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Montserrat', system-ui, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 8px 32px var(--color-accent-glow);
    --radius: 0.625rem;
    --radius-lg: 1.125rem;
    --radius-xl: 1.5rem;
    --header-height: 5rem;
    --logo-height: 3.5rem;
    --logo-height-footer: 2.75rem;
    --container: 72rem;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    /* Light grain (CSS noise — stone cards) */
    --tex-light-grain-fine: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --tex-light-grain-coarse: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    /* Stone texture images */
    --tex-marble-bold: url('../images/textures/marble-bold.jpg');
    --tex-marble-subtle: url('../images/textures/marble-subtle.jpg');
    --tex-marble-calacatta: url('../images/textures/marble-bold.jpg');
    --tex-granite-speckle: url('../images/textures/granite-speckle.jpg');
    --tex-dark-marble: url('../images/textures/dark-marble.jpg');
    --tex-dark-marble-veined: url('../images/textures/dark-marble-veined.png');
    --tex-dark-granite: url('../images/textures/dark-granite.jpg');
    /* Legacy aliases */
    --tex-marble: var(--tex-marble-subtle);
    --tex-granite-dark: var(--tex-dark-granite);
    --tex-quartz: var(--tex-granite-speckle);
    --stone-card-texture:
        linear-gradient(158deg, rgba(255, 255, 255, 0.32) 0%, transparent 45%, rgba(210, 205, 198, 0.12) 100%),
        radial-gradient(ellipse 95% 75% at 18% 22%, rgba(175, 170, 163, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 90% 70% at 82% 78%, rgba(185, 180, 173, 0.18) 0%, transparent 52%),
        radial-gradient(circle at 50% 50%, rgba(165, 160, 153, 0.08) 0%, transparent 45%),
        var(--tex-light-grain-fine),
        var(--tex-light-grain-coarse);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 0.8125rem; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

p { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header & Nav ── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.site-header.scrolled {
    background: rgba(8, 8, 8, 0.92);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.navbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    display: block;
    height: var(--logo-height);
    width: auto;
    max-width: none;
    object-fit: contain;
}

.site-logo-footer {
    height: var(--logo-height-footer);
    width: auto;
    max-width: 280px;
    margin-bottom: 0.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links a {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s var(--ease-out-expo);
    padding-bottom: 0.25rem;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.35s var(--ease-out-expo), left 0.35s var(--ease-out-expo);
    border-radius: 1px;
}

.navbar-links a:hover,
.navbar-links a.active,
.navbar-links a.nav-hover {
    color: var(--color-white);
}

.navbar-links a:hover::after,
.navbar-links a.active::after,
.navbar-links a.nav-hover::after {
    width: 100%;
    left: 0;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9375rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), background 0.3s, border-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Shared black stone texture for all filled dark buttons */
.btn-primary,
.btn-secondary,
.filter-btn.active {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.btn-primary::before,
.btn-secondary::before,
.filter-btn.active::before {
    content: '';
    position: absolute;
    inset: -65%;
    z-index: -2;
    background-color: #000000;
    background-image:
        var(--tex-dark-marble),
        var(--tex-dark-granite);
    background-size: 190% auto, cover;
    background-position: 15% 25%, center;
    background-repeat: no-repeat;
    background-blend-mode: screen, soft-light;
    filter: contrast(1.5) brightness(1.08) saturate(0.85);
    transform: scale(1.15);
    pointer-events: none;
}

.btn-primary::after,
.btn-secondary::after,
.filter-btn.active::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
        radial-gradient(ellipse 120% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.filter-btn.active:hover::before {
    filter: contrast(1.55) brightness(1.12) saturate(0.9);
}

.btn-primary:hover,
.btn-secondary:hover,
.filter-btn.active:hover {
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(201, 162, 78, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    border-color: rgba(201, 162, 78, 0.35);
}

.btn-glow:hover {
    box-shadow: 0 8px 40px rgba(201, 162, 78, 0.45);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* ── Typography helpers ── */

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    padding: 0.375rem 1rem;
    background: rgba(201, 162, 78, 0.12);
    border: 1px solid rgba(201, 162, 78, 0.25);
    border-radius: 2rem;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eyebrow-light,
.page-hero .eyebrow,
.section-header-light .eyebrow {
    background: rgba(201, 162, 78, 0.12);
    border-color: rgba(201, 162, 78, 0.3);
    color: var(--color-accent-light);
}

/* ── Hero ── */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: heroKenBurns 20s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.65) 45%, rgba(8, 8, 8, 0.4) 100%),
        linear-gradient(to top, rgba(8, 8, 8, 0.8) 0%, transparent 40%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
    color: var(--color-white);
}

.hero-animate {
    opacity: 0;
    transform: translateY(28px);
}

.hero-animate.hero-visible {
    animation: heroFadeUp 0.9s var(--ease-out-expo) forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 10.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: heroFadeUp 1s 1.2s var(--ease-out-expo) both;
    pointer-events: none;
}

/* ── Stats strip ── */

.stats-strip {
    position: relative;
    z-index: 10;
    margin-top: -5rem;
    padding: 0 0 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-card {
    position: relative;
    background: #f5f4f1;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(120, 115, 108, 0.2);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 28px 60px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.625rem;
}

.stat-card span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3d3a37;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.section-after-stats {
    padding-top: 2rem;
}

.hero-scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-content h1 {
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Page hero (inner pages) ── */

.page-hero {
    position: relative;
    padding: calc(var(--header-height) + 5rem) 0 4rem;
    background: var(--gradient-dark);
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(201, 162, 78, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201, 162, 78, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.page-hero-lead {
    max-width: 36rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.125rem;
}

/* ── Legal pages ── */

.legal-content {
    max-width: 42rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.legal-content h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.25rem;
    color: var(--color-text);
}

.legal-content h2:first-of-type {
    margin-top: 1.5rem;
}

.legal-content p {
    margin: 0 0 1rem;
}

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

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--color-accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.legal-contact {
    list-style: none;
    padding-left: 0;
}

.footer-legal a {
    color: var(--color-text-light);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--color-accent);
}

/* ── Stats (legacy alias) ── */

.stats-bar {
    padding: 0 0 3rem;
}

/* ── Sections ── */

.section {
    padding: 6rem 0;
    position: relative;
}

.section-muted {
    background: var(--color-bg-muted);
}

.section-dark {
    background: #000000;
    color: var(--color-white);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: -15%;
    z-index: 0;
    background-color: #000000;
    background-image: var(--tex-dark-marble-veined);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: contrast(1.15) brightness(0.92);
    pointer-events: none;
}

.section-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 50% at 50% 0%, rgba(201, 162, 78, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.section-dark .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    background: var(--gradient-gold);
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

.section-header p:last-child {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

.section-header-light p:last-child {
    color: rgba(255, 255, 255, 0.65);
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ── Cards ── */

.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 162, 78, 0.2);
}

/* ── Stone-textured cards (CSS procedural texture) ── */

.card.card-stone {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: none;
    outline: none;
    background-color: #e6e3de;
    background-image: var(--stone-card-texture);
    background-size:
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        96px 96px,
        168px 168px;
    background-position: center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
    background-blend-mode:
        soft-light,
        multiply,
        multiply,
        soft-light,
        multiply,
        overlay;
    box-shadow: var(--shadow-md);
}

.card-stone::before,
.card-stone::after {
    display: none;
}

.card-stone > * {
    position: relative;
    z-index: 1;
}

.card-stone .card-icon-wrap {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(160, 155, 148, 0.22);
    color: var(--color-accent);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-stone h3,
.card-feature.card-stone h3 {
    color: #141414;
}

.card-stone p,
.card-feature.card-stone p {
    color: #3d3a37;
}

.card-stone:hover {
    box-shadow: var(--shadow-lg);
}

.card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    background: rgba(201, 162, 78, 0.1);
    border: 1px solid rgba(201, 162, 78, 0.2);
    border-radius: var(--radius);
    color: var(--color-accent);
}

.card-icon-wrap svg {
    width: 1.375rem;
    height: 1.375rem;
}

.card-feature .card-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-feature h3 {
    margin-bottom: 0.75rem;
}

.card-feature p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap 0.3s var(--ease-out-expo), color 0.3s;
}

.card-link:hover {
    color: var(--color-accent-hover);
    gap: 0.625rem;
}

.card-service h3 {
    margin-bottom: 0.5rem;
}

.card-service p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

.section-dark .card {
    background: var(--color-bg-dark-2);
    border-color: rgba(255, 255, 255, 0.08);
}

.card-edge {
    text-align: center;
}

.edge-profile-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.5rem;
    margin: 0 auto 1.5rem;
    padding: 0.5rem;
}

.edge-profile-figure img {
    width: auto;
    max-width: 7.5rem;
    height: auto;
    max-height: 4.5rem;
    margin: 0 auto;
    object-fit: contain;
}

.card-edge h3 {
    margin-bottom: 0.625rem;
    color: var(--color-accent);
}

.card-edge p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.9375rem;
}

/* ── Materials preview ── */

.materials-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.material-tile {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s;
}

.material-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    z-index: 2;
    transition: border-color 0.4s;
    pointer-events: none;
}

.material-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.material-tile:hover::before {
    border-color: rgba(201, 162, 78, 0.5);
}

.material-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out-expo);
}

.material-tile:hover img {
    transform: scale(1.1);
}

.material-tile span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transform: translateY(0);
    transition: transform 0.4s var(--ease-out-expo);
}

.material-tile:hover span {
    transform: translateY(-4px);
}

/* ── Process steps ── */

.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.process-steps li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    opacity: 0.7;
}

.process-steps h3 {
    margin-bottom: 0.5rem;
}

.process-steps p {
    color: var(--color-text-muted);
    margin: 0;
}

/* ── Gallery ── */

.gallery-grid {
    display: grid;
    gap: 1.75rem;
}

.gallery-grid-preview,
.gallery-grid-full {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 280px;
    cursor: pointer;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out-expo);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--color-white);
    transform: translateY(0.5rem);
    opacity: 0.85;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.4s;
}

.gallery-item:hover figcaption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item figcaption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
}

.gallery-item figcaption span {
    font-size: 0.8125rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 2rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ── Page breadcrumb ── */

.page-breadcrumb {
    margin-bottom: 1.25rem;
}

.page-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.page-breadcrumb-list li + li::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--color-text-light);
}

.page-breadcrumb-list a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.page-breadcrumb-list a:hover {
    color: var(--color-accent-hover);
}

.page-hero-compact {
    padding-bottom: 2.5rem;
}

.page-hero .page-breadcrumb-list {
    color: rgba(255, 255, 255, 0.72);
}

.page-hero .page-breadcrumb-list li[aria-current="page"] {
    color: var(--color-white);
}

.page-hero .page-breadcrumb-list li + li::before {
    color: rgba(255, 255, 255, 0.45);
}

.page-hero .page-breadcrumb-list a {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .page-breadcrumb-list a:hover {
    color: var(--color-accent-light);
}

.quartz-supplier-notice {
    margin: 1.75rem auto 0;
    max-width: 42rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.9375rem;
    color: var(--color-text);
    text-align: left;
    box-shadow: var(--shadow-md);
}

.quartz-supplier-notice p {
    margin: 0;
}

.quartz-supplier-notice p + p {
    margin-top: 0.75rem;
}

.quartz-supplier-notice a {
    color: #8a6a1f;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.quartz-supplier-notice a:hover {
    color: var(--color-accent-hover);
}

.quartz-supplier-disclaimer {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #3d3b38;
}

/* ── Quartz color catalog ── */

.kasa-quartz-count {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0 0 2rem;
}

.kasa-quartz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.kasa-quartz-card {
    margin: 0;
}

.kasa-quartz-card-trigger {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s, border-color 0.35s;
    box-shadow: var(--shadow-sm);
}

.kasa-quartz-card-trigger:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 162, 78, 0.35);
}

.kasa-quartz-card-trigger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.kasa-quartz-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-muted);
}

.kasa-quartz-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.kasa-quartz-card-trigger:hover .kasa-quartz-card-media img {
    transform: scale(1.06);
}

.kasa-quartz-card-code {
    display: block;
    padding: 0.875rem 1rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text);
}

.kasa-quartz-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg-muted);
    color: var(--color-text-muted);
}

.kasa-quartz-empty a {
    color: var(--color-accent-hover);
    font-weight: 600;
}

body.kasa-lightbox-open {
    overflow: hidden;
}

.kasa-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.kasa-lightbox[hidden] {
    display: none;
}

.kasa-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(6px);
}

.kasa-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(56rem, 100%);
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.kasa-lightbox-close {
    position: absolute;
    top: -0.25rem;
    right: 0;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.kasa-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.kasa-lightbox-title {
    margin: 0;
    padding-right: 3rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-white);
    text-transform: uppercase;
}

.kasa-lightbox-stage {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.kasa-lightbox-figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: min(72vh, 40rem);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.kasa-lightbox-image {
    max-width: 100%;
    max-height: min(72vh, 40rem);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.2s;
}

.kasa-lightbox-nav {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.kasa-lightbox-nav:hover:not(:disabled) {
    background: rgba(201, 162, 78, 0.35);
    border-color: var(--color-accent);
}

.kasa-lightbox-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.kasa-lightbox-counter {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.08em;
}

/* ── Split sections ── */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-reverse .split-content {
    order: 2;
}

.split-reverse .split-media {
    order: 1;
}

.split-media img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s;
}

.split-media:hover img {
    transform: scale(1.02);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.split-content p {
    color: var(--color-text);
}

.feature-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    color: var(--color-text-muted);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.feature-list-light li {
    color: rgba(255, 255, 255, 0.75);
}

.section-dark .split-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Material detail ── */

.material-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.material-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.material-detail-reverse .material-detail-image {
    order: 2;
}

.material-detail-reverse .material-detail-content {
    order: 1;
}

.material-detail-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.material-specs {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.material-specs div {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.material-specs dt {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.material-cta {
    margin-top: 1.5rem;
}

.material-specs dd {
    margin: 0;
    color: var(--color-text-muted);
}

/* ── Values banner ── */

.values-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
    padding: 3rem;
    background: var(--color-bg-dark);
    color: var(--color-white);
    border-radius: var(--radius-lg);
}

.value {
    padding: 0 2rem;
}

.value:not(:first-child) {
    border-left: 1px solid var(--color-accent);
}

.value strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.value p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9375rem;
}

/* ── CTA banner ── */

.cta-banner {
    position: relative;
    background: var(--gradient-dark);
    color: var(--color-white);
    padding: 5rem 0;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 100% at 0% 50%, rgba(201, 162, 78, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(201, 162, 78, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-banner h2 {
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.cta-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Contact page ── */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.contact-details li {
    margin-bottom: 1.25rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-note {
    background: var(--color-bg-muted);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.contact-note h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.contact-note .feature-list {
    margin-bottom: 0;
}

.contact-form-wrap {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.4s var(--ease-out-expo);
}

.contact-form-wrap:focus-within {
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201, 162, 78, 0.2);
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 162, 78, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.contact-form input[type="file"] {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.field-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-error {
    display: block;
    color: #991b1b;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.form-errors {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* ── Footer ── */

.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
}

.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-contact-link {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color var(--transition);
}

a.footer-contact-link:hover {
    color: var(--color-accent);
}

.footer-contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    color: var(--color-accent);
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
}

/* ── Toast messages ── */

.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
}

.toast {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .card-grid-4,
    .materials-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem 1rem;
    }

    .stat-card strong {
        font-size: 1.75rem;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .stats-strip {
        margin-top: -3rem;
        padding: 0 0 0.5rem;
    }

    .hero-scroll {
        bottom: 8rem;
    }

    .section-after-stats {
        padding-top: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: calc(100dvh - var(--header-height));
        height: calc(100svh - var(--header-height));
        background: var(--color-bg-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.5rem;
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow: hidden;
        overscroll-behavior: contain;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    /* Short landscape viewports: allow scroll without a visible track */
    @media (max-height: 480px) {
        .nav-menu {
            overflow-y: auto;
            scrollbar-width: none;
        }

        .nav-menu::-webkit-scrollbar {
            display: none;
        }
    }

    .navbar-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar-links a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .site-logo {
        height: 2.75rem;
    }

    .site-logo-footer {
        height: 2.5rem;
        max-width: 220px;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

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

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

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

    .card-grid-3,
    .process-steps,
    .split-section,
    .material-detail,
    .contact-layout,
    .values-banner {
        grid-template-columns: 1fr;
    }

    .value {
        padding: 1.5rem 0;
    }

    .value:not(:first-child) {
        border-left: none;
        border-top: 1px solid var(--color-accent);
    }

    .split-reverse .split-content,
    .split-reverse .split-media,
    .material-detail-reverse .material-detail-image,
    .material-detail-reverse .material-detail-content {
        order: unset;
    }

    .gallery-grid-preview,
    .gallery-grid-full {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gallery-item {
        min-height: 240px;
        aspect-ratio: 16 / 10;
    }

    .kasa-quartz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .kasa-lightbox {
        padding: 1rem;
    }

    .kasa-lightbox-stage {
        position: relative;
        display: block;
    }

    .kasa-lightbox-nav {
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 2;
        width: 2.5rem;
        height: 2.5rem;
        margin: auto 0;
        background: rgba(8, 8, 8, 0.55);
        border-color: rgba(255, 255, 255, 0.28);
    }

    .kasa-lightbox-prev {
        left: 0.5rem;
    }

    .kasa-lightbox-next {
        right: 0.5rem;
    }

    .kasa-lightbox-figure {
        min-height: 180px;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-actions {
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card-grid-4,
    .materials-preview,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-scroll {
        display: none;
    }
}

/* ── Animations ── */

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroKenBurns {
    from { transform: scale(1.08); }
    to { transform: scale(1.14); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.toast-out {
    opacity: 0 !important;
    transform: translateX(1.5rem) !important;
    transition: opacity 0.4s, transform 0.4s !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-animate {
        opacity: 1;
        transform: none;
    }

    .hero-bg {
        animation: none;
    }
}
