:root {
    --charcoal: #17140F;
    --charcoal-soft: #26221B;
    --cream: #FBF6EE;
    --stone: #EEE4D3;
    --copper: #B5622C;
    --copper-light: #DE9A5C;
    --forest: #333B29;
    --ink: #1D1911;
    --ink-soft: #635A49;
    --line: rgba(29, 25, 17, 0.12);
    --line-dark: rgba(251, 246, 238, 0.16);
    --shadow: 0 20px 50px -20px rgba(23, 20, 15, 0.35);
    --shadow-sm: 0 10px 26px -14px rgba(23, 20, 15, 0.28);
    --r: 10px;

    /* Theme tokens - Default Light */
    --bg-primary: var(--cream);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-soft);
    --card-bg: #ffffff;
    --border-color: var(--line);
    --bg-subtle: var(--stone);
    --header-bg-scrolled: rgba(251, 246, 238, 0.95);
    --header-text-scrolled: var(--ink);
    --shadow-dynamic: var(--shadow);
    --shadow-sm-dynamic: var(--shadow-sm);
}


/* Manual Dark Mode Override */
html[data-theme="dark"] {
    --bg-primary: var(--charcoal);
    --text-primary: var(--cream);
    --text-secondary: rgba(251, 246, 238, 0.7);
    --card-bg: var(--charcoal-soft);
    --border-color: var(--line-dark);
    --bg-subtle: var(--charcoal-soft);
    --header-bg-scrolled: rgba(23, 20, 15, 0.95);
    --header-text-scrolled: var(--cream);
    --shadow-dynamic: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    --shadow-sm-dynamic: 0 10px 26px -14px rgba(0, 0, 0, 0.5);
}

/* Manual Light Mode Override */
html[data-theme="light"] {
    --bg-primary: var(--cream);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-soft);
    --card-bg: #ffffff;
    --border-color: var(--line);
    --bg-subtle: var(--stone);
    --header-bg-scrolled: rgba(251, 246, 238, 0.95);
    --header-text-scrolled: var(--ink);
    --shadow-dynamic: var(--shadow);
    --shadow-sm-dynamic: var(--shadow-sm);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.01em;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

a {
    color: inherit;
}

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

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    position: relative;
}

::selection {
    background: var(--copper-light);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}

/* ---------- NAV ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 26px 0;
    transition: background .35s ease, padding .35s ease, box-shadow .35s ease, border-color .35s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm-dynamic);
}

nav.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    transition: color .35s;
}

header.scrolled .logo {
    color: var(--text-primary);
}

.logo-mark {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--copper-light);
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 38px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    transition: color .2s;
}

header.scrolled .nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--copper-light);
}

header.scrolled .nav-links a:hover {
    color: var(--copper-light);
}

.nav-cta {
    font-size: 13px;
    padding: 11px 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    transition: all .25s;
}

header.scrolled .nav-cta {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.nav-cta:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

header.scrolled .nav-cta:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ---------- NAV ACTIONS, TOGGLES & MOBILE DRAWER ---------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

header.scrolled .theme-toggle {
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

header.scrolled .theme-toggle:hover {
    background: var(--border-color);
}

.theme-toggle svg {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

/* Light mode defaults: show moon icon, hide sun icon */
html:not([data-theme="dark"]) .sun-icon {
    opacity: 0;
    transform: translateY(20px) rotate(45deg);
}

