:root {
    --stone-green: #1F2E26;
    --stone-green-deep: #1A2620;
    --moss: #3A5A40;
    --ironstone: #7A4E2D;
    --ironstone-hover: #6a4327;
    --warm-stone: #F4F1E8;
    --off-white: #EDE9DE;
    --stone-grey: #6B6F6A;
    --stone-grey-soft: rgba(107, 111, 106, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background: var(--warm-stone);
    color: var(--stone-green);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.italic { font-style: italic; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 28px 0;
    transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s, opacity 0.4s ease, transform 0.4s ease;
}

.nav.scrolled {
    background: rgba(26, 38, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 0;
    border-bottom: 1px solid rgba(237, 233, 222, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--off-white);
    text-decoration: none;
}

.logo-mark {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    line-height: 1;
}

.logo-divider {
    width: 1px;
    height: 28px;
    background: rgba(237, 233, 222, 0.4);
}

.logo-text {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.4;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-links a:not(.btn) {
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--ironstone); }

.nav-links a:not(.btn).active { position: relative; }

.nav-links a:not(.btn).active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ironstone);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 60;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--off-white);
    margin: 6px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--stone-green-deep);
    z-index: 55;
    padding: 100px 32px 40px;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

.mobile-menu a {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.38s; }

.nav.menu-open {
    z-index: 60;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.mobile-menu a {
    color: var(--off-white);
    text-decoration: none;
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(237, 233, 222, 0.08);
}

.mobile-menu .btn {
    margin-top: 32px;
    align-self: stretch;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 18px 28px;
    border-bottom: none;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    background: var(--ironstone);
    color: var(--off-white);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--ironstone-hover);
    transform: translateY(-1px);
}

.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-outline {
    background: transparent;
    color: var(--stone-green);
    border: 1px solid var(--stone-grey-soft);
}

.btn-outline:hover {
    background: var(--stone-green);
    color: var(--off-white);
    border-color: var(--stone-green);
}

.btn-ghost {
    background: transparent;
    color: var(--off-white);
    border: 1px solid rgba(237, 233, 222, 0.25);
}

.btn-ghost:hover,
.btn-ghost:active,
.btn-ghost:focus-visible {
    background: var(--ironstone);
    color: var(--off-white);
    border-color: var(--ironstone);
}

/* ============ HERO (DARK) ============ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 140px;
    display: flex;
    align-items: center;
    color: var(--off-white);
    overflow: hidden;
    background: var(--stone-green);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(122, 78, 45, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(58, 90, 64, 0.4) 0%, transparent 55%),
        linear-gradient(135deg, #1F2E26 0%, #243930 50%, #1A2620 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(237, 233, 222, 0.03) 0, rgba(237, 233, 222, 0.03) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(90deg, rgba(237, 233, 222, 0.03) 0, rgba(237, 233, 222, 0.03) 1px, transparent 1px, transparent 60px);
    opacity: 0.6;
}

.hero-shape {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    opacity: 0.5;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    filter: grayscale(0.15) contrast(1.02) brightness(0.95);
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 15%,
        rgba(0,0,0,0.2) 28%,
        rgba(0,0,0,0.6) 42%,
        black 60%,
        black 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 15%,
        rgba(0,0,0,0.2) 28%,
        rgba(0,0,0,0.6) 42%,
        black 60%,
        black 100%
    );
}

.hero-shape::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--stone-green) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(31,46,38,0.4) 0%, transparent 18%, transparent 82%, rgba(31,46,38,0.4) 100%);
    pointer-events: none;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: 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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero .container {
    max-width: none;
    padding-left: 64px;
    padding-right: 64px;
    margin: 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 680px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--off-white);
    opacity: 0.7;
    margin-bottom: 24px;
}

.hero h1,
.hero .hero-headline {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-size: clamp(48px, 6vw, 84px);
    margin-bottom: 28px;
}

/* Visually hidden but available to screen readers and search engines */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.hero p {
    font-size: 17px;
    max-width: 580px;
    margin-bottom: 40px;
    opacity: 0.88;
    line-height: 1.65;
}

.hero-meta {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(237, 233, 222, 0.5);
    padding: 0 64px;
}

.hero-meta-line {
    height: 1px;
    flex: 1;
    background: rgba(237, 233, 222, 0.15);
    margin: 0 32px 6px;
}

/* ============ SECTION BASE ============ */
section { padding: 120px 0; }

