/* ============================================
   2nines Marketing — Experiential Theme
   Brand: #232b2b #1f5039 #1a7549 #00bf63 #8be0b2 #c5f0d9
   ============================================ */

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

:root {
    --brand-dark: #232b2b;
    --brand-green-deep: #1f5039;
    --brand-green: #1a7549;
    --brand-green-bright: #00bf63;
    --brand-green-light: #8be0b2;
    --brand-green-pale: #c5f0d9;
    --black: #0a0a0a;
    --gray-900: #1a1a1a;
    --gray-700: #444;
    --gray-500: #777;
    --gray-300: #c4c4c4;
    --gray-100: #f5f5f5;
    --white: #fff;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1200px;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-green-bright);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    color: var(--black);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .section-title { margin-bottom: 0; }

/* --- Reveal Animation --- */
.reveal-wrap { /* container for reveal animations */ }

.reveal-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* --- Fade-up Animation --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.btn-primary {
    background: var(--brand-green-bright);
    color: var(--white);
    padding: 14px 32px;
}

.btn-primary:hover {
    background: var(--brand-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 191, 99, 0.3);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 14px 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

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

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-nav { padding: 10px 24px; font-size: 0.9rem; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.5s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Logo switching: show light on hero, dark when scrolled */
.logo-dark { display: none; }
.logo-light { display: block; }
.header.scrolled .logo-dark { display: block; }
.header.scrolled .logo-light { display: none; }

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

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    transition: color var(--transition);
}

.header.scrolled .nav-links a:not(.btn) {
    color: var(--gray-700);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-green-bright);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover { color: var(--white); }
.header.scrolled .nav-links a:not(.btn):hover { color: var(--brand-green); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header.scrolled .mobile-toggle span { background: var(--black); }

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Gradient background */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #1a3a2a 0%, #0d2818 40%, #132e1c 70%, #1f4a30 100%);
}

.hero-bg-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0, 191, 99, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 191, 99, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 224, 178, 0.08) 0%, transparent 40%);
}

.hero-bg-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
}

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



.hero-container {
    position: relative;
    z-index: 1;
    padding-top: 180px;
    padding-bottom: 120px;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 32px;
}

.hero-line {
    display: block;
}

/* --- Rotating Words --- */
.hero-rotating-wrap {
    position: relative;
    display: block;
    height: 1.5em;
    overflow: hidden;
}

.hero-rotating {
    display: block;
    position: relative;
    height: 100%;
}

.rotating-word {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    color: var(--brand-green-bright);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    padding-bottom: 0.15em;
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-word.exit-up {
    opacity: 0;
    transform: translateY(-100%);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--brand-green-bright), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Services --- */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 48px 36px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--white);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-green-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card {
    cursor: pointer;
}

.service-card:hover {
    border-color: rgba(0, 191, 99, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
}

.service-card:hover .service-card-cta {
    color: var(--brand-green-bright);
}

.service-card-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-top: 24px;
    transition: color var(--transition);
}

.service-card-cta svg {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card.expanded .service-card-cta svg {
    transform: rotate(180deg);
}

/* Expanded service card content */
.service-card-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    opacity: 0;
}

.service-card.expanded .service-card-expanded {
    max-height: 400px;
    opacity: 1;
}

.service-card-why {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card-why h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 10px;
}

.service-card-why p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.service-card-expanded .btn {
    margin-top: 20px;
}

.service-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--brand-green-pale);
    line-height: 1;
    display: block;
    margin-bottom: 24px;
}

.service-title-card {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--black);
}

.service-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--gray-700);
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-green-bright);
}

/* --- Case Study --- */
.case-study {
    padding: 100px 0;
}

.case-study-card {
    margin-top: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--brand-dark);
    color: var(--white);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.case-study-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.case-study-preview:hover {
    opacity: 0.95;
}

.case-study-preview:hover .case-study-toggle {
    color: var(--brand-green-bright);
}

.case-study-image {
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.case-study-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-study-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(35, 43, 43, 0.1) 0%, rgba(35, 43, 43, 0.3) 100%);
}

.case-study-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.case-study-type {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-green-bright);
}

.case-study-name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--white);
    line-height: 1.2;
    margin-top: 8px;
}

.case-study-narrative {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

.case-study-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study-result {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.case-study-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.case-study-toggle svg {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-study-card.expanded .case-study-toggle svg {
    transform: rotate(180deg);
}

.case-study-card.expanded .case-study-toggle-text {
    display: none;
}

/* Expanded section */
.case-study-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-study-card.expanded .case-study-expanded {
    max-height: 1600px;
}

.case-study-expanded-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-study-story h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--brand-green-bright);
    margin-bottom: 12px;
    margin-top: 32px;
}

.case-study-story h4:first-child {
    margin-top: 0;
}

.case-study-story p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.case-study-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-study-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-study-expanded-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex: 1;
    min-height: 200px;
}

