*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0c0a08;
    --bg-secondary: #141110;
    --bg-card: #1a1614;
    --bg-card-hover: #221e1a;
    --text-primary: #ede8e3;
    --text-secondary: #9b918a;
    --text-muted: #8a7e78;
    --accent: #d4a043;
    --accent-dim: #c08c30;
    --accent-glow: rgba(212, 160, 67, 0.12);
    --accent-warm: #d4a843;
    --border: rgba(155, 145, 138, 0.12);
    --border-hover: rgba(155, 145, 138, 0.25);
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === TOPO BACKGROUND PATTERN === */
.topo-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M400 50c-80 30-180 80-220 180s-20 200 40 280 160 120 250 100 180-100 200-200-30-220-120-280S480 20 400 50z' fill='none' stroke='%23d4a043' stroke-width='1'/%3E%3Cpath d='M400 100c-60 25-140 65-170 145s-15 160 35 225 130 95 200 80 145-80 160-160-25-175-95-225S460 75 400 100z' fill='none' stroke='%23d4a043' stroke-width='1'/%3E%3Cpath d='M400 150c-45 20-105 50-125 110s-10 120 28 170 100 72 152 60 110-60 120-120-20-130-72-170S445 130 400 150z' fill='none' stroke='%23d4a043' stroke-width='1'/%3E%3Cpath d='M400 200c-30 14-70 36-82 76s-6 82 20 115 68 48 104 40 74-42 82-82-14-88-50-115S430 186 400 200z' fill='none' stroke='%23d4a043' stroke-width='1'/%3E%3Cpath d='M400 250c-15 8-38 20-44 42s-3 44 12 62 38 26 56 22 40-22 44-44-8-48-28-62S415 242 400 250z' fill='none' stroke='%23d4a043' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 800px 800px;
    animation: topoDrift 60s linear infinite;
}

@keyframes topoDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-100px, -80px) rotate(5deg); }
}

/* === GRAIN OVERLAY === */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    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)'/%3E%3C/svg%3E");
    background-size: 256px;
}

/* === NAV === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(12, 10, 8, 0.8);
    border-bottom: 1px solid var(--border);
    transition: transform 0.4s var(--ease-out);
}

nav.hidden { transform: translateY(-100%); }

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: clamp(152px, 18vw, 196px);
    height: 46px;
    padding: 2px 0 1px 4px;
    overflow: visible;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-logo img {
    display: block;
    width: auto;
    height: 34px;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    transform: scale(1.28);
    transform-origin: left center;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.16));
    transition: transform 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}

.nav-logo:hover img {
    transform: scale(1.31) translateY(-1px);
    filter: drop-shadow(0 6px 22px rgba(212, 160, 67, 0.16));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.25s var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(212, 160, 67, 0.06);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
}

.nav-cta:hover {
    background: var(--accent-dim) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: clamp(6rem, 12vh, 10rem) clamp(1.5rem, 6vw, 6rem);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

/* Hero parallax grid background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-grid-bg svg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    opacity: 0.035;
    will-change: transform;
}

@keyframes heroGlow {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.4s forwards;
}

.hero h1 em {
    font-style: italic;
    color: inherit;
}

.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 160, 67, 0.04);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* === STATS STRIP === */
.stats {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    min-width: 0;
    padding: 2.5rem clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background 0.3s var(--ease-out);
}

.stat:last-child { border-right: none; }
.stat:hover { background: var(--bg-secondary); }

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    overflow-wrap: anywhere;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* === SECTION SHARED === */
section {
    position: relative;
    z-index: 2;
}

.section-pad {
    padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 6vw, 6rem);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 700px;
    margin-bottom: 1rem;
}