.section-eyebrow {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ironstone);
    margin-bottom: 24px;
}

.section-title {
    text-align: center;
    font-size: clamp(36px, 4vw, 52px);
    max-width: 700px;
    margin: 0 auto 16px;
}

.section-divider {
    width: 40px;
    height: 2px;
    background: var(--ironstone);
    margin: 32px auto 0;
}

/* ============ SERVICES (LIGHT) ============ */
.services { background: var(--warm-stone); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 80px;
}

.service {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.service:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--stone-grey-soft);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--ironstone);
}

.service h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--stone-green);
}

.service p {
    font-size: 14px;
    color: var(--stone-grey);
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    margin-top: 72px;
}

/* ============ ABOUT (LIGHTER OFF-WHITE) ============ */
.about {
    background: var(--off-white);
    padding: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 580px;
}

.about-image {
    position: relative;
    background:
        radial-gradient(circle at 30% 40%, rgba(122, 78, 45, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #2D4237 0%, #1F2E26 100%);
    overflow: hidden;
}

.about-image svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.about-content {
    padding: 96px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content .eyebrow {
    color: var(--ironstone);
    opacity: 1;
}

.about-content h2 {
    font-size: clamp(34px, 3.5vw, 44px);
    margin-bottom: 28px;
}

.about-content p {
    font-size: 15px;
    color: var(--stone-grey);
    margin-bottom: 18px;
    max-width: 460px;
}

.about-signature {
    margin-top: 28px;
    margin-bottom: 32px;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 22px;
    color: var(--stone-green);
}

.about-signature small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone-grey);
    margin-top: 6px;
}

.about-content .btn {
    align-self: flex-start;
}

/* ============ PROCESS (WARM STONE) ============ */
.process { background: var(--warm-stone); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.process-step {
    position: relative;
    padding-top: 32px;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--stone-grey-soft);
}

.process-step::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 32px;
    height: 7px;
    background: var(--ironstone);
}

.process-num {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--ironstone);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.process-step h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--stone-green);
}

.process-step p {
    font-size: 14px;
    color: var(--stone-grey);
    line-height: 1.6;
}

/* ============ WORK (OFF-WHITE) ============ */
.work { background: var(--off-white); }

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 32px;
}

.work-header h2 {
    font-size: clamp(36px, 4vw, 48px);
}

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

.work-item {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--stone-green);
}

.work-item svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.work-item:hover svg { transform: scale(1.04); }

.work-item-label {
    position: absolute;
    left: 20px;
    bottom: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--off-white);
    opacity: 0.85;
    z-index: 2;
}

.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 46, 38, 0.6), transparent 55%);
    opacity: 0.7;
    transition: opacity 0.4s;
    z-index: 1;
}

.work-item:hover::after { opacity: 1; }

/* ============ TESTIMONIALS (WARM STONE) ============ */
.testimonials { background: var(--warm-stone); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 72px;
}

.testimonial {
    background: var(--off-white);
    padding: 40px 32px;
    position: relative;
    border-top: 2px solid var(--ironstone);
}

.testimonial-quote {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--stone-green);
    margin-bottom: 28px;
}

.testimonial-author {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stone-green);
    margin-bottom: 4px;
}

.testimonial-meta {
    font-size: 12px;
    color: var(--stone-grey);
}

/* ============ COMMITMENT (OFF-WHITE) ============ */
.commitment {
    background: var(--off-white);
    text-align: center;
}

.commitment-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.commitment-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    color: var(--ironstone);
}

.commitment-mark span {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
}

.commitment-rule {
    width: 32px;
    height: 1px;
    background: var(--ironstone);
    opacity: 0.6;
}

.commitment h2 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.25;
    color: var(--stone-green);
    margin-bottom: 28px;
}

.commitment p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--stone-grey);
    max-width: 620px;
    margin: 0 auto;
}

/* ============ CTA BANNER (DARK) ============ */
.cta-wrapper {
    position: relative;
    height: calc(100vh + 400px);
}

.cta {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--stone-green);
    color: var(--off-white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(58, 90, 64, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(122, 78, 45, 0.2) 0%, transparent 45%);
}

.cta-pine {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    opacity: 0.55;
    color: var(--moss);
}

.cta-pine svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cta-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 2;
}

.cta-text {
    flex: 1;
}

.cta-text .eyebrow { margin-bottom: 20px; }

