/* ============================================================
   PRO AV Consulting — Design System
   Inspired by Uber Base Web (https://baseweb.design)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Base Web-inspired neutral scale */
  --bw-black: #000000;
  --bw-white: #FFFFFF;
  --bw-mono100: #FFFFFF;
  --bw-mono200: #FAFAFA;
  --bw-mono300: #F6F6F6;
  --bw-mono400: #EEEEEE;
  --bw-mono500: #E2E2E2;
  --bw-mono600: #CBCBCB;
  --bw-mono700: #AFAFAF;
  --bw-mono800: #6B6B6B;
  --bw-mono900: #545454;
  --bw-mono1000: #333333;
  --bw-mono1100: #1F1F1F;

  /* Accent — Uber blue */
  --bw-accent: #276EF1;
  --bw-accent-hover: #1E54B7;
  --bw-accent-active: #174291;
  --bw-accent-soft: #EFF3FE;

  /* Semantic */
  --bw-fg: var(--bw-black);
  --bw-fg-muted: var(--bw-mono800);
  --bw-fg-subtle: var(--bw-mono700);
  --bw-bg: var(--bw-white);
  --bw-bg-soft: var(--bw-mono200);
  --bw-bg-elevated: var(--bw-mono300);
  --bw-border: var(--bw-mono500);
  --bw-border-subtle: var(--bw-mono400);

  /* Radii — Base Web defaults */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Type scale */
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 48px;
  --s-10: 64px;
  --s-11: 80px;
  --s-12: 120px;

  /* Layout */
  --container: 1440px;
  --container-narrow: 1040px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bw-fg);
  background: var(--bw-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bw-fg-muted);
}
.eyebrow--accent { color: var(--bw-accent); }

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h-xxl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.h-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.p-lg { font-size: 18px; line-height: 1.6; color: var(--bw-fg-muted); }
.p-md { font-size: 16px; line-height: 1.6; color: var(--bw-fg-muted); }
.p-sm { font-size: 14px; line-height: 1.55; color: var(--bw-fg-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.container--narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }

.section { padding: var(--s-12) 0; }
.section--sm { padding: var(--s-10) 0; }
.section--lg { padding: 140px 0; }

@media (max-width: 768px) {
  .section { padding: var(--s-10) 0; }
  .section--lg { padding: var(--s-11) 0; }
  .container { padding: 0 var(--s-5); }
}

.divider {
  border: 0;
  border-top: 1px solid var(--bw-border-subtle);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 48px;
  padding: 0 var(--s-6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--bw-black);
  color: var(--bw-white);
}
.btn--primary:hover { background: var(--bw-mono1000); }

.btn--accent {
  background: var(--bw-accent);
  color: var(--bw-white);
}
.btn--accent:hover { background: var(--bw-accent-hover); }

.btn--secondary {
  background: var(--bw-mono300);
  color: var(--bw-black);
}
.btn--secondary:hover { background: var(--bw-mono400); }

.btn--ghost {
  background: transparent;
  color: var(--bw-black);
  border: 1px solid var(--bw-border);
}
.btn--ghost:hover { border-color: var(--bw-black); background: var(--bw-mono200); }

.btn--lg { height: 56px; padding: 0 var(--s-7); font-size: 16px; }
.btn--sm { height: 40px; padding: 0 var(--s-5); font-size: 14px; }

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--bw-border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: "Anek Latin", "Archivo", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  transform: scaleX(1.10);
  transform-origin: left center;
  color: var(--bw-black);
}
.nav__logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-7);
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--bw-fg);
  padding: var(--s-2) 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--bw-accent); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--bw-black);
}
.nav__cta { margin-left: var(--s-3); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav__toggle:hover { background: var(--bw-mono300); }
.nav__toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle-bars span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bw-black);
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav.is-open .nav__toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bw-white);
    padding: var(--s-5) var(--s-5) var(--s-8);
    border-bottom: 1px solid var(--bw-border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
  }
  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--bw-border-subtle);
    font-size: 17px;
  }
  .nav__cta {
    margin: var(--s-4) 0 0 0;
    align-self: flex-start;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-12) 0 var(--s-11);
  overflow: hidden;
  background: var(--bw-white);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-10);
  align-items: center;
}
.hero__content { max-width: 640px; }
.hero__title {
  margin-top: var(--s-5);
  margin-bottom: var(--s-6);
}
.hero__title em {
  font-style: normal;
  color: var(--bw-accent);
}
.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--bw-fg-muted);
  margin-bottom: var(--s-8);
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bw-mono300);
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__visual-overlay {
  position: absolute;
  left: var(--s-6); bottom: var(--s-6);
  right: var(--s-6);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
  display: flex;
  gap: var(--s-6);
}
.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bw-fg-muted);
  display: block;
  margin-bottom: 2px;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 1/1; max-height: 480px; }
  .hero { padding: var(--s-9) 0 var(--s-10); }
}

