/* ============================================================
   VARA5 Careers — shared styles  (warm editorial direction)
   ============================================================ */

:root {
  --ink: #1C1815;
  --ink-soft: #3D362D;
  --ink-muted: #8A8073;
  --ivory: #FFFFFF;        /* main page background (white) */
  --ivory-soft: #ECEAE5;
  --paper: #FFFFFF;        /* lightest panels */
  --charcoal: #1E1B17;     /* dark sections */
  --line: rgba(28, 24, 21, 0.14);
  --line-soft: rgba(28, 24, 21, 0.07);
  --accent: #B07C54;       /* muted copper (default) */
  --accent-soft: #C79A77;
  --accent-ink: #FAF7F1;

  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1280px;
  --gutter: clamp(20px, 3.4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.0;
}
.display em { font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.muted { color: var(--ink-muted); }

.lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(64px, 8vw, 120px) 0; }
.hr { height: 1px; background: var(--line); width: 100%; }
.rule {
  width: 64px; height: 1px;
  background: var(--accent);
  display: block;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
}
.nav-inner.brand-only { display: flex; align-items: center; justify-content: flex-start; max-width: none; padding-left: clamp(16px, 2vw, 24px); }
.brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.28em;
  font-weight: 500;
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}
.brand sup {
  font-size: 0.5em;
  letter-spacing: 0;
  margin-left: 1px;
  top: -0.2em;
}
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color .18s;
  position: relative;
  padding: 4px 0;
}
.nav-links a sup { font-size: 0.7em; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
.nav-right { display: flex; justify-content: flex-end; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 2px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta .arrow { width: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 17px 26px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.btn .arrow,
.nav-cta .arrow,
.link-cta .arrow {
  position: relative;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.btn .arrow { width: 22px; }
.btn .arrow::after,
.nav-cta .arrow::after,
.link-cta .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

/* underlined text link with arrow */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: color .2s, border-color .2s, gap .2s;
}
.link-cta .arrow { width: 18px; }
.link-cta:hover { color: var(--accent); border-color: var(--accent); gap: 18px; }
.link-cta.on-dark { color: var(--paper); border-color: rgba(250,247,241,0.4); }
.link-cta.on-dark:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.link-cta.accent { color: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */

.footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 40px 0;
}
.footer .container,
.footer-legal .container {
  /* Match the header brand alignment (.nav-inner.brand-only) */
  max-width: none;
  padding-left: clamp(16px, 2vw, 24px);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer .brand { color: var(--ivory); }
.footer-links {
  display: flex;
  gap: 40px;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(244,239,231,0.7);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent-soft); }
.footer-social { display: flex; gap: 18px; align-items: center; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(244,239,231,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(244,239,231,0.8);
  transition: all .2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-legal {
  margin-top: 0;
}
.footer-legal .container {
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244,239,231,0.5);
}

/* ---------- Image slot styling ---------- */
image-slot {
  --is-placeholder-color: rgba(28,24,21,0.4);
  background: var(--ivory-soft);
}
image-slot.on-dark { background: #2A2620; --is-placeholder-color: rgba(244,239,231,0.4); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }

@media (max-width: 920px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .footer .container { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
}
.brand-logo { height: 24px; width: auto; display: block; }
