/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal-900: #0D4F4F;
    --teal-800: #1A6B6B;
    --teal-700: #238282;
    --teal-600: #2DA0A0;
    --teal-500: #5FBDBF;
    --teal-400: #8ECCCC;
    --teal-100: #D4EDEE;
    --teal-50:  #EAF6F6;
    
    --slate-950: #0A0F0F;
    --slate-900: #111818;
    --slate-800: #1A2323;
    --slate-700: #2C3838;
    --slate-600: #4A5A5A;
    --slate-500: #6B7F7F;
    --slate-400: #95A5A5;
    --slate-300: #B8C4C4;
    --slate-200: #D4DCDC;
    --slate-100: #E8EEEE;
    --slate-50:  #F4F7F7;
    
    --white: #FFFFFF;
    --off-white: #FAFCFC;
    
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --line-thin: 1px solid var(--slate-200);
    --line-medium: 1px solid var(--slate-300);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--teal-900);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 16px;
}

/* ─── Header ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--line-thin);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 0 var(--slate-200);
}

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

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    letter-spacing: 0.04em;
    color: var(--teal-900);
    font-style: italic;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.main-nav a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate-600);
    transition: color var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-600);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--teal-800);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--teal-900) !important;
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em;
    transition: background var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--teal-800) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--slate-700);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    padding-top: 72px;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 60px 0;
}

.hero-content {
    padding-right: 24px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--slate-900);
    margin-bottom: 28px;
}

.hero-headline em {
    font-style: italic;
    color: var(--teal-700);
}

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--slate-500);
    max-width: 440px;
    margin-bottom: 40px;
    font-weight: 300;
}

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

.hero-image-col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-image {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover img {
    transform: scale(1.03);
}

.hero-image--main {
    aspect-ratio: 600 / 780;
}

.hero-image--accent {
    aspect-ratio: 400 / 280;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--teal-800);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--slate-300);
    flex-shrink: 0;
}

.hero-scroll-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--slate-300), transparent);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-900);
    color: var(--white);
    border-color: var(--teal-900);
}

.btn-primary:hover {
    background: var(--teal-800);
    border-color: var(--teal-800);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-700);
    border-color: var(--slate-300);
}

.btn-ghost:hover {
    border-color: var(--teal-600);
    color: var(--teal-800);
}

.btn-white {
    background: var(--white);
    color: var(--teal-900);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--teal-50);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-ghost-dark {
    background: transparent;
    color: var(--slate-600);
    border-color: var(--slate-300);
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-ghost-dark:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
}

.btn-full {
    width: 100%;
}

/* ─── Section shared ─── */
.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: 20px;
}

/* ─── Services ─── */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 64px;
    background: var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    transition: background var(--transition);
}

.service-card:hover {
    background: var(--teal-50);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--teal-700);
}

.service-name {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--slate-500);
    font-weight: 300;
}

/* ─── About ─── */
.about {
    padding: 120px 0;
    background: var(--slate-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 580px 1fr;
    gap: 64px;
    align-items: start;
}

.about-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.about-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--slate-600);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.value-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: var(--line-thin);
}

.value-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate-700);
    letter-spacing: 0.02em;
}

.value-line {
    width: 40px;
    height: 1px;
    background: var(--teal-400);
}

/* ─── Work ─── */
.work {
    padding: 120px 0;
    background: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 64px;
}

.work-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
    cursor: default;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.work-item--large {
    grid-row: span 2;
}

.work-item--large img {
    height: 100%;
    min-height: 520px;
}

.work-item--wide {
    grid-column: span 2;
}

.work-item--wide img {
    height: 300px;
}

.work-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(13, 79, 79, 0.85), transparent);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* ─── CTA Strip ─── */
.cta-strip {
    padding: 100px 0;
    background: var(--teal-900);
}

.cta-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 20px;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    color: var(--teal-300);
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Contact ─── */
.contact {
    padding: 120px 0;
    background: var(--off-white);
}

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

.contact-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--slate-500);
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-top: var(--line-thin);
    gap: 24px;
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-400);
    flex-shrink: 0;
}

.contact-detail-value {
    font-size: 0.9375rem;
    color: var(--slate-700);
    text-align: right;
    line-height: 1.6;
}

.contact-detail-value a {
    color: var(--teal-700);
    transition: color var(--transition);
}

.contact-detail-value a:hover {
    color: var(--teal-900);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--slate-200);
}

.contact-form-col {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 1px 3px rgba(13, 79, 79, 0.06), 0 8px 24px rgba(13, 79, 79, 0.04);
}

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

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    background: var(--white);
}

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

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

.form-note {
    font-size: 0.8125rem;
    color: var(--slate-400);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--teal-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--teal-700);
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    margin-bottom: 24px;
}

/* ─── Footer ─── */
.site-footer {
    background: var(--slate-900);
    padding: 64px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand .logo-mark {
    color: var(--white);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 300;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--slate-400);
    letter-spacing: 0.04em;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-phone {
    font-size: 1rem;
    color: var(--teal-400);
    font-weight: 400;
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--teal-300);
}

.footer-address {
    font-size: 0.8125rem;
    color: var(--slate-500);
    font-weight: 300;
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--slate-600);
    letter-spacing: 0.04em;
}

/* ─── Scroll reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* ─── Mobile Nav Overlay ─── */
.main-nav.mobile-open {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99;
    padding: 40px 24px;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.mobile-open ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.main-nav.mobile-open li {
    border-bottom: var(--line-thin);
}

.main-nav.mobile-open a {
    display: block;
    padding: 20px 0;
    font-size: 1rem;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content {
        padding-right: 0;
        order: 1;
    }

    .hero-image-col {
        order: 2;
        max-width: 500px;
    }

    .hero-image--main {
        aspect-ratio: 4 / 5;
    }

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

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

    .about-image-col {
        max-width: 500px;
    }

    .contact-grid {
        gap: 48px;
    }
}

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

    .main-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 60px;
    }

    .hero-grid {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .services-grid {
        grid-template-columns: 1fr;
        margin-top: 48px;
    }

    .service-card {
        padding: 28px 24px;
    }

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

    .work-item--large {
        grid-row: span 1;
    }

    .work-item--large img {
        min-height: 300px;
    }

    .work-item--wide {
        grid-column: span 1;
    }

    .work-item--wide img {
        height: 240px;
    }

    .cta-strip {
        padding: 80px 0;
    }

    .contact {
        padding: 80px 0;
    }

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

    .contact-form-col {
        padding: 32px 24px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.6875rem;
    }
}

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

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

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}
