
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #F0F2F5;
  --bg-alt: #E4E7EC;
  --ink: #111827;
  --ink-soft: #4B5563;
  --brand: #1E40AF;
  --brand-light: #3B82F6;
  --accent: #D97706;
  --accent-soft: #F59E0B;
  --sage: #059669;
  --paper: #FFFFFF;
  --border: #C9CDD5;
  --border-light: #E0E3E9;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', Helvetica, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
h1 em, h2 em, h3 em { color: var(--brand); font-style: italic; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

.top-strip { background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 0.72rem; padding: 0.5rem 0; letter-spacing: 0.03em; }
.top-strip .container { display: flex; justify-content: space-between; align-items: center; }
.top-strip .pulse { display: inline-block; width: 6px; height: 6px; background: var(--sage); border-radius: 0; margin-right: 0.5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.top-strip a { color: var(--brand-light); }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 0; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 30px rgba(17,24,39,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.logo span { color: var(--brand); }
nav { display: flex; align-items: center; gap: 1.8rem; }
nav a { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); position: relative; }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--brand); transition: width .3s; }
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--ink); }
.nav-cta { background: var(--brand); color: var(--paper) !important; padding: 0.55rem 1.3rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border: 2px solid var(--brand); transition: all .2s; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: transparent; color: var(--brand) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all .3s; }

.hero { padding: 5rem 0 4rem; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.hero-tag::before { content: '◆'; font-size: 0.45rem; color: var(--accent); }
.hero h1 { font-size: 3.2rem; margin-bottom: 1.5rem; line-height: 1.08; }
.hero-desc { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 2rem; max-width: 480px; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; align-items: center; }
.btn-primary { display: inline-block; background: var(--brand); color: var(--paper); padding: 0.85rem 2rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border: 2px solid var(--brand); transition: all .2s; cursor: pointer; }
.btn-primary:hover { background: transparent; color: var(--brand); }
.btn-outline { display: inline-block; padding: 0.85rem 2rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border: 2px solid var(--border); color: var(--ink); transition: all .2s; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border: 2px solid var(--ink); }
.hero-stamp { position: absolute; bottom: -1rem; right: -1rem; background: var(--accent); color: var(--paper); font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.5rem 0.8rem; border: 2px solid var(--ink); }
.hero-frame { position: absolute; top: -1rem; left: -1rem; width: 50%; height: 50%; border: 2px solid var(--brand); z-index: -1; }

.stats-strip { background: var(--ink); color: var(--bg); padding: 3rem 0; border-bottom: 4px solid var(--brand); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 3.2rem; color: var(--accent-soft); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--border); }

.section { padding: 5rem 0; }
.section-header { margin-bottom: 3rem; }
.section-tag { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); margin-bottom: 0.75rem; }
.section-header h2 { font-size: 2.8rem; }
.section-header p { color: var(--ink-soft); margin-top: 1rem; max-width: 560px; font-weight: 300; }
.section-border-top { border-top: 1px solid var(--border); }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.project-card { position: relative; border: 1px solid var(--border); background: var(--paper); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.project-card:hover { border-color: var(--brand); box-shadow: 0 8px 30px rgba(30,64,175,.08); }
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3) { grid-column: span 4; }
.project-card:nth-child(4) { grid-column: span 4; }
.project-card:nth-child(5) { grid-column: span 4; }
.project-card:nth-child(6) { grid-column: span 12; }
.project-img { width: 100%; height: 260px; object-fit: cover; border-bottom: 1px solid var(--border); }
.project-card:nth-child(6) .project-img { height: 320px; }
.project-body { padding: 1.5rem; }
.project-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.project-code { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--brand); border: 1px solid var(--brand); padding: 0.15rem 0.5rem; }
.project-stage { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.project-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.project-body p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; font-weight: 300; }
.project-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-light); font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-step { padding: 2rem; border: 1px solid var(--border); border-right: none; position: relative; }
.process-step:last-child { border-right: 1px solid var(--border); }
.process-num { font-family: var(--font-display); font-size: 3.5rem; color: var(--brand); opacity: 0.12; line-height: 1; margin-bottom: 1rem; }
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.process-step p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; font-weight: 300; }
.process-dur { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); margin-top: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pricing-card { padding: 2.5rem; border: 1px solid var(--border); border-right: none; background: var(--paper); position: relative; }
.pricing-card:last-child { border-right: 1px solid var(--border); }
.pricing-card.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pricing-badge { position: absolute; top: 0; right: 0; background: var(--accent); color: var(--paper); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.8rem; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.pricing-card .price { font-family: var(--font-display); font-size: 2.8rem; margin-bottom: 0.5rem; }
.pricing-card.featured .price { color: var(--accent-soft); }
.pricing-card .price-note { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.pricing-card.featured .price-note { color: var(--border); }
.pricing-list { list-style: none; }
.pricing-list li { padding: 0.6rem 0; border-bottom: 1px dashed var(--border-light); font-size: 0.9rem; display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 300; }
.pricing-card.featured .pricing-list li { border-color: rgba(255,255,255,.08); }
.pricing-list li::before { content: '▸'; font-family: var(--font-mono); color: var(--accent); flex-shrink: 0; }
.pricing-cta { margin-top: 2rem; }

.manifesto { background: var(--brand); color: var(--paper); padding: 5rem 0; }
.manifesto .section-tag { color: var(--accent-soft); }
.manifesto h2 { color: var(--paper); }
.manifesto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 3rem; }
.manifesto-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-soft); margin-bottom: 0.5rem; letter-spacing: 0.06em; }
.manifesto-item h3 { font-size: 1.3rem; color: var(--paper); margin-bottom: 0.75rem; }
.manifesto-item p { font-size: 0.9rem; color: rgba(255,255,255,.75); line-height: 1.65; font-weight: 300; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.testimonial-card { padding: 2rem; border: 1px solid var(--border); border-right: none; background: var(--paper); }
.testimonial-card:last-child { border-right: 1px solid var(--border); }
.testimonial-sector { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 1rem; }
.testimonial-text { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; line-height: 1.6; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--border); }
.testimonial-name { font-weight: 500; font-size: 0.9rem; }
.testimonial-date { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-soft); }

