/* ==================== DESIGN TOKENS ==================== */
:root {
    --ink: #0b0f0e;
    --paper: #f5f2eb;
    --paper-warm: #f0ece3;
    --accent: #1a5c38;
    --accent-light: #27a35a;
    --accent-glow: rgba(39, 163, 90, 0.15);
    --muted: #6b6e6c;
    --muted-light: #999b99;
    --border: #ddd9cf;
    --border-light: #eae6dc;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(11, 15, 14, 0.04);
    --shadow-md: 0 8px 30px rgba(11, 15, 14, 0.07);
    --shadow-lg: 0 20px 60px rgba(11, 15, 14, 0.1);
    --shadow-xl: 0 30px 80px rgba(11, 15, 14, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed;
    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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}
::selection { background: var(--accent); color: var(--white); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }

/* ==================== NAVIGATION ==================== */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(245, 242, 235, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 20px rgba(11, 15, 14, 0.04); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.logo {
    font-family: 'Playfair Display', serif; font-size: 1.6rem;
    letter-spacing: -0.03em; color: var(--ink); text-decoration: none; font-weight: 500;
}
.logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--muted); font-size: 0.86rem;
    font-weight: 500; letter-spacing: 0.01em; transition: color 0.25s ease; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
    height: 1.5px; background: var(--accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
    background: var(--ink); color: var(--paper); padding: 12px 28px;
    text-decoration: none; font-size: 0.84rem; font-weight: 500;
    letter-spacing: 0.02em; border: 1px solid var(--ink);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta:hover {
    background: var(--accent); border-color: var(--accent);
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 92, 56, 0.2);
}
/* Mobile Menu */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 110; position: relative;
}
.mobile-menu-btn span {
    display: block; width: 24px; height: 2px; background: var(--ink);
    margin: 6px 0; transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 7px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -7px); }
.mobile-menu {
    display: none; position: fixed; inset: 0; background: var(--paper);
    z-index: 105; flex-direction: column; justify-content: center;
    align-items: center; gap: 8px; opacity: 0; transition: opacity 0.4s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
    text-decoration: none; color: var(--ink); font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 400; padding: 12px 0;
    opacity: 0; transform: translateY(20px); transition: all 0.4s ease;
    transition-delay: var(--delay, 0s);
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: var(--accent); }

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: var(--ink); color: var(--paper); padding: 18px 40px;
    text-decoration: none; font-size: 0.88rem; font-weight: 500;
    letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 12px;
    border: 1px solid var(--ink); position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 0;
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover {
    border-color: var(--accent); transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(26, 92, 56, 0.2);
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary {
    background: transparent; color: var(--ink); padding: 18px 40px;
    text-decoration: none; font-size: 0.88rem; font-weight: 500;
    letter-spacing: 0.02em; border: 1px solid var(--border);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary:hover {
    border-color: var(--ink); background: var(--ink); color: var(--paper);
    transform: translateY(-3px);
}

/* ==================== SECTION COMMONS ==================== */
.section-header {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    margin-bottom: 80px; align-items: end;
}
.section-label {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 20px; height: 1.5px; background: currentColor; }
.section-title {
    font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    line-height: 1.12; letter-spacing: -0.02em; font-weight: 400;
}
.section-description { color: var(--muted); font-size: 1.05rem; max-width: 480px; line-height: 1.7; }
.page-hero {
    padding: 160px 0 100px; position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 50%, var(--white) 100%);
}
.page-hero .section-title { margin-bottom: 20px; }
.page-hero .section-description { max-width: 600px; }

/* ==================== CREDENTIALS BAR ==================== */
.credentials {
    padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--white); position: relative; overflow: hidden;
}
.credentials-track {
    display: flex; gap: 64px; align-items: center;
    animation: scrollCredentials 25s linear infinite; width: max-content;
}
@keyframes scrollCredentials { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.credential-item {
    display: flex; align-items: center; gap: 16px; flex-shrink: 0;
    opacity: 0.65; transition: opacity 0.3s ease;
}
.credential-item:hover { opacity: 1; }
.credential-icon {
    width: 48px; height: 48px; background: var(--paper); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
    font-weight: 600; color: var(--accent); border: 1px solid var(--border-light);
}
.credential-text { font-size: 0.84rem; color: var(--muted); white-space: nowrap; }
.credential-text strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.88rem; }

/* ==================== STAT CARDS ==================== */
.stat-card {
    background: var(--white); padding: 30px 26px; border: 1px solid var(--border-light);
    position: relative; overflow: hidden;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--accent); transform: scaleY(0); transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stat-card:hover::before { transform: scaleY(1); }
.stat-number {
    font-family: 'Playfair Display', serif; font-size: 2.6rem;
    letter-spacing: -0.02em; color: var(--ink); line-height: 1; margin-bottom: 10px;
}
.stat-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.01em; line-height: 1.5; }

