:root {
    --ink: #17211f;
    --muted: #64706c;
    --paper: #f3f1eb;
    --white: #fffdf8;
    --line: #d9ddd6;
    --signal: #d9f04c;
    --teal: #175c59;
    --dark: #162522;
    --display: 'Space Grotesk', sans-serif;
    --body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    line-height: 1.6;
}

a { color: inherit; }

.page-width { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0;
    color: var(--white);
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 700; text-decoration: none; }
.brand span { display: grid; width: 32px; height: 32px; place-items: center; color: var(--ink); background: var(--signal); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.main-nav a { text-decoration: none; transition: color .2s ease; }
.main-nav a:hover { color: var(--signal); }
.main-nav .nav-cta { padding: 10px 14px; color: var(--ink); background: var(--signal); }
.main-nav .nav-cta:hover { color: var(--ink); background: #edff75; }
.nav-cta .icon-arrow { margin-left: 8px; }

.hero {
    position: relative;
    display: flex;
    min-height: 680px;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: url('hero.jpg') center/cover no-repeat;
}

.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 27, 24, .9), rgba(12, 27, 24, .48) 56%, rgba(12, 27, 24, .24)); }
.hero-content { position: relative; z-index: 1; padding: 70px 0 48px; }
.eyebrow { margin: 0 0 18px; color: var(--teal); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--signal); }
h1, h2, h3 { font-family: var(--display); }
h1 { max-width: 780px; margin: 0 0 24px; font-size: clamp(48px, 8vw, 94px); line-height: .98; letter-spacing: -.06em; }
h1 em, h2 em { color: var(--signal); font-style: normal; }
.hero-lead { max-width: 510px; margin: 0 0 34px; color: rgba(255, 253, 248, .8); font-size: 18px; }
.hero-slogan { margin: 0 0 18px; color: var(--white); font-family: var(--display); font-size: clamp(25px, 3vw, 38px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
.hero-slogan em { color: var(--signal); font-style: normal; }
.hero-service-area { max-width: 620px; margin: 0 0 18px; color: rgba(255, 253, 248, .72); font-size: 13px; }
.hero-note { position: absolute; right: max(24px, calc((100vw - 1160px) / 2)); bottom: 44px; z-index: 1; padding-left: 16px; border-left: 1px solid var(--signal); color: rgba(255, 253, 248, .7); font-size: 12px; line-height: 1.4; text-transform: uppercase; }
.hero-note strong { color: var(--white); font-weight: 600; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 0; padding: 15px 20px; font-family: var(--body); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button .icon-arrow { flex: 0 0 auto; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink); background: var(--signal); }
.button-primary:hover { background: #edff75; }
.button-dark { width: 100%; color: var(--white); background: var(--dark); }
.button-dark:hover { background: var(--teal); }

.section { padding: 120px 0; }
.services { background: var(--white); }
.section-heading { display: grid; grid-template-columns: 1fr 1.35fr; gap: 50px; align-items: end; margin-bottom: 58px; }
.section-heading .eyebrow { align-self: start; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.06em; }
.section-heading > p:last-child { max-width: 330px; margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { position: relative; min-height: 350px; padding: 30px; background: var(--white); transition: background .25s ease, transform .25s ease; }
.service-card:hover { z-index: 1; background: #edf2d8; transform: translateY(-6px); }
.service-card-featured { color: var(--white); background: var(--teal); }
.service-card-featured:hover { background: #1c6d69; }
.service-card-accent { background: #e7ecd2; }
.service-card-accent:hover { background: #dce7b5; }
.service-number { position: absolute; top: 28px; right: 30px; color: var(--muted); font-family: var(--display); font-size: 12px; }
.service-card-featured .service-number { color: rgba(255, 255, 255, .55); }
.service-icon { display: grid; width: 58px; height: 58px; margin: 52px 0 30px; color: var(--teal); place-items: center; }
.service-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.service-card-featured .service-icon { color: var(--signal); }
.service-card h3 { margin: 0 0 10px; font-size: 27px; letter-spacing: -.04em; }
.service-card p { max-width: 250px; min-height: 76px; margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.service-card-featured p { color: rgba(255, 255, 255, .72); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.icon-arrow { display: inline-block; width: 16px; height: 16px; overflow: visible; vertical-align: middle; fill: none; stroke: currentColor; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.5; }
.icon-arrow-down { transform: translateY(1px); }
.text-link .icon-arrow { transition: transform .2s ease; }
.text-link:hover .icon-arrow { transform: translate(3px, -3px); }
.service-card-featured .text-link { color: var(--signal); }

.about { color: var(--white); background: var(--dark); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: center; }
.about-stamp { display: grid; width: 270px; height: 270px; place-content: center; justify-items: center; border: 1px solid rgba(217, 240, 76, .45); border-radius: 50%; color: var(--signal); transform: rotate(-9deg); }
.about-stamp span { font-family: var(--display); font-size: 78px; font-weight: 700; line-height: .85; letter-spacing: -.12em; }
.about-stamp small { margin-top: 20px; font-size: 9px; letter-spacing: .18em; text-align: center; }
.about .eyebrow { color: var(--signal); }
.about h2 { margin-bottom: 28px; }
.about-copy > p:not(.eyebrow) { max-width: 580px; color: rgba(255, 255, 255, .68); }
.about-copy > p + p { margin-top: 16px; }
.facts { display: flex; gap: 44px; margin-top: 45px; }
.facts div { display: grid; gap: 4px; }
.facts strong { color: var(--signal); font-family: var(--display); font-size: 30px; }
.facts span { color: rgba(255, 255, 255, .62); font-size: 11px; text-transform: uppercase; }

.expertise { background: var(--paper); }
.expertise-heading { margin-bottom: 52px; }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.expertise-card { position: relative; min-height: 355px; padding: 34px; background: var(--white); }
.expertise-card-dark { color: var(--white); background: var(--teal); }
.expertise-card .service-number { top: 32px; right: 34px; }
.expertise-card-dark .service-number { color: rgba(255, 255, 255, .55); }
.expertise-card h3 { margin: 42px 0 20px; font-size: 32px; letter-spacing: -.05em; }
.expertise-card p { max-width: 500px; margin: 0; color: var(--muted); font-size: 15px; }
.expertise-card p + p { margin-top: 16px; }
.expertise-card-dark p { color: rgba(255, 255, 255, .74); }

.contact-section { background: var(--signal); }
.contact-grid { display: grid; grid-template-columns: 1fr; align-items: start; }
.contact-intro h2 { margin-bottom: 28px; }
.contact-intro-wide { max-width: 650px; }
.contact-intro > p:not(.eyebrow) { max-width: 520px; color: #4a562e; }
.contact-details { display: grid; gap: 5px; margin-top: 42px; font-family: var(--display); font-size: 18px; font-weight: 600; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.location { padding: 100px 0; background: var(--paper); }
.location-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: stretch; }
.location-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.location-copy h2 { margin-bottom: 28px; }
.location-copy address { margin-bottom: 24px; color: var(--muted); font-style: normal; }
#map { min-height: 390px; border: 1px solid var(--line); filter: saturate(.75); }
.site-footer { color: rgba(255, 255, 255, .65); background: var(--dark); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.footer-inner a { color: var(--signal); text-decoration: none; }

@media (max-width: 760px) {
    .page-width, .site-header { width: min(100% - 32px, 560px); }
    .site-header { padding: 18px 0; }
    .brand { gap: 7px; font-size: 16px; }
    .brand span { width: 28px; height: 28px; font-size: 10px; }
    .main-nav { gap: 14px; font-size: 12px; }
    .main-nav a:not(.nav-cta) { display: none; }
    .hero { min-height: 650px; }
    .hero-content { padding: 50px 0 36px; }
    h1 { max-width: 100%; font-size: clamp(40px, 14vw, 72px); overflow-wrap: anywhere; }
    .hero-lead { font-size: 16px; }
    .hero-note { right: 16px; bottom: 28px; }
    .section { padding: 76px 0; }
    .section-heading, .about-grid, .contact-grid, .location-grid { grid-template-columns: 1fr; gap: 34px; }
    .section-heading { margin-bottom: 36px; }
    .section-heading > p:last-child { margin: 0; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 290px; }
    .service-card p { min-height: 0; }
    .about-stamp { width: 190px; height: 190px; }
    .about-stamp span { font-size: 58px; }
    .facts { gap: 20px; margin-top: 32px; }
    .facts strong { font-size: 24px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .expertise-card { min-height: 0; padding: 26px 22px; }
    .expertise-card h3 { margin-top: 38px; }
    .location { padding: 76px 0; }
    #map { min-height: 300px; }
    .footer-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}