html:not([data-theme="dark"]) .moon-icon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Dark mode overrides: show sun icon, hide moon icon */
html[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

html[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: translateY(-20px) rotate(-45deg);
}

/* Hamburger button styling */
.menu-toggle {
    display: none;
    /* hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    padding: 0;
    z-index: 1001;
    /* Above mobile drawer */
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, background 0.35s ease;
}

header.scrolled .menu-toggle .bar {
    background: var(--text-primary);
}

/* Hamburger active/open states */
.menu-toggle[aria-expanded="true"] .bar-top {
    transform: translateY(7px) rotate(45deg);
    background: var(--text-primary) !important;
}

.menu-toggle[aria-expanded="true"] .bar-mid {
    opacity: 0;
    transform: scale(0.5);
}

.menu-toggle[aria-expanded="true"] .bar-bot {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--text-primary) !important;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-drawer.is-active {
    display: block;
    opacity: 1;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 13, 9, 0.4);
    backdrop-filter: blur(8px);
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 82%;
    max-width: 340px;
    background: var(--bg-primary);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.mobile-drawer.is-active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.drawer-header .logo {
    color: var(--text-primary);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.drawer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-links a {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.25s;
    font-weight: 400;
}

.drawer-links a:hover {
    color: var(--copper);
}

.drawer-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.drawer-contact-info {
    text-align: center;
}

.drawer-contact-info a {
    text-decoration: none;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('images/img15.jpeg') center/cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(15, 13, 9, 0.92) 0%, rgba(15, 13, 9, 0.35) 46%, rgba(15, 13, 9, 0.15) 68%, rgba(15, 13, 9, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 96px;
    color: #fff;
}

.eyebrow {
    font-size: 12px;
    color: var(--copper-light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--copper-light);
}

.hero h1 {
    font-size: clamp(42px, 6.4vw, 82px);
    line-height: 1.02;
    font-weight: 400;
    max-width: 15ch;
}

.hero h1 em {
    font-style: italic;
    font-weight: 300;
    color: var(--copper-light);
}

.hero p.lede {
    margin-top: 28px;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17.5px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    font-size: 14px;
    padding: 16px 30px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s ease, background .25s, color .25s, border-color .25s, box-shadow .25s;
}

.btn-primary {
    background: var(--copper);
    color: #fff;
    border: 1px solid var(--copper);
}

.btn-primary:hover {
    background: var(--copper-light);
    border-color: var(--copper-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(181, 98, 44, 0.55);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-dark {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-dark:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.scroll-cue {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.scroll-cue span {
    writing-mode: vertical-rl;
}

.scroll-cue .dot {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-cue .dot::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--copper-light);
    animation: scrollDown 2.2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -100%;
    }

    60% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

/* ---------- STATS ---------- */
.stats {
    background: var(--charcoal);
    color: var(--cream);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 44px 0;
    max-width: 760px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    border-left: 1px solid var(--line-dark);
    padding: 0 12px;
    min-width: 0;
}

.stat:first-child {
    border-left: none;
}

.stat .num {
    font-family: 'Fraunces', serif;
    font-size: clamp(22px, 6vw, 44px);
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.stat .num .unit {
    color: var(--copper-light);
    font-style: italic;
    font-weight: 300;
}

.stat .label {
    margin-top: 8px;
    font-size: clamp(9.5px, 2.4vw, 11.5px);
    line-height: 1.35;
    color: rgba(251, 246, 238, 0.6);
    letter-spacing: 0.03em;
}

/* ---------- SECTION HEADS ---------- */
.section-pad {
    padding: 130px 0;
}

.section-head {
    max-width: 660px;
    margin-bottom: 70px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head .mono {
    font-size: 16px;
    color: var(--copper);
    display: block;
    margin-bottom: 18px;
    font-weight: bold;
}

.section-head h2 {
    font-size: clamp(32px, 3.8vw, 46px);
    font-weight: 400;
    line-height: 1.1;
}

.section-head p {
    color: var(--text-secondary);
    margin-top: 18px;
    font-size: 16.5px;
    max-width: 56ch;
}

.section-head.center p {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- ABOUT / INTRO ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.about-frame {
    position: relative;
}

.about-frame::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -24px;
    right: 24px;
    bottom: 24px;
    background: var(--bg-subtle);
    border-radius: var(--r);
    z-index: 0;
    transition: background 0.3s ease;
}

.about-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--r);
    box-shadow: var(--shadow-dynamic);
    transition: box-shadow 0.3s ease;
}

.about-copy .mono {
    font-size: 16px;
    color: var(--copper);
    display: block;
    margin-bottom: 18px;
    font-weight: bold;
}

.about-copy h2 {
    font-size: clamp(30px, 3.4vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 26px;
}

.about-copy p {
    color: #111111;
    font-size: 18px;
    margin-bottom: 18px;
    max-width: 52ch;
}

html[data-theme="dark"] .about-copy p {
    color: #fff;
}

.about-sign {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 19px;
    color: var(--text-primary);
    transition: border-top 0.3s ease, color 0.3s ease;
}

.about-sign span {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-top: 6px;
    transition: color 0.3s ease;
}

/* ---------- SERVICES ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    aspect-ratio: 3/4.1;
    box-shadow: var(--shadow-sm-dynamic);
    transition: transform .35s ease, box-shadow .35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dynamic);
}

/* Dark mode specific enhancements for service cards */
html[data-theme="dark"] .service-card {
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .service-card:hover {
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--copper-light), 0 8px 24px -10px rgba(222, 154, 92, 0.2);
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 13, 9, 0.92) 0%, rgba(15, 13, 9, 0.25) 55%, rgba(15, 13, 9, 0.05) 100%);
}

.service-inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px 24px;
    color: #fff;
}

.service-inner .num {
    font-size: 11px;
    color: var(--copper-light);
    display: block;
    margin-bottom: 10px;
}

.service-inner h3 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #fff;
}

.service-inner p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ---------- GALLERY FILTER ---------- */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all .25s;
}

.filter-btn:hover {
    border-color: var(--copper-light);
    color: var(--copper-light);
}

.filter-btn.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}

/* ---------- GALLERY ---------- */
.gallery {
    column-count: 3;
    column-gap: 22px;
}

.g-item {
    break-inside: avoid;
    margin-bottom: 22px;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm-dynamic);
    transition: transform .3s ease, box-shadow .3s ease;
}

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

