:root {
    --ink: #2b2a28;
    --ink-soft: #514f49;
    --fog: #eae7de;
    --paper: #f7f5ef;
    --paper-deep: #f1eee4;
    --moss: #46573c;
    --moss-deep: #384631;
    --ochre: #a8763a;
    --ochre-deep: #8f6330;
    --line: #d3cdbb;
    --line-soft: rgba(43, 42, 40, 0.12);
    --cream: #faf9f4;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ink-soft);
    background-color: var(--fog);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
}

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

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* SCROLL ANIMATION */
[data-animate] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
}

/* HEADER */
header {
    background: rgba(250, 249, 244, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 22px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    transition: var(--transition);
}

header.scrolled {
    padding: 14px 6%;
    box-shadow: 0 4px 24px -8px rgba(43, 42, 40, 0.12);
}

.wordmark {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.wordmark img {
    height: 18px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 34px;
    align-items: center;
}

nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--moss);
}

.nav-cta {
    background: var(--ink);
    color: var(--cream) !important;
    padding: 10px 22px;
    border-radius: 3px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--moss);
    color: var(--cream) !important;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--ink);
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--cream);
    padding: 80px 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(43, 42, 40, 0.1);
}

.mobile-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Fraunces', serif;
}

.mobile-nav.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 42, 40, 0.45);
    display: none;
    z-index: 1500;
}

.overlay.active {
    display: block;
}

/* HERO SECTION */
.hero {
    height: 82vh;
    min-height: 600px;
    position: relative;
    color: var(--cream);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 0 6% 90px;
    background-color: var(--ink);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 42, 40, 0.35) 0%, rgba(35, 38, 30, 0.55) 55%, rgba(28, 30, 24, 0.92) 100%);
    z-index: 2;
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
}

.hero-tag {
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--cream);
    margin-bottom: 20px;
}

.hero p {
    max-width: 540px;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: #d9d5c6;
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 36px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--ochre);
    color: var(--cream);
    padding: 15px 34px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--ochre-deep);
    transform: translateY(-2px);
}

/* SWING TAG (kraft-tag motif) */
.swing-tag {
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
    list-style: none;
}

.swing-tag-string {
    width: 20px;
    height: 1px;
    background: rgba(250, 249, 244, 0.5);
    transform: translateY(-9px) rotate(35deg);
}

.swing-tag-body {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    background: var(--cream);
    color: var(--ink);
    padding: 8px 16px 8px 12px;
    border-radius: 2px 10px 10px 2px;
    position: relative;
    box-shadow: 1px 2px 0 rgba(43, 42, 40, 0.25);
}

.swing-tag-body::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fog);
    box-shadow: inset 0 0 0 1px rgba(43, 42, 40, 0.3);
}

.swing-tag-body {
    padding-left: 20px;
}

/* SECTIONS */
section {
    padding: 110px 6%;
}