.cta-text h2 {
    font-size: clamp(36px, 4vw, 56px);
    max-width: 620px;
    line-height: 1.1;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.cta-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(237, 233, 222, 0.04);
    border: 1px solid rgba(237, 233, 222, 0.15);
    color: var(--off-white);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    min-width: 280px;
}

.cta-action:hover {
    background: var(--ironstone);
    border-color: var(--ironstone);
    transform: translateY(-2px);
}

.cta-action svg {
    flex-shrink: 0;
    color: var(--ironstone);
    transition: color 0.25s ease;
}

.cta-action:hover svg { color: var(--off-white); }

.cta-action div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-action-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
}

.cta-action-value {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    line-height: 1.2;
}

.cta-inner .btn {
    flex-shrink: 0;
}

/* ============ FOOTER (DARKEST) ============ */
.footer {
    background: var(--stone-green-deep);
    color: var(--off-white);
    padding: 96px 0 32px;
    border-top: 1px solid rgba(237, 233, 222, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 56px;
}

.footer h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--off-white);
    opacity: 0.6;
    margin-bottom: 20px;
}

.footer-brand .logo { margin-bottom: 18px; }

.footer-tag {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

/* Ensure the hidden attribute wins over the flex/block display rules above */
[hidden] { display: none !important; }

.footer-socials a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--off-white);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.footer-socials a:hover { opacity: 1; }

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 10px; }

.footer-list a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-list a:hover {
    opacity: 1;
    color: var(--ironstone);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 12px;
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--ironstone);
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: var(--ironstone);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(237, 233, 222, 0.1);
    font-size: 12px;
    opacity: 0.55;
}

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

.footer-bottom a {
    color: var(--off-white);
    text-decoration: none;
}

/* ============ ANIMATIONS ============ */
@keyframes heroFade {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shapeFloat {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(-8px) scale(1.015); }
}

@keyframes heroShapeIn {
    from { opacity: 0; transform: translateX(20px) scale(1.04); }
    to { opacity: 0.5; transform: translateX(0) scale(1); }
}

@keyframes drawLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hero-content > * {
    opacity: 0;
    animation: heroFade 0.9s ease both;
}
.hero-content .visually-hidden { animation: none; }
.hero-content .eyebrow { animation-delay: 0.1s; }
.hero-content .hero-headline { animation-delay: 0.25s; }
.hero-content > p:not(.eyebrow):not(.hero-headline) { animation-delay: 0.45s; }
.hero-content .btn { animation-delay: 0.6s; }

.hero-shape {
    animation: heroShapeIn 1.6s ease 0.2s both, shapeFloat 18s ease-in-out 1.8s infinite;
}

.hero-meta {
    opacity: 0;
    animation: heroFade 0.9s ease 0.8s both;
}

.section-divider {
    transform-origin: center;
    transform: scaleX(0);
    transition: transform 0.8s ease;
}

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.in > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }

.reveal .section-divider,
.reveal.in .section-divider {
    transform: scaleX(1);
    transition-delay: 0.4s;
}

/* Smoother button arrow */
.btn { transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.btn:hover { box-shadow: 0 8px 24px rgba(122, 78, 45, 0.25); }

/* Service icon hover lift */
.service { transition: transform 0.3s ease; }
.service:hover { transform: translateY(-4px); }
.service-icon { transition: transform 0.4s ease, color 0.3s ease; }
.service:hover .service-icon { transform: scale(1.08); }

/* Process number hover */
.process-step::after { transition: width 0.3s ease; }
.process-step:hover::after { width: 56px; }

/* Testimonial lift */
.testimonial { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 46, 38, 0.08);
}