.g-item .g-img {
    overflow: hidden;
}

.g-item img {
    width: 100%;
    display: block;
    transition: transform .6s ease;
}

.g-item:hover img {
    transform: scale(1.05);
}

.g-caption {
    padding: 18px 20px 20px;
}

.g-caption .mono {
    font-size: 10px;
    color: var(--copper);
    display: block;
    margin-bottom: 6px;
}

.g-caption h3 {
    font-size: 17px;
    font-weight: 500;
}

.g-item.is-hidden {
    display: none;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-wrap {
    background: var(--bg-subtle);
    transition: background 0.3s ease;
}

.testimonials-container {
    position: relative;
    width: 100%;
}

.t-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-controls {
    display: none;
}

.t-card {
    background: var(--card-bg);
    border-radius: var(--r);
    padding: 38px 32px;
    box-shadow: var(--shadow-sm-dynamic);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.t-card .quote-mark {
    font-family: 'Fraunces', serif;
    font-size: 48px;
    color: var(--copper-light);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.t-card p.quote {
    font-size: 16.5px;
    color: var(--text-primary);
    font-family: 'Fraunces', serif;
    font-weight: 300;
    line-height: 1.5;
    flex-grow: 1;
}

.t-card .who {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
}

.t-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--copper);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 15px;
    flex: 0 0 auto;
}

.t-card .who .name {
    font-weight: 600;
    display: block;
    font-size: 14px;
}

.t-card .who .project {
    color: var(--text-secondary);
    font-size: 12.5px;
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--charcoal);
    color: var(--cream);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-media {
    position: relative;
    min-height: 560px;
}

.contact-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-copy {
    padding: 110px 64px;
}

.contact-copy .mono {
    font-size: 16px;
    color: var(--copper-light);
    font-weight: bold;
}

.contact-copy h2 {
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 400;
    color: #fff;
    max-width: 13ch;
    margin-top: 20px;
}

.contact-copy .lede {
    color: rgba(251, 246, 238, 0.68);
    margin-top: 20px;
    max-width: 42ch;
    font-size: 16px;
}

.contact-details {
    margin-top: 40px;
    display: grid;
    gap: 0;
}

.contact-row {
    display: flex;
    gap: 20px;
    align-items: baseline;
    border-top: 1px solid var(--line-dark);
    padding: 18px 0;
}

.contact-row .mono {
    font-size: 11px;
    color: var(--copper-light);
    width: 100px;
    flex: 0 0 auto;
}

.contact-row a,
.contact-row span {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
}

.contact-row a:hover {
    color: var(--copper-light);
}

/* ---------- CONTACT FORM & INPUTS ---------- */
.contact-form {
    display: grid;
    gap: 6px;
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 22px;
    width: 100%;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 18px;
    background: rgba(251, 246, 238, 0.04);
    border: 1px solid rgba(251, 246, 238, 0.14);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--charcoal);
    color: #fff;
}