.case-study-expanded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-stat {
    text-align: center;
    padding: 28px 16px;
    background: rgba(0, 191, 99, 0.06);
    border: 1px solid rgba(0, 191, 99, 0.12);
    border-radius: var(--radius-sm);
}

.case-stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--brand-green-bright);
    line-height: 1.1;
    margin-bottom: 6px;
}

.case-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

/* --- Process --- */
.process {
    padding: 100px 0;
    background: var(--gray-100);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

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

.process-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-green-bright);
}

.process-line {
    position: absolute;
    top: 5px;
    left: calc(50% + 6px);
    right: calc(-48px - 50% + 6px);
    height: 2px;
    background: var(--brand-green-pale);
}

.process-step:last-child .process-line { display: none; }

.process-step h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--black);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.about-content .section-title { margin-bottom: 40px; }
.about-content .reveal-wrap:has(.about-text) + .reveal-wrap:has(.about-text) { margin-top: 8px; }

.about-text {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* --- CTA Section --- */
.cta {
    position: relative;
    padding: 64px 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg-color {
    position: absolute;
    inset: 0;
    background: var(--brand-dark);
}

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

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

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: var(--white);
    line-height: 1.1;
}

.cta-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    margin-bottom: 40px;
}

.cta .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 191, 99, 0.4);
}

/* --- Contact --- */
.contact { padding: 100px 0; }

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title { margin-bottom: 24px; }

.contact-text {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
}

.contact-link:hover { color: var(--brand-green-bright); }
.contact-link svg { color: var(--brand-green-bright); }

.contact-form {
    background: var(--gray-100);
    padding: 44px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-green-bright);
    box-shadow: 0 0 0 3px rgba(0, 191, 99, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.footer {
    padding: 48px 0 24px;
    background: var(--brand-dark);
    color: var(--white);
}

.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer .logo-img { height: 48px; width: auto; }
.footer-tagline { color: var(--gray-500); font-size: 0.9rem; margin-top: 10px; }

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

.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    width: 100%;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p { font-size: 0.8rem; color: var(--gray-500); }

/* --- Contact Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}


.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(10, 10, 10, 0.92);
}

body.modal-active .header {
    visibility: hidden !important;
    z-index: 999 !important;
}

body.modal-active .hero,
body.modal-active .hero-content,
body.modal-active .hero-container,
body.modal-active .hero-bg {
    z-index: 0 !important;
    transform: none !important;
    will-change: auto !important;
}

.modal-content {
    position: relative;
    z-index: 10002;
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 560px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.modal-overlay.open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition);
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--black);
    margin-top: 4px;
}

.modal-sub {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 8px;
}

.modal-form .form-group { margin-bottom: 16px; }
.modal-form .form-group textarea { min-height: 100px; }

/* Service modal */
.service-modal-content { max-width: 520px; }

.service-modal-section {
    margin-top: 28px;
}

.service-modal-section h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 12px;
}

.service-modal-section p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.service-modal-list {
    list-style: none;
    padding: 0;
}

.service-modal-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-modal-list li:last-child { border-bottom: none; }

.service-modal-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-green-bright);
    flex-shrink: 0;
}

.service-modal-cohesion {
    margin-top: 28px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
    font-style: italic;
}

.service-modal-content .btn { margin-top: 24px; }

/* ============================================
   Responsive
   ============================================ */