/* ==================== SERVICE CARDS ==================== */
.service-card {
    background: var(--white); padding: 38px 30px; border: 1px solid var(--border-light);
    position: relative; overflow: hidden; cursor: default;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-number {
    font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
    color: var(--accent); margin-bottom: 22px; letter-spacing: 0.08em;
}
.service-icon {
    width: 50px; height: 50px; background: var(--paper); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-icon { background: var(--accent); transform: scale(1.05); }
.service-card:hover .service-icon svg { stroke: white; }
.service-icon svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 1.5; transition: stroke 0.3s ease; }
.service-card h3 {
    font-family: 'Playfair Display', serif; font-size: 1.3rem;
    margin-bottom: 10px; font-weight: 400; letter-spacing: -0.01em;
}
.service-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; line-height: 1.65; }
.service-features { list-style: none; border-top: 1px solid var(--border-light); padding-top: 18px; }
.service-features li {
    font-size: 0.79rem; color: var(--muted); padding: 5px 0;
    display: flex; align-items: center; gap: 10px; transition: color 0.2s ease;
}
.service-card:hover .service-features li { color: var(--ink); }
.service-features li::before { content: '\2192'; color: var(--accent); font-size: 0.72rem; flex-shrink: 0; }

/* ==================== VALUE ITEMS ==================== */
.value-item {
    text-align: center; padding: 48px 36px; border: 1px solid transparent;
    transition: all 0.4s ease;
}
.value-item:hover { border-color: var(--border-light); background: var(--paper); }
.value-icon {
    width: 80px; height: 80px; background: var(--paper); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 28px; border: 1.5px solid var(--border); transition: all 0.4s ease;
}
.value-item:hover .value-icon { background: var(--accent); border-color: var(--accent); }
.value-item:hover .value-icon svg { stroke: white; }
.value-icon svg { width: 30px; height: 30px; stroke: var(--accent); stroke-width: 1.5; transition: stroke 0.3s ease; }
.value-item h4 { font-family: 'Playfair Display', serif; font-size: 1.45rem; margin-bottom: 14px; font-weight: 400; }
.value-item p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* ==================== FRAMEWORK ==================== */
.framework {
    padding: 140px 0; background: var(--ink); color: var(--paper);
    position: relative; overflow: hidden;
}
.framework::before {
    content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 92, 56, 0.08)); pointer-events: none;
}
.framework .section-label { color: var(--accent-light); }
.framework .section-title { color: var(--paper); }
.framework .section-description { color: rgba(245, 242, 235, 0.5); }
.framework-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
    margin-top: 80px; background: rgba(255,255,255,0.06); position: relative; z-index: 1;
}
.framework-step {
    background: var(--ink); padding: 48px 32px;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.framework-step:hover { background: rgba(26, 92, 56, 0.15); }
.step-number {
    font-family: 'Playfair Display', serif; font-size: 4.5rem; line-height: 1;
    color: rgba(255,255,255,0.06); margin-bottom: 24px; font-style: italic;
    transition: all 0.4s ease;
}
.framework-step:hover .step-number { color: var(--accent-light); }
.framework-step h4 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin-bottom: 16px; font-weight: 400; }
.framework-step p { font-size: 0.88rem; color: rgba(245, 242, 235, 0.5); line-height: 1.65; }

/* ==================== TECH STACK ==================== */
.tech-stack {
    padding: 120px 0; background: var(--ink); color: var(--paper);
    position: relative; overflow: hidden;
}
.tech-stack::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(39, 163, 90, 0.08) 0%, transparent 70%); border-radius: 50%;
}
.tech-stack .section-label { color: var(--accent-light); }
.tech-stack .section-title { color: var(--paper); margin-bottom: 64px; }
.tech-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; z-index: 1; }
.tech-category h4 {
    font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light);
    margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tech-category ul { list-style: none; }
.tech-category li {
    font-size: 0.9rem; color: rgba(245, 242, 235, 0.55); padding: 9px 0;
    cursor: default; border-bottom: 1px solid rgba(255,255,255,0.03); transition: all 0.25s ease;
}
.tech-category li:hover { color: var(--paper); padding-left: 8px; }

/* ==================== PROJECT CARDS ==================== */
.project-card {
    background: var(--white); border: 1px solid var(--border-light); padding: 48px 40px;
    position: relative; overflow: hidden; transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card::after {
    content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    transform: scaleY(0); transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-card:hover::after { transform: scaleY(1); }
.project-meta {
    font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
    display: flex; gap: 20px; flex-wrap: wrap;
}
.project-card h3 {
    font-family: 'Playfair Display', serif; font-size: 1.5rem;
    margin-bottom: 14px; font-weight: 400; letter-spacing: -0.01em;
}
.project-card > p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.project-stats {
    display: flex; gap: 32px; padding-top: 20px; border-top: 1px solid var(--border-light); flex-wrap: wrap;
}
.project-stat-item { text-align: center; }
.project-stat-value {
    font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--accent); line-height: 1;
}
.project-stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.project-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.66rem;
    padding: 4px 10px; background: var(--paper); color: var(--muted);
    border: 1px solid var(--border-light); letter-spacing: 0.02em;
}