/* Work item gentler scale */
.work-item svg { transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-item-label {
    transform: translateY(8px);
    opacity: 0.6;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.work-item:hover .work-item-label {
    transform: translateY(0);
    opacity: 1;
}

/* Logo hover */
.logo { transition: opacity 0.2s ease; }
.logo:hover { opacity: 0.85; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal, .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
    .section-divider { transform: scaleX(1); }
}

/* ============ RESPONSIVE ============ */

/* Tablet landscape */
@media (max-width: 1100px) {
    .container { padding: 0 32px; }

    .hero .container { padding-left: 40px; padding-right: 40px; }
    .hero-meta { padding: 0 40px; }

    .services-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }
    .service { padding: 0 12px; }
    .service h3 { font-size: 11px; }
    .service p { font-size: 13px; }

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

    .about-content { padding: 80px 56px; }

    .footer-grid { gap: 40px; }
}

/* Tablet portrait */
@media (max-width: 880px) {
    .container { padding: 0 24px; }

    .nav { padding: 20px 0; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }

    .hero { min-height: 100vh; padding-top: 80px; padding-bottom: 80px; }
    .hero .container { padding-left: 24px; padding-right: 24px; }
    .hero-content { padding-top: 0; max-width: 100%; }
    .hero h1, .hero .hero-headline { font-size: clamp(40px, 9vw, 60px); line-height: 1.05; }
    .hero p { font-size: 16px; }
    .hero-meta { display: none; }
    .hero-shape { width: 85%; opacity: 0.4; }

    section { padding: 72px 0; }

    .section-title { font-size: clamp(30px, 5vw, 42px); }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 24px;
        margin-top: 56px;
    }
    .service { padding: 0 8px; }
    .service::after { display: none !important; }
    .service:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 320px; margin: 0 auto; }

    .about-grid { grid-template-columns: 1fr; }
    .about-image { min-height: 280px; }
    .about-content { padding: 56px 24px; }
    .about-content h2 { font-size: clamp(28px, 5vw, 38px); }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
        margin-top: 56px;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 56px;
    }
    .testimonial { padding: 32px 24px; }
    .testimonial-quote { font-size: 17px; }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 32px;
    }
    .cta-text h2 { margin: 0; }
    .cta-pine { display: none; }
    .cta-actions { width: 100%; align-items: stretch; }
    .cta-action {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        padding: 18px 24px;
    }
    .cta-action > div { min-width: 0; flex: 1; }
    .cta-action-value {
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer { padding: 64px 0 24px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
        margin-bottom: 40px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: left;
        align-items: flex-start;
    }
    .footer-bottom-links { gap: 24px; flex-wrap: wrap; }
}

/* Mobile */
@media (max-width: 600px) {
    .container { padding: 0 20px; }

    .nav { padding: 16px 0; }
    .nav.scrolled { padding: 12px 0; }

    .logo-text { font-size: 10px; letter-spacing: 0.16em; }
    .logo-mark { font-size: 28px; }
    .logo-divider { height: 24px; }

    .hero .container { padding-left: 20px; padding-right: 20px; }
    .hero-content { padding-top: 0; padding-bottom: 0; }
    .hero h1, .hero .hero-headline { font-size: clamp(36px, 10vw, 50px); margin-bottom: 20px; }
    .hero p { font-size: 15px; margin-bottom: 32px; }
    .hero-shape { display: none; }

    .mobile-menu { padding: 90px 24px 32px; }
    .mobile-menu a { font-size: 26px; padding: 12px 0; }

    section { padding: 56px 0; }

    .section-title { font-size: clamp(28px, 7vw, 36px); }
    .section-eyebrow { font-size: 10px; margin-bottom: 18px; }

    .services-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
    .service { padding: 0; }

    .about-content { padding: 48px 20px; }
    .about-content p { font-size: 14px; }
    .about-signature { font-size: 20px; }

    .process-grid { grid-template-columns: 1fr; gap: 32px; }

    .work-grid { grid-template-columns: 1fr; gap: 4px; }
    .work-item { aspect-ratio: 4 / 3; }

    .testimonial { padding: 28px 22px; }
    .testimonial-quote { font-size: 16px; margin-bottom: 24px; }

    .cta-text h2 { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.15; }

    .btn { padding: 13px 22px; font-size: 10px; letter-spacing: 0.16em; }

    .footer { padding: 48px 0 20px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        margin-bottom: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
    .footer-brand .logo { margin-bottom: 12px; }
    .footer-tag { margin-bottom: 16px; font-size: 10px; }
    .footer h4 { margin-bottom: 14px; font-size: 10px; }
    .footer-list li { margin-bottom: 8px; }
    .footer-list a { font-size: 13px; }
    .footer-contact-item { font-size: 13px; margin-bottom: 10px; }
    .footer-bottom { padding-top: 24px; font-size: 11px; }
    .footer-bottom-links { gap: 20px; }
}

/* Very small phones */
@media (max-width: 380px) {
    .container { padding: 0 16px; }
    .hero .container { padding-left: 16px; padding-right: 16px; }

    .logo-text { display: none; }
    .logo-divider { display: none; }

    .hero h1, .hero .hero-headline { font-size: 34px; }

    .btn { padding: 12px 18px; }
}

/* Prevent horizontal overflow on any device */
body { overflow-x: hidden; }