.section-header {
    max-width: 620px;
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.section-lede {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 520px;
}

/* TRUST METRICS */
.trust-section {
    background: var(--paper);
    padding: 64px 6% 76px;
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.tag-chip {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 28px 26px 24px 34px;
    box-shadow: 3px 3px 0 rgba(43, 42, 40, 0.06);
    transform: rotate(calc(var(--r, 0) * 1deg));
    transition: transform 0.35s ease;
}

.trust-grid .tag-chip:nth-child(1) { --r: -1; }
.trust-grid .tag-chip:nth-child(2) { --r: 0.8; }
.trust-grid .tag-chip:nth-child(3) { --r: -0.6; }

.tag-chip:hover {
    transform: rotate(0deg);
}

.tag-chip-hole {
    position: absolute;
    top: 20px;
    left: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fog);
    box-shadow: inset 0 0 0 1px var(--line);
}

.metric-val {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 500;
    color: var(--moss);
    line-height: 1.1;
    margin-bottom: 6px;
}

.tag-chip p {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
}

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

@media (max-width: 1150px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    background: var(--paper);
    padding: 42px 32px 34px 40px;
    border-radius: 3px;
    border: 1px solid var(--line);
    box-shadow: 3px 3px 0 rgba(43, 42, 40, 0.05);
    transform: rotate(calc(var(--r, 0) * 1deg));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.services-grid .service-card:nth-child(1) { --r: -1.1; }
.services-grid .service-card:nth-child(2) { --r: 0.9; }
.services-grid .service-card:nth-child(3) { --r: -0.7; }
.services-grid .service-card:nth-child(4) { --r: 1.2; }

.service-card:hover {
    transform: rotate(0deg) translateY(-3px);
    border-color: var(--moss);
    box-shadow: 4px 5px 0 rgba(43, 42, 40, 0.08);
}

.service-card .tag-chip-hole {
    top: 24px;
    left: 18px;
}

.card-code {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ochre-deep);
    margin-bottom: 22px;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* AREAS SERVED */
.areas-section {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
}

.area-tag {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 12px 22px 12px 30px;
    font-family: 'Fraunces', serif;
    font-size: 1.02rem;
    color: var(--ink);
    box-shadow: 3px 3px 0 rgba(43, 42, 40, 0.05);
    transform: rotate(calc(var(--r, 0) * 1deg));
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.areas-list .area-tag:nth-child(1) { --r: -1; }
.areas-list .area-tag:nth-child(2) { --r: 0.7; }
.areas-list .area-tag:nth-child(3) { --r: -0.5; }
.areas-list .area-tag:nth-child(4) { --r: 1; }
.areas-list .area-tag:nth-child(5) { --r: -0.8; }
.areas-list .area-tag:nth-child(6) { --r: 0.6; }

.area-tag:hover {
    transform: rotate(0deg);
    border-color: var(--moss);
}

.area-tag .tag-chip-hole {
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

/* ABOUT */
#about {
    background: var(--cream);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 70px;
    align-items: start;
}

.about-copy .section-title {
    margin-bottom: 26px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 54ch;
}

.about-tags {
    display: flex;
    flex-direction: column;
    gap: 22px;
    list-style: none;
    padding-top: 8px;
}

.about-tags .swing-tag-string {
    background: rgba(43, 42, 40, 0.25);
}

.about-tags .swing-tag-body {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 3px 3px 0 rgba(43, 42, 40, 0.06);
    font-size: 0.85rem;
    border: 1px solid var(--line);
}

.about-tags .swing-tag-body::before {
    background: var(--cream);
}

/* FAQ SECTION */
#faqs {
    background: var(--paper);
}

.faq-container {
    max-width: 780px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
}

.faq-question {
    font-size: 1.08rem;
    font-weight: 500;
    font-family: 'Fraunces', serif;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-mark {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cream);
    background: var(--moss);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-question > :not(.faq-mark):not(.faq-icon) {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    margin-left: auto;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--ink-soft);
    font-size: 0.98rem;
    padding-left: 38px;
}

.faq-item.active .faq-answer {
    max-height: 140px;
    margin-top: 14px;
}

.faq-icon::before {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ochre-deep);
}

.faq-item.active .faq-icon::before {
    content: '\2212';
}

/* CONTACT SECTION */
.contact-section {
    background: var(--ink);
    color: var(--cream);
}

.contact-section .section-title {
    color: var(--cream);
}

.contact-lede {
    color: #cfcabb;
    max-width: 480px;
}

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

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-text-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.or-divider {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #a7a291;
    letter-spacing: 0.03em;
}

.info-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.channel-box {
    position: relative;
    background: rgba(250, 249, 244, 0.06);
    padding: 22px 24px 22px 34px;
    border-radius: 3px;
    border: 1px solid rgba(250, 249, 244, 0.18);
}

.channel-box .tag-chip-hole {
    top: 22px;
    left: 16px;
    background: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(250, 249, 244, 0.3);
}

.channel-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a7a291;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.channel-box a {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--cream);
    text-decoration: none;
    font-family: 'Fraunces', serif;
    word-break: break-all;
}

.channel-box a:hover {
    color: var(--ochre);
}

/* FORM FIELD STYLING */
.contact-form-card {
    position: relative;
    background: var(--cream);
    padding: 44px 42px;
    border-radius: 3px;
    box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.2);
}

.tag-chip-hole--form {
    top: 26px;
    left: 22px;
    background: var(--ink);
}

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

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 2px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(70, 87, 60, 0.12);
}

/* DROP-DOWN CHEVRON */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 45px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2a28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 15px;
}

.form-group select::-ms-expand {
    display: none;
}

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

.contact-form-card .btn {
    background: var(--moss);
}

.contact-form-card .btn:hover {
    background: var(--moss-deep);
}

/* FOOTER */
footer {
    background: var(--ink);
    color: #a7a291;
    padding: 40px 6%;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(250, 249, 244, 0.1);
}

.footer-mark {
    height: 14px;
    width: auto;
    opacity: 0.85;
}

.footer-meta {
    text-align: right;
}

.footer-sub {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 968px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .about-tags {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

@media (max-width: 768px) {
    nav { display: none; }
    .menu-btn { display: block; }
    header { padding: 16px 6%; }
    section { padding: 76px 6%; }
    .hero { padding: 0 6% 60px; text-align: left; }
    .btn { width: 100%; text-align: center; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
    footer { flex-direction: column; text-align: center; gap: 14px; }
    .footer-meta { text-align: center; }
}