/* ==================== TIMELINE ==================== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
    content: ''; position: absolute; left: 14px; top: 0; bottom: 0;
    width: 1px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-item::before {
    content: ''; position: absolute; left: -33px; top: 8px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--paper); border: 2px solid var(--accent);
    transition: background 0.3s ease;
}
.timeline-item:hover::before { background: var(--accent); }
.timeline-role {
    font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 400; margin-bottom: 4px;
}
.timeline-company { font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.timeline-period {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
    color: var(--muted-light); letter-spacing: 0.06em; margin-bottom: 12px;
}
.timeline-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.timeline-highlights { list-style: none; margin-top: 10px; }
.timeline-highlights li {
    font-size: 0.85rem; color: var(--muted); padding: 4px 0;
    display: flex; align-items: flex-start; gap: 10px;
}
.timeline-highlights li::before { content: '\2192'; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ==================== CERTIFICATIONS ==================== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cert-item {
    padding: 20px 24px; background: var(--paper); border-left: 2px solid var(--accent);
    transition: all 0.3s ease;
}
.cert-item:hover { transform: translateX(4px); background: var(--paper-warm); }
.cert-item strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.cert-item span { font-size: 0.78rem; color: var(--muted); }

/* ==================== CONTACT ==================== */
.contact-details { list-style: none; }
.contact-details li {
    padding: 18px 0; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    transition: padding-left 0.3s ease;
}
.contact-details li:hover { padding-left: 8px; }
.contact-details li span:first-child {
    font-size: 0.8rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.06em; font-family: 'JetBrains Mono', monospace;
}
.contact-details li a, .contact-details li .contact-value {
    color: var(--ink); text-decoration: none; font-weight: 500; transition: color 0.2s ease;
}
.contact-details li a:hover { color: var(--accent); }
.contact-form-wrapper {
    background: var(--white); padding: 48px; border: 1px solid var(--border-light); position: relative;
}
.contact-form-wrapper::before {
    content: 'Get in Touch'; position: absolute; top: -12px; left: 32px;
    background: var(--white); padding: 0 16px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.03em; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px 16px; border: 1px solid var(--border);
    background: var(--paper); font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem; color: var(--ink); transition: all 0.25s ease;
    appearance: none; -webkit-appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6e6c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--accent); background: var(--white);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
    width: 100%; background: var(--ink); color: var(--paper); padding: 18px 40px;
    border: none; font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
    font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
}
.form-submit::before {
    content: ''; position: absolute; inset: 0; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-submit:hover::before { transform: scaleX(1); }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(26, 92, 56, 0.2); }
.form-submit span { position: relative; z-index: 1; }
.form-note { margin-top: 16px; font-size: 0.78rem; color: var(--muted-light); text-align: center; }

/* ==================== CTA BAND ==================== */
.cta-band {
    padding: 100px 0; background: var(--ink); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(39, 163, 90, 0.1) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.cta-band h2 {
    font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--paper); font-weight: 400; margin-bottom: 16px; position: relative; z-index: 1;
}
.cta-band h2 em { font-style: italic; color: var(--accent-light); }
.cta-band p {
    color: rgba(245, 242, 235, 0.5); font-size: 1.02rem; max-width: 500px;
    margin: 0 auto 36px; position: relative; z-index: 1;
}
.cta-band .btn-primary { border-color: var(--paper); position: relative; z-index: 1; }

/* ==================== FOOTER ==================== */
footer { padding: 56px 0; background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 400; }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { color: rgba(245, 242, 235, 0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.25s ease; }
.footer-links a:hover { color: var(--paper); }
.footer-copy { font-size: 0.82rem; color: rgba(245, 242, 235, 0.3); }

/* ==================== ANIMATIONS ==================== */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
    opacity: 0; transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px;
    background: var(--ink); color: var(--paper); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 90;
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent); transform: translateY(-4px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
    .credentials-track { animation: none; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) { .tech-categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) {
    .section-header { grid-template-columns: 1fr; gap: 20px; }
    .framework-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-inner { height: 64px; }
    .page-hero { padding: 130px 0 80px; }
    .framework-grid { grid-template-columns: 1fr; }
    .tech-categories { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 32px 24px; }
    .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .section-label::before { display: none; }
    .cert-grid { grid-template-columns: 1fr; }
}