/* ---------- Page Hero (interior pages) ---------- */
.page-hero {
  padding: var(--s-11) 0 var(--s-9);
  background: var(--bw-white);
  border-bottom: 1px solid var(--bw-border-subtle);
}
.page-hero__breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bw-fg-muted);
  margin-bottom: var(--s-5);
}
.page-hero__breadcrumb a { color: var(--bw-fg-muted); }
.page-hero__breadcrumb a:hover { color: var(--bw-black); }
.page-hero__breadcrumb .sep { margin: 0 var(--s-2); opacity: 0.5; }
.page-hero__title { margin-bottom: var(--s-5); }
.page-hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--bw-fg-muted);
  max-width: 680px;
}

/* ---------- Generic Cards & Grids ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}

.card {
  background: var(--bw-white);
  border: 1px solid var(--bw-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.card:hover {
  border-color: var(--bw-black);
  transform: translateY(-2px);
}
.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bw-fg-subtle);
  margin-bottom: var(--s-4);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.card__body {
  color: var(--bw-fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Service Cards (image + content) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--s-6);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bw-white);
  border: 1px solid var(--bw-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.service-card:hover {
  border-color: var(--bw-black);
  transform: translateY(-4px);
}
.service-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bw-mono300);
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body {
  padding: var(--s-6) var(--s-6) var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.service-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bw-fg-subtle);
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.service-card__desc {
  color: var(--bw-fg-muted);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 14px;
  color: var(--bw-black);
  margin-top: var(--s-3);
}
.service-card__link .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease);
}
.service-card:hover .service-card__link .arrow { transform: translateX(4px); }
.service-card:hover .service-card__link { color: var(--bw-accent); }

/* ---------- Feature Section (FDMS-style) ---------- */
.feature-section {
  background: var(--bw-mono200);
}
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-10);
  align-items: center;
}
.feature-row--reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bw-mono300);
}
.feature-row__media:has(img[src*="FDM.png"]) {
  background: var(--bw-mono200);
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row__media img[src*="FDM.png"] { object-fit: contain; padding: var(--s-6); background: transparent; mix-blend-mode: multiply; }
.feature-list {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.feature-list__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.feature-list__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bw-black);
  color: var(--bw-white);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}
.feature-list__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: var(--s-1);
  letter-spacing: -0.005em;
}
.feature-list__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--bw-fg-muted);
}

@media (max-width: 960px) {
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__media { order: 0; }
}

/* ---------- CTA Section ---------- */
.cta {
  position: relative;
  background: var(--bw-black);
  color: var(--bw-white);
  border-radius: var(--radius-xl);
  padding: var(--s-11) var(--s-9);
  overflow: hidden;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin-bottom: var(--s-6);
}
.cta__sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: var(--s-8);
}
.cta__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cta__actions .btn--primary {
  background: var(--bw-white);
  color: var(--bw-black);
}
.cta__actions .btn--primary:hover { background: var(--bw-mono400); }
.cta__actions .btn--ghost {
  border-color: rgba(255,255,255,0.25);
  color: var(--bw-white);
  background: transparent;
}
.cta__actions .btn--ghost:hover {
  border-color: var(--bw-white);
  background: rgba(255,255,255,0.05);
}
.cta::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(39,110,241,0.4), transparent 70%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .cta { padding: var(--s-9) var(--s-6); }
}

/* ---------- Two-column Content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-10);
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-7); }
}

.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head__title { margin: var(--s-3) 0 var(--s-4); }
.section-head__sub { font-size: 18px; line-height: 1.55; color: var(--bw-fg-muted); }

/* ---------- Body Prose (service detail pages) ---------- */
.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--bw-mono1000);
}
.prose > * + * { margin-top: var(--s-5); }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--bw-black);
  margin-top: var(--s-9);
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--bw-black);
  margin-top: var(--s-7);
  letter-spacing: -0.01em;
}
.prose ul, .prose ol {
  padding-left: 0;
  display: grid;
  gap: var(--s-3);
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: var(--s-7);
  color: var(--bw-fg-muted);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bw-accent);
}
.prose ol { counter-reset: list; }
.prose ol li {
  counter-increment: list;
}
.prose ol li::before {
  content: counter(list, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--bw-accent);
}
.prose strong { color: var(--bw-black); font-weight: 700; }
.prose a {
  color: var(--bw-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---------- Service Detail Layout ---------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-10);
  align-items: start;
}
.detail__aside {
  position: sticky;
  top: 96px;
  background: var(--bw-mono200);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
}
.detail__aside h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  margin-bottom: var(--s-2);
}
.detail__aside p { font-size: 14px; color: var(--bw-fg-muted); margin-bottom: var(--s-5); }
.detail__aside .btn { width: 100%; }
.detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: var(--s-8);
  background: var(--bw-mono300);
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
}

