:root {
  --canvas: #f5f6f7;
  --card: #ffffff;
  --ink: #111318;
  --body-text: #545860;
  --hairline: #e4e7ec;
  --accent: #2452ff;
  --accent-hover: #173bcc;
  --dark-band: #111318;
  --dark-band-muted: #8b909c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Karla', sans-serif;
  font-weight: 400;
  background: var(--canvas);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: rgba(36, 82, 255, 0.2); }

.mono { font-family: 'JetBrains Mono', monospace; }

.eyebrow-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow-mono.center { text-align: center; }

.mono-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--body-text);
}
.mono-num.accent { color: var(--accent); }

.section-lead { font-size: 15px; line-height: 1.65; color: var(--body-text); max-width: 600px; margin: 0 0 12px; }

.btn {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--ink); color: #ffffff; }
.btn-primary:hover { background: #2a2d35; color: #ffffff; }
.btn-outline { background: #ffffff; color: var(--ink); }
.btn-outline:hover { background: var(--canvas); color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { flex-shrink: 0; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.nav-panel { display: flex; align-items: center; gap: 36px; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 400; color: var(--dark-band-muted); }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.nav-cta { white-space: nowrap; padding: 10px 18px; font-size: 13px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Layout */
main { max-width: 1180px; margin: 0 auto; }

/* Corner / artboard motif */
@keyframes cornerDraw { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes titleUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  animation: cornerDraw 0.5s ease-out both;
}
.corner-sm { width: 18px; height: 18px; }
.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; animation-delay: 0s; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; animation-delay: 0.1s; }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; animation-delay: 0.15s; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; animation-delay: 0.25s; }
.corner-accent { border-color: var(--accent); }
.corner-tr.corner-sm { border-color: var(--accent); }

.coord { position: absolute; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--body-text); }
.coord-tl { top: 12px; left: 14px; }
.coord-tr { top: 12px; right: 14px; }
.coord-bl { bottom: 12px; left: 14px; }
.coord-br { bottom: 12px; right: 14px; }
.coord-accent { color: var(--accent); }

/* Hero artboard */
.hero-wrap { padding: 64px 32px 0; }
.artboard {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hairline);
  padding: 88px 64px;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.hero-content { max-width: 680px; margin: 0 auto; text-align: center; animation: titleUp 0.5s ease-out both; animation-delay: 0.05s; }
.hero-content h1 { font-size: 48px; line-height: 1.15; margin: 0 0 24px; }
.hero-lead { font-size: 16px; line-height: 1.65; color: var(--body-text); margin: 0 0 36px; }
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Pillars */
.pillars { padding: 112px 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card { background: #ffffff; border: 1px solid var(--hairline); border-radius: 2px; padding: 32px; }
.pillar-card .mono-num { color: var(--accent); margin-bottom: 16px; }
.pillar-card h3 { font-size: 18px; margin-bottom: 10px; }
.pillar-card p { font-size: 14.5px; line-height: 1.6; color: var(--body-text); margin: 0; }

/* Services */
.services-section { padding: 112px 32px 0; }
.services-section h2 { font-size: 30px; margin-bottom: 12px; }
.services-list { display: flex; flex-direction: column; }
.service-row { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--hairline); align-items: start; }
.service-row h3 { font-size: 18px; }
.service-row p { font-size: 14.5px; line-height: 1.6; color: var(--body-text); margin: 0; }
.services-list-end { border-top: 1px solid var(--hairline); }

/* Metrics band */
.metrics-band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--dark-band); margin-top: 112px; }
.metrics-inner { max-width: 1180px; margin: 0 auto; padding: 48px 32px; }
.metrics-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--dark-band-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 28px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric-value { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 500; color: #ffffff; }
.metric-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--dark-band-muted); margin-top: 6px; letter-spacing: 0.03em; text-transform: uppercase; }

/* Process */
.process-section { padding: 112px 32px; }
.process-section h2 { font-size: 30px; margin-bottom: 12px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.process-step { border-top: 2px solid var(--ink); padding-top: 20px; }
.process-step .mono-num { margin-bottom: 14px; }
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; line-height: 1.6; color: var(--body-text); margin: 0; }

/* Testimonials */
.testimonials-section { padding: 0 32px 128px; }
.testimonial-box {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hairline);
  padding: 88px 96px 56px;
  max-width: 840px;
  margin: 0 auto;
  overflow: hidden;
}
.quote-mark {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.08;
  font-weight: 600;
  user-select: none;
}
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  background: #ffffff;
  border-radius: 2px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.testimonial-nav:hover { border-color: var(--accent); color: var(--accent); }
