:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --surface-alt: #EFECE6;
  --border: #E4E1DA;
  --border-strong: #CFC9BD;
  --ink: #141619;
  --ink-muted: #555B65;
  --navy: #0F2438;
  --navy-hover: #173451;
  --bronze: #B85D3B;
  --wa: #16A34A;
  --wa-hover: #15803D;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 36, 56, 0.04);
  --shadow-md: 0 14px 36px rgba(15, 36, 56, 0.08);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 244, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: #F8F7F4;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronze);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.92rem; letter-spacing: 0.08em; }
.brand-text small { font-size: 0.74rem; color: var(--ink-muted); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}
.nav-desktop a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 34px;
}
.lang-btn.is-active {
  background: var(--navy);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 16px 0 22px;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-inner a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.86rem; }
.btn-full { width: 100%; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); }

.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-hover); }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-light-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-light-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero {
  padding: 56px 0 36px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.hero-title em {
  font-style: italic;
  color: var(--bronze);
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.06rem;
  color: var(--ink-muted);
  max-width: 60ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.mono-tag, .mono-idx {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.hero-card-body { padding: 22px 20px; }
.hero-card-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--navy);
}
.hero-card-role {
  margin: 4px 0 18px;
  font-size: 0.9rem;
  color: var(--bronze);
  font-weight: 600;
}
.hero-meta { margin: 0; display: grid; gap: 12px; }
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.hero-meta dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

.discipline-strip {
  margin-top: 44px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.discipline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

/* Sections */
.section { padding: 68px 0; }
.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 34px;
}
.section-head-simple { margin-bottom: 32px; }

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 8px;
}
.kicker-light { color: #F1B39B; }

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.12;
  color: var(--navy);
  max-width: 24ch;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Featured Project */
.project-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  align-items: center;
}

.browser-mockup {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.browser-bar {
  height: 32px;
  padding: 0 12px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); display: block; }
.browser-url { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); }
.browser-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Grid Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.is-hidden { display: none !important; }

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.sector-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bronze);
  background: rgba(184, 93, 59, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

.project-name {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}
.project-summary {
  margin: 0 0 16px;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.project-highlights {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--ink);
  display: grid;
  gap: 6px;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.stack-row span {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.project-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Services & Process */
.services-grid, .process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card, .process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.service-card h3, .process-step h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}
.service-card p, .process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Contact */
.contact-section { padding-bottom: 84px; }
.contact-box {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.contact-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.12;
}
.contact-lead {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}

.topic-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.topic-pill {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.topic-pill.is-active {
  background: var(--bronze);
  border-color: var(--bronze);
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-details {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 16px;
}
.detail-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 3px;
}
.detail-item a { text-decoration: none; font-weight: 600; }
.detail-item a:hover { text-decoration: underline; }
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 36, 56, 0.65);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: sticky;
  float: right;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.modal-title {
  margin: 4px 0 18px;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
}

.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.modal-tab {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.modal-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.modal-stage {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}
.modal-stage img {
  max-height: 430px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}
.modal-grid h4 {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--bronze);
}
.modal-grid p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .hero-grid, .project-featured, .contact-box, .modal-grid {
    grid-template-columns: 1fr;
  }
  .services-grid, .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .discipline-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-desktop, .hide-mobile { display: none; }
  .menu-toggle { display: flex; }
  .projects-grid, .services-grid, .process-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 34px 0 24px; }
  .section { padding: 48px 0; }
  .project-featured { padding: 18px; }
  .contact-box { padding: 24px; }
  .modal-dialog { padding: 20px; }
}