.cta-section { background: var(--ink); padding: 4rem 0; text-align: center; }
.cta-section h2 { font-size: 2.4rem; color: var(--paper); margin-bottom: 1rem; }
.cta-section p { color: var(--border); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; font-weight: 300; }
.newsletter-form { display: flex; justify-content: center; gap: 0; max-width: 500px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 0.85rem 1.2rem; border: 2px solid var(--brand); background: var(--paper); font-family: var(--font-body); font-size: 0.9rem; outline: none; }
.newsletter-form button { background: var(--brand); color: var(--paper); padding: 0.85rem 1.8rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border: 2px solid var(--brand); cursor: pointer; transition: all .2s; }
.newsletter-form button:hover { background: var(--accent); border-color: var(--accent); }

.site-footer { background: var(--ink); color: var(--bg); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--paper); }
.footer-col p { font-size: 0.85rem; color: var(--border); line-height: 1.65; font-weight: 300; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.85rem; color: var(--border); transition: color .2s; }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 2rem; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,.35); }

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: var(--bg); padding: 1.2rem 2rem; display: flex; justify-content: space-between; align-items: center; z-index: 999; border-top: 2px solid var(--brand); font-size: 0.85rem; font-weight: 300; }
.cookie-banner.hidden { display: none; }
.cookie-banner button { background: var(--brand); color: var(--paper); border: none; padding: 0.5rem 1.2rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; margin-left: 1rem; flex-shrink: 0; }

.page-hero { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 2.8rem; }
.page-hero .page-tag { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); margin-bottom: 0.75rem; }
.content-section { padding: 3rem 0; border-bottom: 1px solid var(--border-light); }
.content-section:last-child { border-bottom: none; }
.content-section h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.content-section h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.content-section p { margin-bottom: 1rem; color: var(--ink-soft); max-width: 780px; font-weight: 300; }
.content-section ul { margin: 1rem 0 1rem 1.5rem; color: var(--ink-soft); }
.content-section li { margin-bottom: 0.5rem; font-weight: 300; }

.detail-card { background: var(--paper); border: 1px solid var(--border); margin-bottom: 3rem; overflow: hidden; }
.detail-card-header { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-card-img { width: 100%; height: 400px; object-fit: cover; }
.detail-card-info { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.detail-card-info h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.detail-card-meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.detail-card-meta span { display: flex; align-items: center; gap: 0.35rem; }
.detail-card-content { padding: 2.5rem; border-top: 1px solid var(--border); }
.detail-card-content p { margin-bottom: 1rem; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.contact-block { background: var(--paper); border: 1px solid var(--border); padding: 1.5rem; }
.contact-block h4 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.contact-block p { font-size: 0.85rem; color: var(--ink-soft); font-weight: 300; }

.contact-form { max-width: 640px; margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); background: var(--paper); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--brand); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-success { display: none; background: var(--sage); color: var(--paper); padding: 1rem 1.5rem; font-family: var(--font-mono); font-size: 0.85rem; margin-top: 1rem; }

.legal-content { padding: 3rem 0 5rem; max-width: 800px; }
.legal-content h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.legal-updated { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 3rem; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--brand); }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content p { margin-bottom: 1rem; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }
.legal-content ul { margin: 0.5rem 0 1rem 1.5rem; color: var(--ink-soft); }
.legal-content li { margin-bottom: 0.4rem; line-height: 1.6; font-weight: 300; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-content th, .legal-content td { padding: 0.6rem 1rem; border: 1px solid var(--border); font-size: 0.88rem; text-align: left; }
.legal-content th { background: var(--bg-alt); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .projects-grid { grid-template-columns: repeat(6, 1fr); }
  .project-card:nth-child(1) { grid-column: span 6; }
  .project-card:nth-child(2) { grid-column: span 6; }
  .project-card:nth-child(3) { grid-column: span 3; }
  .project-card:nth-child(4) { grid-column: span 3; }
  .project-card:nth-child(5) { grid-column: span 3; }
  .project-card:nth-child(6) { grid-column: span 6; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 1px solid var(--border); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { border-right: 1px solid var(--border); border-bottom: none; }
  .pricing-card:last-child { border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(n) { grid-column: span 1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: 1px solid var(--border); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { border-right: 1px solid var(--border); border-bottom: none; }
  .testimonial-card:last-child { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .detail-card-header { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  nav { display: none; }
  nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; gap: 1rem; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; gap: 0.75rem; text-align: center; }
}