.testimonial-prev { left: 20px; }
.testimonial-next { right: 20px; }
.testimonial-content { position: relative; text-align: center; animation: titleUp 0.4s ease-out both; animation-delay: 0.05s; }
.testimonial-quote { font-family: 'Space Grotesk', sans-serif; font-size: 28px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 32px; }
.testimonial-person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-person-info { text-align: left; }
.testimonial-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; }
.testimonial-role { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--body-text); margin-top: 2px; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.testimonial-dot { font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 4px 8px; cursor: pointer; background: none; border: none; border-bottom: 2px solid transparent; color: var(--dark-band-muted); }
.testimonial-dot.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* Closing CTA */
.closing-cta { padding: 0 32px 128px; }
.closing-cta-inner { max-width: 720px; margin: 0 auto; background: #ffffff; border: 1px solid var(--hairline); padding: 64px; text-align: center; }
.closing-cta-inner h2 { font-size: 28px; margin-bottom: 16px; }
.closing-cta-inner p { font-size: 15px; color: var(--body-text); margin: 0 0 32px; }

/* Placeholders */
.img-placeholder {
  width: 100%;
  height: 170px;
  background: repeating-linear-gradient(45deg, var(--canvas), var(--canvas) 10px, #ffffff 10px, #ffffff 20px);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--body-text);
  text-align: center;
  padding: 8px;
}
.img-placeholder-round { border-radius: 50%; aspect-ratio: 1; height: auto; border-bottom: none; }
.img-placeholder-sm { width: 48px; height: 48px; flex-shrink: 0; font-size: 9px; }

/* Page header (portfolio) */
.page-header { padding: 88px 32px 56px; }
.page-header h1 { font-size: 34px; margin-bottom: 16px; }

/* Portfolio */
.projects-grid { padding: 0 32px 128px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { position: relative; background: #ffffff; border: 1px solid var(--hairline); overflow: hidden; transition: border-color 0.2s ease; }
.project-card:hover { border-color: var(--accent); }
.project-card:hover .corner-tr { transform: translate(2px, -2px); border-color: var(--accent); }
.project-body { padding: 26px; }
.project-sector { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.project-card h3 { font-size: 17px; margin-bottom: 12px; }
.project-card p { font-size: 13.5px; line-height: 1.6; color: var(--body-text); margin: 0 0 18px; }
.project-result { border-top: 1px solid var(--hairline); padding-top: 16px; }
.project-result-num { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 500; }
.project-result-label { font-size: 12.5px; color: var(--body-text); margin-top: 2px; }

/* A propos */
.apropos-intro { max-width: 880px; margin: 0 auto; padding: 88px 32px 0; }
.apropos-intro h1 { font-size: 34px; margin-bottom: 24px; }
.apropos-intro p.section-lead { font-size: 16px; max-width: none; }

.team-section { padding: 96px 32px 128px; }
.team-section h2 { font-size: 28px; margin-bottom: 48px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-member { position: relative; background: #ffffff; border: 1px solid var(--hairline); padding: 28px; text-align: center; }
.team-member .img-placeholder-round { width: 120px; height: 120px; margin: 0 auto 20px; }
.team-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.team-role { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--body-text); }

/* Contact */
.contact-grid { padding: 88px 32px 128px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-grid h1 { font-size: 34px; margin-bottom: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); margin-top: 8px; }
.contact-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--body-text); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-value { font-size: 15px; font-weight: 500; }
.contact-details a { font-size: 15px; font-weight: 500; }

.contact-panel-wrap { position: relative; }
.contact-panel { position: relative; background: #ffffff; border: 1px solid var(--hairline); padding: 40px; }
.contact-panel h3 { font-size: 18px; margin-bottom: 10px; }
.contact-panel p { font-size: 14.5px; color: var(--body-text); line-height: 1.6; margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 20px; padding: 40px; }
.form-field label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  font-size: 14.5px;
  font-family: 'Karla', sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
.form-field textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--body-text);
}

@media (max-width: 900px) {
  html, body { overflow-x: hidden; width: 100%; }
  .header-inner { padding: 16px 24px; }
  .nav-toggle { display: flex; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-panel.is-open { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--hairline); }
  .nav-cta { margin: 16px 24px 20px; text-align: center; }

  .hero-wrap, .pillars, .services-section, .process-section, .testimonials-section,
  .closing-cta, .page-header, .projects-grid, .apropos-intro, .team-section, .contact-grid {
    padding-left: 24px;
    padding-right: 24px;
  }
  .artboard { padding: 64px 24px; }
  .hero-content h1 { font-size: 34px; }
  .coord { display: none; }

  .pillars, .projects-grid, .team-grid, .process-grid, .metrics-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .testimonial-box { padding: 72px 24px 40px; }
  .testimonial-quote { font-size: 22px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
