:root {
  --brand-orange: #E8591C;
  --brand-orange-deep: #B8420F;
  --brand-dark: #2A2D34;
  --text: #1A1D24;
  --text-muted: #5A6068;
  --rule: #E5E5E2;
  --bg: #FFFFFF;
  --bg-soft: #FAFAF7;
  --bg-warm: #FDF6EE;
  --max-width: 1100px;
  --gap: clamp(16px, 3vw, 32px);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: light; -webkit-text-size-adjust: 100%; }

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

img { display: block; max-width: 100%; height: auto; }

a { color: var(--brand-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--brand-dark); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gap); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.site-header .logo img { height: 44px; width: auto; }
.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(12px, 2vw, 24px); align-items: center;
}
.site-header nav a {
  color: var(--text); font-weight: 500; font-size: 15px;
}
.site-header nav a:hover { color: var(--brand-orange); text-decoration: none; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px;
  letter-spacing: 0.04em;
}
.lang-switch a { color: var(--text-muted); text-decoration: none; padding: 2px 6px; border-radius: 999px; }
.lang-switch a.active { color: #fff; background: var(--brand-orange); }
.lang-switch .sep { color: var(--rule); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: none;
  color: var(--text);
  cursor: pointer; padding: 0;
  border-radius: 6px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.nav-toggle line {
  transition: transform 0.18s ease, opacity 0.18s ease;
  transform-origin: center;
  transform-box: fill-box;
}
.nav-toggle[aria-expanded="true"] .ham-top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .ham-mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .ham-bot { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 80px);
}
.hero .lede {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-muted);
  max-width: 60ch; margin-bottom: 2em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn-primary { background: var(--brand-orange); color: #fff; }
.btn-primary:hover { background: var(--brand-orange-deep); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--brand-dark); border: 1px solid var(--brand-dark); }
.btn-secondary:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--rule); }
.section-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-orange); margin-bottom: 12px;
}
.section-lede { color: var(--text-muted); max-width: 64ch; font-size: 18px; }

/* ---------- Two-column intro ---------- */
.pillars {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 40px;
}
.pillar {
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.pillar h3 { color: var(--brand-orange); margin-bottom: 8px; }

/* ---------- Products ---------- */
.products {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 40px;
}
.product-card {
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card:hover { border-color: var(--brand-orange); transform: translateY(-2px); }
.product-card .product-logo {
  width: 88px; height: 88px;
  object-fit: contain;
  margin-bottom: 18px;
  border-radius: 12px;
}
.product-card h3 { margin-bottom: 4px; }
.product-card .product-tagline { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.product-card p { font-size: 15px; }
.product-card .product-links { margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.product-card .product-links a { font-size: 14px; font-weight: 600; }

.product-card.placeholder {
  background: var(--bg-soft);
  border-style: dashed;
  align-items: center; justify-content: center; text-align: center;
  color: var(--text-muted);
  min-height: 220px;
}

/* ---------- Capabilities list ---------- */
.capabilities {
  display: grid; gap: 12px var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 32px; padding: 0; list-style: none;
}
.capabilities li {
  padding: 14px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand-orange);
  font-size: 15px;
}

/* ---------- Engagements ---------- */
.engagements { margin-top: 40px; padding: 0; list-style: none; }
.engagement {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.engagement:last-child { border-bottom: none; }
.engagement-logo {
  display: flex; align-items: center; justify-content: center;
  width: 132px; height: 60px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 14px;
  overflow: hidden;
}
.engagement-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.engagement-logo.on-dark {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.engagement h3 { font-size: 18px; margin: 0 0 4px; }
.engagement .role { color: var(--text-muted); font-size: 14px; margin: 0 0 6px; }
.engagement .desc { font-size: 15px; margin: 0; }
.engagement .period {
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  white-space: nowrap; padding-top: 2px;
}
@media (max-width: 640px) {
  .engagement {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }
  .engagement-logo { width: 96px; height: 48px; padding: 6px 10px; }
  .engagement .period { grid-column: 1 / -1; padding-top: 0; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  margin-top: 32px;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .portrait {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}
.about-grid .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Contact / Footer ---------- */
.contact { background: var(--brand-dark); color: #f2f2ee; }
.contact h2 { color: #fff; }
.contact .section-eyebrow { color: #F5A06A; }
.contact .section-lede { color: #c8c9cc; }
.contact .channels { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 28px; font-size: 17px; }
.contact .channels a { color: #fff; font-weight: 600; }

.site-footer {
  background: var(--brand-dark); color: #8c9099;
  font-size: 13px; padding: 24px 0 32px;
  border-top: 1px solid #3a3e46;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 720px) {
  .site-header {
    /* drop the blur on mobile — GPU cost outweighs the polish on lower-end devices */
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header .container { flex-wrap: wrap; gap: 8px; }
  .site-header .logo img { height: 36px; }
  .nav-toggle { display: inline-flex; }

  /* Nav collapses behind the hamburger by default */
  .site-header nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .nav-toggle[aria-expanded="true"] ~ nav { display: block; }

  .site-header nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
  }
  .site-header nav li {
    border-top: 1px solid var(--rule);
  }
  .site-header nav li:first-child { border-top: none; }
  .site-header nav a {
    display: block;
    padding: 14px 4px;       /* ≥44px tap target */
    font-size: 16px;
  }
  .site-header nav .lang-switch {
    /* drop the chip styling on mobile — looks like a circle in a stacked menu */
    border: none;
    border-radius: 0;
    padding: 14px 4px;
    margin: 0;
    font-size: 16px;
    gap: 10px;
  }
  .site-header nav .lang-switch a {
    padding: 4px 12px;
    border-radius: 6px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