.section-title em {
    font-style: italic;
    color: var(--accent);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* === PROCESS / HOW WE WORK === */
.process-section { background: var(--bg-secondary); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.process-step-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.process-step:hover .process-step-num {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.process-step-num svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.process-step h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.service-card {
    background: var(--bg-card);
    padding: clamp(2rem, 3vw, 3rem);
    transition: all 0.4s var(--ease-out);
    cursor: default;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover { background: var(--bg-card-hover); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* === ABOUT / VALUES === */
.about-section { background: var(--bg-secondary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.about-text .section-desc { margin-bottom: 2rem; }

.values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.value-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
    opacity: 0.3;
    flex-shrink: 0;
    width: 48px;
}

.value-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.value-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.about-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.about-visual-inner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 2rem;
}

.geo-art {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.geo-art svg { width: 100%; height: 100%; }

.geo-grid-line {
    stroke: var(--accent);
    stroke-width: 0.5;
    opacity: 0.2;
}

.geo-point {
    fill: var(--accent);
}

.geo-measure-line {
    stroke: var(--accent);
    stroke-width: 0.8;
    stroke-dasharray: 4 3;
    opacity: 0.4;
}

.geo-label {
    font-family: var(--font-body);
    font-size: 8px;
    fill: var(--accent);
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* === FAQ === */
.faq-list {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-item {
    background: var(--bg-card);
    transition: background 0.3s var(--ease-out);
}

.faq-item:hover { background: var(--bg-card-hover); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
    line-height: 1;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.open .faq-answer {
    max-height: none;
}

.faq-answer-inner {
    padding: 0 2rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* === REKRUTACJA === */
.career-wrap {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.career-copy {
    max-width: 560px;
}

.career-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.career-copy h3 em {
    color: var(--accent);
    font-style: italic;
}

.career-copy p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.career-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
}

.career-modal.open {
    display: block;
}

.career-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(10px);
}

.career-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 5vh auto;
    max-height: 90vh;
    overflow: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.career-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.career-modal-head span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.career-modal-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.career-modal-body {
    padding: 1.75rem 1.5rem 2rem;
}

.career-meta {
    color: var(--text-muted);
    margin-top: 0.35rem;
    margin-bottom: 1.5rem;
}

.career-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 1.5rem 0 0.75rem;
}

.career-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.career-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1rem;
    position: relative;
}

.career-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.career-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.career-actions .btn {
    flex: 1 1 220px;
    justify-content: center;
}

.career-form-wrap {
    margin-top: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
}

.career-form-wrap h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.career-form-wrap p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.career-form-wrap .form-group textarea {
    min-height: 132px;
}

.career-apply {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.cta-inner .section-label { justify-content: center; }

.cta-inner .section-title {
    margin: 0 auto 1rem;
    max-width: 100%;
}

.cta-inner .section-desc {
    margin: 0 auto 2.5rem;
    max-width: 100%;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === CONTACT === */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: 3rem;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.contact-card {
    min-width: 0;
    background: var(--bg-card);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.contact-card-map {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
}

.contact-card-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.6) brightness(0.7) contrast(1.2);
    transition: filter 0.4s;
}

.contact-card-map:hover iframe {
    filter: grayscale(0.3) brightness(0.8) contrast(1.1);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-row svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-row div {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-row a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-row a:hover { color: var(--accent); }

.contact-row strong {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

/* Contact form */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.contact-form-wrap {
    background: var(--bg-card);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--border);
}

.contact-form-wrap h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.form-submit:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}


/* === FOOTER === */
footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding: 2rem clamp(1.5rem, 6vw, 6rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.4rem;
    min-width: 0;
    list-style: none;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { max-height: 400px; aspect-ratio: auto; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .process-grid::before { display: none; }
}

@media (max-width: 1050px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid var(--border); }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(12, 10, 8, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        width: 100%;
    }

    .menu-toggle { display: flex; }
    .nav-logo { width: clamp(132px, 42vw, 168px); height: 40px; padding: 2px 0 1px 3px; }
    .nav-logo img { height: 30px; transform: scale(1.22); }
    .hero h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .career-wrap { flex-direction: column; align-items: flex-start; }
    .career-modal-dialog { margin: 3vh 1rem; max-height: 94vh; }
    .career-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; justify-content: center; }
    .process-grid { grid-template-columns: 1fr; }
    .career-modal-body { padding: 1.25rem 1rem 1.5rem; }
}
/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .topo-bg, .hero-badge::before, .geo-contour, .geo-point, .geo-measure-line, .geo-label { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero h1, .hero-sub, .hero-actions, .hero-badge { opacity: 1; transform: none; animation: none; }
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Contact, knowledge and keyboard refinements */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section[id] { scroll-margin-top: 90px; }
nav:focus-within { transform: none; }
.hero-call { display: inline-flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; padding: 0.6rem 0; color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; }
.hero-call span { color: var(--text-primary); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--border-hover); }
.hero-call:hover span { color: var(--accent); text-decoration-color: currentColor; }
.service-list a { color: var(--text-secondary); text-decoration-color: var(--border-hover); text-underline-offset: 3px; }
.service-list a:hover { color: var(--accent); }
.knowledge-section { background: var(--bg-secondary); }
.knowledge-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.knowledge-heading .section-desc { margin-bottom: 0; }
.text-link { color: var(--accent); text-decoration: none; font-size: 0.9rem; flex-shrink: 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.knowledge-list { border-top: 1px solid var(--border-hover); }
.knowledge-item { display: grid; grid-template-columns: minmax(120px, 0.5fr) minmax(0, 2fr) 24px; align-items: center; gap: 2rem; border-bottom: 1px solid var(--border-hover); padding: 1.7rem 0; color: var(--text-primary); text-decoration: none; }
.knowledge-topic { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.knowledge-item h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 400; margin-bottom: 0.35rem; }
.knowledge-item p { color: var(--text-secondary); font-size: 0.9rem; }
.knowledge-arrow { color: var(--accent); font-size: 1.4rem; transition: transform 0.2s; }
.knowledge-item:hover .knowledge-arrow { transform: translate(3px, -3px); }
.knowledge-item:hover h3 { color: var(--accent); }
.contact-card h3 { margin-bottom: 0.5rem; }
.office-note { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 1.25rem; }
.contact-card-map { display: grid; min-width: 0; width: 100%; min-height: 200px; aspect-ratio: auto; background: var(--bg-secondary); }
.contact-card > div, .contact-row div { min-width: 0; overflow-wrap: anywhere; }
.map-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; padding: 1.4rem 1rem; text-align: center; }
.map-place { font-family: var(--font-display); font-size: 1.2rem; }
.map-load { font: inherit; font-size: 0.82rem; color: var(--text-primary); background: transparent; border: 1px solid var(--border-hover); border-radius: 8px; padding: 0.6rem 1rem; cursor: pointer; }
.map-load:hover { border-color: var(--accent); color: var(--accent); }
.map-placeholder a { color: var(--accent); font-size: 0.8rem; text-underline-offset: 3px; }
.map-placeholder p { color: var(--text-muted); font-size: 0.72rem; line-height: 1.5; max-width: 28ch; }
.map-placeholder p a { font-size: inherit; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-group { min-width: 0; }
.form-group label span { font-size: 0.72rem; color: var(--text-muted); }
.form-group select { color-scheme: dark; }
.contact-method { border: 0; min-width: 0; }
.contact-method legend { font-size: 0.85rem; font-weight: 500; }
.form-help, .form-privacy { color: var(--text-secondary); font-size: 0.78rem; line-height: 1.65; margin: 0.35rem 0 1rem; }
.form-privacy a { color: var(--text-primary); text-underline-offset: 3px; }
.form-honeypot { display: none; }
.form-status { margin-top: 1rem; font-size: 0.88rem; overflow-wrap: anywhere; }
.form-status[data-state="error"] { color: #f0a09a; }
.form-status[data-state="success"] { color: var(--accent); }
.form-submit:disabled { cursor: wait; opacity: 0.7; transform: none; box-shadow: none; }
.footer-copy { overflow-wrap: anywhere; }
.footer-links a { display: inline-block; padding: 0.25rem 0; }
@media (max-width: 1050px) {
    .nav-links { max-height: calc(100dvh - 72px); overflow-y: auto; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; }
}
@media (max-width: 600px) {
    .stat { padding: 1.8rem 1rem; }
    .knowledge-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
    .knowledge-item { grid-template-columns: minmax(0, 1fr) 20px; gap: 0.6rem 1rem; }
    .knowledge-topic { grid-column: 1 / -1; }
    .form-row { grid-template-columns: 1fr; }
    .footer-links { gap: 0.5rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-content, #heroGridSvg { transform: none !important; opacity: 1 !important; }
}