/* ---------- Job listings ---------- */
.job-list { display: grid; gap: var(--s-5); }
.job {
  border: 1px solid var(--bw-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  transition: border-color var(--dur-base) var(--ease);
}
.job:hover { border-color: var(--bw-black); }
.job__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.job__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.job__id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bw-fg-muted);
  margin-top: var(--s-1);
}
.job__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bw-mono200);
  border-radius: var(--radius-md);
  margin-bottom: var(--s-6);
}
.job__meta-item .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bw-fg-subtle);
  display: block;
  margin-bottom: 2px;
}
.job__meta-item .val {
  font-size: 14px;
  font-weight: 600;
  color: var(--bw-black);
}
.job__section { margin-bottom: var(--s-5); }
.job__section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bw-fg-muted);
  margin-bottom: var(--s-3);
}
.job__section p { color: var(--bw-fg-muted); font-size: 15px; line-height: 1.6; }
.job__section ol { display: grid; gap: var(--s-2); counter-reset: jl; }
.job__section ol li {
  position: relative;
  padding-left: var(--s-7);
  counter-increment: jl;
  color: var(--bw-fg-muted);
  font-size: 15px;
}
.job__section ol li::before {
  content: counter(jl, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--bw-accent);
}

/* ---------- Contact / Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-10);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bw-fg-muted);
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--bw-border);
  border-radius: var(--radius-sm);
  background: var(--bw-white);
  color: var(--bw-black);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--bw-black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.field textarea { min-height: 140px; resize: vertical; }
.form__notice {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bw-fg-subtle);
  letter-spacing: 0.02em;
}

.contact-info { display: grid; gap: var(--s-6); }
.contact-info__item .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bw-fg-muted);
  margin-bottom: var(--s-2);
  display: block;
}
.contact-info__item .val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--bw-black);
}
.contact-info__item a:hover { color: var(--bw-accent); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--bw-mono200);
  border-radius: var(--radius-xl);
  padding: var(--s-9) var(--s-9);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.newsletter__form { display: flex; gap: var(--s-3); }
.newsletter__form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--bw-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bw-white);
}
.newsletter__form input:focus {
  outline: none;
  border-color: var(--bw-black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
  .newsletter { grid-template-columns: 1fr; padding: var(--s-8) var(--s-6); }
  .newsletter__form { flex-direction: column; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bw-black);
  color: var(--bw-white);
  padding: var(--s-11) 0 var(--s-7);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-9);
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand {
  font-family: "Anek Latin", "Archivo", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.02em;
  transform: scaleX(1.10);
  transform-origin: left center;
  margin-bottom: var(--s-3);
}
.footer__tag {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.55;
  max-width: 280px;
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.footer__col ul { display: grid; gap: var(--s-3); }
.footer__col a {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  transition: color var(--dur-fast) var(--ease);
}
.footer__col a:hover { color: var(--bw-white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.footer__legal {
  display: flex;
  gap: var(--s-5);
}
.footer__legal a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.footer__legal a:hover { color: var(--bw-white); }

/* ---------- Marquee value list ---------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--bw-border-subtle);
  border-bottom: 1px solid var(--bw-border-subtle);
}
.value-strip__item {
  padding: var(--s-7) var(--s-6);
  border-right: 1px solid var(--bw-border-subtle);
}
.value-strip__item:last-child { border-right: 0; }
.value-strip__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bw-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
}
.value-strip__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .value-strip__item:nth-child(2) { border-right: 0; }
  .value-strip__item:nth-child(1),
  .value-strip__item:nth-child(2) { border-bottom: 1px solid var(--bw-border-subtle); }
}

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 768px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/11;
  background: var(--bw-mono300);
  transition: transform var(--dur-base) var(--ease);
}
.project-card:hover { transform: translateY(-4px); }
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.project-card:hover img { transform: scale(1.05); }
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.15) 60%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-7);
  color: var(--bw-white);
}
.project-card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--s-2);
}
.project-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

/* ---------- Animations on load ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp var(--dur-slow) var(--ease) backwards;
}
.fade-up:nth-child(1) { animation-delay: 0ms; }
.fade-up:nth-child(2) { animation-delay: 80ms; }
.fade-up:nth-child(3) { animation-delay: 160ms; }
.fade-up:nth-child(4) { animation-delay: 240ms; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