/* --- 1024px: Tablet landscape --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .case-study-preview { grid-template-columns: 1fr; }
    .case-study-image { min-height: 320px; }
    .case-study-expanded-inner { grid-template-columns: 1fr; gap: 40px; }

    .process-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .process-line { display: none; }

    .about-container { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .about-image { max-width: 360px; margin: 0 auto; }

    .contact-container { grid-template-columns: 1fr; gap: 48px; }
    .footer-container { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { justify-content: flex-start; }
}

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

    /* Navigation: inline on mobile */
    .nav-links {
        gap: 12px;
    }
    .nav-links a:not(.btn) { font-size: 0.75rem; }
    .mobile-toggle { display: none; }

    /* Typography: mobile sizes — tighter, native feel */
    body { font-size: 0.875rem; }
    .section-title { font-size: 1.5rem; line-height: 1.15; }
    .section-tag { font-size: 0.7rem; margin-bottom: 8px; }

    /* Section padding */
    .services, .process, .about, .contact, .cta, .case-study { padding: 48px 0; }
    .section-header { margin-bottom: 32px; }

    /* Hero — keep title size, shrink everything else */
    .hero-container { padding-top: 110px; padding-bottom: 70px; padding-left: 32px; padding-right: 32px; }
    .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .hero-sub { font-size: 0.85rem; line-height: 1.6; }
    .hero-scroll-hint { display: none; }

    /* Buttons: compact, native feel */
    .btn { min-height: 38px; font-size: 0.78rem; padding: 8px 16px; border-radius: 20px; }
    .btn-primary { padding: 8px 18px; }
    .btn-ghost-light { padding: 8px 18px; }
    .btn-lg { padding: 8px 20px; font-size: 0.78rem; }
    .btn-nav { min-height: 38px; padding: 8px 14px; font-size: 0.78rem; }

    /* Service cards */
    .service-card { padding: 24px; width: 100%; max-width: none; }
    .services-grid { max-width: none; }
    .service-title-card { font-size: 1.1rem; }
    .service-desc { font-size: 0.85rem; }
    .service-list li { font-size: 0.8rem; }
    .service-card-cta { font-size: 0.8rem; }

    /* Case study */
    .case-study-preview { grid-template-columns: 1fr; }
    .case-study-image { min-height: 200px; }
    .case-study-info { padding: 20px; }
    .case-study-name { font-size: 1.25rem; }
    .case-study-narrative { font-size: 0.85rem; }
    .case-study-expanded-inner { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
    .case-study-story h4 { font-size: 0.95rem; }
    .case-study-story p { font-size: 0.85rem; }
    .case-stat { padding: 16px 10px; }
    .case-stat-number { font-size: 1.5rem; }
    .case-stat-label { font-size: 0.7rem; }
    .case-study-type { font-size: 0.7rem; }
    .case-study-result { font-size: 0.75rem; }
    .case-study-toggle { font-size: 0.75rem; }

    /* Process */
    .process-step { text-align: center; }
    .process-title { font-size: 1rem; }
    .process-desc { font-size: 0.85rem; }

    /* About */
    .about-text { font-size: 0.85rem; }
    .about-content .section-title { margin-bottom: 24px; }

    /* CTA */
    .cta { padding: 56px 0; }
    .cta-title { font-size: 1.5rem; }
    .cta-sub { font-size: 0.85rem; }

    /* Contact */
    .contact-text { font-size: 0.85rem; }
    .contact-info .section-title { margin-bottom: 16px; }

    /* Forms: single column, compact inputs */
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 20px; }
    .form-group input,
    .form-group textarea {
        min-height: 44px;
        font-size: 0.875rem;
        padding: 10px 14px;
    }
    .form-group label { font-size: 0.75rem; }
    .form-group { margin-bottom: 14px; }
    .form-group textarea { min-height: 100px; }

    /* Footer */
    .footer { padding: 40px 0 20px; }
    .footer-container { flex-direction: column; gap: 28px; }
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
    .footer-tagline { font-size: 0.8rem; }
    .footer-col h4 { font-size: 0.7rem; margin-bottom: 10px; }
    .footer-col a { font-size: 0.85rem; min-height: 40px; display: flex; align-items: center; margin-bottom: 4px; }
    .footer-bottom { padding-top: 20px; margin-top: 20px; }
    .footer-bottom p { font-size: 0.7rem; }

    /* Images: full width cover */
    .about-photo { width: 100%; object-fit: cover; }
    .case-study-image img { width: 100%; object-fit: cover; }
    .case-study-expanded-image img { width: 100%; object-fit: cover; }

    /* About image on mobile */
    .about-image { max-width: none; }
}

/* --- 480px: Small phone --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Hero: more breathing room on small phones */
    .hero-container { padding-left: 28px; padding-right: 28px; }
    .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .hero-actions .btn { min-height: 38px; font-size: 0.78rem; padding: 8px 16px; }
    .hero-title { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
    .section-title { font-size: 1.3rem; }

    /* Cards */
    .service-card { padding: 18px; }
    .case-study-info { padding: 18px; }
    .case-study-expanded-inner { padding: 18px; }
    .contact-form { padding: 18px; }

    /* Stats */
    .case-study-stats-grid { gap: 10px; }
    .case-stat { padding: 14px 8px; }
    .case-stat-number { font-size: 1.3rem; }

    /* Modal */
    .modal-content { padding: 20px; width: calc(100% - 32px); }
    .modal-title { font-size: 1.2rem; }
    .modal-sub { font-size: 0.8rem; }
    .modal-form .form-row { grid-template-columns: 1fr; }
}