/* Floating labels */
.form-group label {
    position: absolute;
    left: 18px;
    top: 15px;
    color: rgba(251, 246, 238, 0.45);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    font-size: 14.5px;
    transform-origin: left top;
}

/* Label moves up on focus or text input */
.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group select:focus~label,
.form-group select:valid~label {
    transform: translateY(-24px) scale(0.85);
    color: var(--copper-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--copper-light);
    background: rgba(251, 246, 238, 0.08);
}

/* Native validity validation styles */
.form-group input:user-invalid,
.form-group textarea:user-invalid,
.form-group select:user-invalid {
    border-color: #E85A5A;
}

.form-group input:user-invalid~.error-msg,
.form-group textarea:user-invalid~.error-msg,
.form-group select:user-invalid~.error-msg {
    opacity: 1;
    transform: translateY(0);
}

.error-msg {
    display: block;
    opacity: 0;
    transform: translateY(-4px);
    font-size: 11px;
    color: #E85A5A;
    margin-top: 4px;
    padding-left: 4px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-submit {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Success Toast */
.toast-msg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--charcoal-soft);
    color: var(--cream);
    padding: 16px 28px;
    border-radius: var(--r);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--copper-light);
    z-index: 10002;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    font-size: 14px;
    pointer-events: none;
    border: 1px solid var(--line-dark);
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    transition: background 0.3s ease, color 0.3s ease, border-top 0.3s ease;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.footer-wrap a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-wrap a:hover {
    color: var(--copper-light);
}

.footer-links {
    display: flex;
    gap: 26px;
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .g-item img,
    .service-card img {
        transition: none;
    }

    .scroll-cue .dot::after {
        animation: none;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {

    .nav-links,
    header .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-frame::before {
        display: none;
    }

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

    .gallery {
        column-count: 2;
    }

    .testimonials-container {
        overflow: hidden;
        padding: 10px 0 20px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .t-slider {
        display: flex;
        gap: 0;
        width: 100%;
        transform: translateX(0);
        will-change: transform;
    }

    .t-card {
        flex: 0 0 100%;
        width: 100%;
        box-shadow: none;
    }

    .slider-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }

    .slider-arrow {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: var(--shadow-sm-dynamic);
    }

    .slider-arrow:hover {
        background: var(--text-primary);
        color: var(--bg-primary);
        border-color: var(--text-primary);
    }

    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    .slider-dots {
        display: flex;
        gap: 8px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--border-color);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease;
    }

    .slider-dot.active {
        background: var(--copper-light);
        transform: scale(1.3);
    }

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

    .contact-media {
        min-height: 320px;
    }

    .contact-copy {
        padding: 70px 36px;
    }

    .section-pad {
        padding: 88px 0;
    }
}

@media (max-width: 620px) {
    .wrap {
        padding: 0 22px;
    }

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

    .gallery {
        column-count: 1;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .scroll-cue {
        display: none;
    }

    .stats-grid {
        gap: 4px;
        padding: 36px 0;
    }

    .stat {
        padding: 0 8px;
    }
}