/* ==========================================================================
   Juntos Teams — site styles
   Two typefaces only, used everywhere:
     Melodrama (display / headings)  ·  Satoshi (everything else)
   ========================================================================== */

:root {
  --cream: #F7F1E8;
  --sand: #EADBCB;
  --navy: #17263D;
  --navy-2: #22344F;
  --terracotta: #C85E45;
  --terracotta-dark: #B24F38;
  --coral: #F2A28E;
  /* Slightly deeper than before so body copy keeps AA contrast on the warm gradients. */
  --slate: #55607A;
  /* Terracotta for small text (eyebrows, links). The brand terracotta stays for buttons,
     dots and icons; this is a touch deeper so 13-15px text is readable on the warm tints. */
  --terracotta-ink: #AD4B34;
  --white: #FFFFFF;
  --line: rgba(23, 38, 61, 0.12);

  /* Warm paper tones that replace flat white on section backgrounds. Cards stay
     pure white so they separate from these. */
  --paper: #FFFBF5;
  --paper-deep: #F7EBDD;

  --font-display: 'Melodrama', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 38, 61, 0.04), 0 10px 30px rgba(23, 38, 61, 0.06);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);

  /* Paper grain. Tiny tiling turbulence, kept as a token so the opacity is
     tuned in one place rather than per-surface. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  /* Much lighter grain used as the top layer of every gradient below. It stops the
     smooth ramps from banding on 8-bit displays and keeps the paper feel. */
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");

  /* Section gradients. --bloom-x moves the coral glow to the other corner on
     alternating sections so consecutive bands don't repeat the same pattern. */
  --grad-paper:
    var(--grain-soft),
    radial-gradient(820px 520px at var(--bloom-x, 100%) -8%, rgba(242, 162, 142, 0.20), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  --grad-sand:
    var(--grain-soft),
    radial-gradient(760px 480px at var(--bloom-x, 0%) 110%, rgba(242, 162, 142, 0.22), transparent 70%),
    linear-gradient(180deg, #EBDCCC 0%, #F1E2D2 100%);
  --grad-navy:
    var(--grain-soft),
    radial-gradient(760px 460px at 88% 112%, rgba(242, 162, 142, 0.11), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  --grad-terracotta:
    var(--grain-soft),
    radial-gradient(860px 460px at 50% -10%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
}

/* ---------- Page transitions ---------- */
/* Cross-fade between full page navigations in browsers that support the View Transitions API.
   No-op (instant swap) everywhere else — progressive enhancement, no JS routing needed. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation-duration: .22s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Ambient page background: two soft colour blooms + a paper grain, both fixed
   so they read as the sheet the site is printed on rather than as page content.
   Sits behind everything; opaque sections above it stay clean. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 540px at 88% -8%, rgba(242, 162, 142, 0.20), transparent 70%),
    radial-gradient(640px 520px at -10% 32%, rgba(234, 219, 203, 0.55), transparent 72%),
    radial-gradient(900px 600px at 50% 108%, rgba(200, 94, 69, 0.08), transparent 72%),
    var(--cream);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.22;
  mix-blend-mode: multiply;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  main { animation: page-enter .5s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--coral); color: var(--navy); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 100; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.narrow-wide { max-width: 960px; }
.center { text-align: center; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: inherit;
}
.display-hero { font-size: clamp(46px, 7vw, 76px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.display-xl { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
.display-lg { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -0.02em; }
.display-md { font-size: clamp(26px, 3vw, 30px); }
.display-sm { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.15; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  margin: 0 0 18px;
}
.eyebrow a { text-decoration: none; }
.eyebrow-light { color: var(--coral); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--navy); opacity: 0.85; max-width: 38em; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-title { margin-bottom: clamp(36px, 5vw, 56px); max-width: 16em; }
.center .section-title { margin-left: auto; margin-right: auto; }

.prose p, .prose li { font-size: 17px; }
.prose h2 { margin: 1.6em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--terracotta-ink); }

.text-link { font-weight: 700; color: var(--terracotta-ink); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link-light { color: var(--coral); }
.section-link { margin: 36px 0 0; }
.section-link a { font-weight: 700; color: var(--terracotta-ink); text-decoration: none; }
.section-link a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .08s; }
.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: 0 6px 18px rgba(200, 94, 69, 0.25); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--terracotta); }
.btn-light:hover { background: var(--cream); }
.btn-sm { min-height: 42px; padding: 0 22px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row-center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.logo {
  font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1;
  letter-spacing: -0.01em; text-decoration: none; color: var(--navy);
}
.logo-light { color: var(--white); font-size: 26px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--navy);
  padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s ease, color .2s ease;
}
.main-nav ul a:hover { color: var(--terracotta); }
.main-nav ul a[aria-current="page"] { border-bottom-color: var(--terracotta); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--cream); padding: 16px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(23, 38, 61, 0.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .main-nav ul a[aria-current="page"] { color: var(--terracotta); border-bottom-color: var(--line); }
  .nav-cta { margin-top: 16px; }
}
@media (max-width: 960px) { body.nav-open { overflow: hidden; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
/* "White" sections are warm paper gradients now (see --grad-paper). The class name
   stays so templates don't change. */
.section-white { background: var(--grad-paper); }
.section-white:nth-of-type(even) { --bloom-x: 0%; }
/* Transparent rather than a cream fill, so the ambient body background shows
   through. Visually identical on a plain cream page, but it lets the blooms read. */
.section-cream { background: transparent; }
.section-sand { background: var(--grad-sand); }
.section-sand:nth-of-type(even) { --bloom-x: 100%; }
.section-navy { background: var(--grad-navy); color: var(--white); }
.section-navy .lead, .section-navy p { color: rgba(255, 255, 255, 0.82); }
.section-navy .display { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
  background:
    var(--grain-soft),
    radial-gradient(980px 600px at 92% -12%, rgba(242, 162, 142, 0.34), transparent 68%),
    radial-gradient(760px 520px at -6% 108%, rgba(234, 219, 203, 0.85), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 28px; }
.rounded-img { border-radius: var(--radius); width: 100%; object-fit: cover; background: var(--sand); }
.hero-media .rounded-img { aspect-ratio: 16 / 11; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.trust-bar { background: var(--navy); color: var(--white); padding: 26px 0; text-align: center; }
.trust-bar p { margin: 0; font-size: 15px; font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px);
  background:
    var(--grain-soft),
    radial-gradient(860px 520px at 94% -14%, rgba(242, 162, 142, 0.28), transparent 68%),
    radial-gradient(640px 440px at -6% 112%, rgba(234, 219, 203, 0.7), transparent 70%);
}
.page-hero .lead { margin-top: 24px; }
.page-hero-compact { padding-bottom: clamp(32px, 4vw, 48px); }
.page-hero-full { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 38, 61, 0.05), 0 18px 40px rgba(23, 38, 61, 0.1); }
.card-img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--sand); }
.card-body { padding: 26px 26px 30px; }
.card-body h3 { margin-bottom: 12px; }
.card-body p { color: var(--slate); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { background: var(--white); border-radius: var(--radius); padding: 26px 24px 32px; min-height: 180px; box-shadow: var(--shadow); }
.step-card h3 { margin-top: 18px; }
.step-card p { margin: 14px 0 0; color: var(--slate); font-size: 15px; }
.step-num { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--terracotta); }
.steps-detailed .step-card { background: var(--white); box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step-card { min-height: 0; } }

/* ---------- Split (image + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-copy h2 { margin-bottom: 22px; }
.split-media .rounded-img { aspect-ratio: 4 / 3.4; }
.split-wide-media { grid-template-columns: 1.3fr 1fr; }
.split-media-contain .rounded-img.map-img {
  aspect-ratio: 712 / 981; object-fit: contain; background: transparent; padding: clamp(4px, 1vw, 12px);
  max-width: 720px; margin: 0 auto;
}
@media (max-width: 860px) { .split-wide-media { grid-template-columns: 1fr; } }
.split-founder { grid-template-columns: minmax(0, 0.7fr) 1fr; }
.founder-img { aspect-ratio: 3 / 4 !important; max-width: 400px; }
.dash-list { list-style: none; padding: 0; margin: 24px 0 0; }
.dash-list li { font-weight: 500; padding: 6px 0; }
.dash-list li::before { content: '– '; color: var(--terracotta); }
@media (max-width: 860px) {
  .split, .split-founder { grid-template-columns: 1fr; }
  .founder-img { max-width: 340px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 700; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--terracotta); }
.faq-icon { position: relative; flex: 0 0 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor;
  transition: transform .25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { margin: 0 0 24px; color: var(--slate); max-width: 40em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Values / perks / compare ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 38, 61, 0.05), 0 18px 40px rgba(23, 38, 61, 0.1); }
.section-white .value-card { background: var(--white); box-shadow: none; border: 1px solid var(--line); }
.section-white .value-card:hover { box-shadow: 0 2px 4px rgba(23, 38, 61, 0.05), 0 18px 40px rgba(23, 38, 61, 0.1); }
.value-card h3 { margin: 14px 0 12px; }
.value-card h3:first-child { margin-top: 0; }
.value-card p { color: var(--slate); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }

.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perk-card { background: var(--white); padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.perk-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23, 38, 61, 0.1); z-index: 1; }
.perk-card h3 { margin-bottom: 12px; }
.perk-card p { color: var(--slate); margin: 0; font-size: 15px; }
.perk-grid-dark { grid-template-columns: repeat(2, 1fr); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.12); }
.perk-grid-dark .perk-card { background: var(--navy); }
.perk-grid-dark .perk-card p { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 860px) { .perk-grid, .perk-grid-dark { grid-template-columns: 1fr; } }

.compare { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-row { display: grid; grid-template-columns: 0.6fr 1fr 1fr; gap: 24px; padding: 22px 30px; border-top: 1px solid var(--line); align-items: center; }
.compare-head { border-top: 0; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.compare-label { font-weight: 700; }
.compare-them { color: var(--slate); }
.compare-us { font-weight: 500; }
.compare-us::before { content: '✓'; color: var(--terracotta); font-weight: 700; margin-right: 10px; }
@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 22px; }
  .compare-head { display: none; }
  .compare-them::before { content: 'Typical: '; font-weight: 700; }
}

/* ---------- Stories / empty states ---------- */
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.story-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.story-card blockquote { margin: 20px 0; font-size: 18px; }
.story-person { color: var(--slate); font-weight: 500; margin: 0; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

.empty-state { text-align: center; max-width: 720px; margin: 0 auto; padding: 24px 0; }
.empty-state .lead { margin: 22px auto 0; }
.empty-state-left { text-align: left; margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: none; }
.empty-state-left h3 { margin-bottom: 14px; }
/* :not(.btn) matters: without it this rule beat .btn-primary's white text (terracotta on terracotta). */
.empty-state-left a:not(.btn) { color: var(--terracotta-ink); }

/* ---------- Jobs ---------- */
.job-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 26px var(--gutter);
  margin: 0 calc(var(--gutter) * -1); border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color .2s ease, padding-left .2s ease;
}
.job-row:hover { background: var(--white); padding-left: calc(var(--gutter) + 6px); }
.job-title { transition: color .2s ease; }
.job-row:hover .job-title { color: var(--terracotta); }
.job-main { display: flex; flex-direction: column; gap: 6px; }
.job-summary { color: var(--slate); font-size: 15px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-arrow { font-size: 22px; color: var(--terracotta); transition: transform .2s ease; }
.job-row:hover .job-arrow { transform: translateX(4px); }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--sand); font-size: 13px; font-weight: 700; }
.apply-box { margin-top: 48px; background: var(--cream); border-radius: var(--radius); padding: 32px; }
@media (max-width: 720px) { .job-row { grid-template-columns: 1fr; gap: 12px; } .job-arrow { display: none; } }

/* ---------- Forms ---------- */
.section-form { padding-top: clamp(32px, 4vw, 56px); }
.form-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { background: var(--cream); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.optional { font-weight: 500; color: var(--slate); margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input[type="file"] {
  width: 100%; padding: 12px 14px; background: var(--white);
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm); font-size: 14px; cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 13px; cursor: pointer;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317263D' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(200, 94, 69, 0.14); }
.phone-input {
  display: flex; min-width: 0; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.phone-input:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(200, 94, 69, 0.14); }
.field .phone-input select {
  width: 46%; min-width: 0; border: 0; border-right: 1px solid var(--line);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding-left: 12px; padding-right: 28px; background-position: right 10px center;
  background-color: var(--cream); font-size: 14px;
}
.field .phone-input input { flex: 1; width: 0; min-width: 0; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding-left: 12px; }
.field .phone-input select:focus, .field .phone-input input:focus { box-shadow: none; }
.has-error input { border-color: var(--terracotta); }
/* The Cloudflare widget is a fixed ~300px box: centre it between the fields and the submit button. */
.q-public { margin: 8px 0 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.q-public-title { margin: 0 0 18px; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracotta-ink); }
.field-help { margin: -2px 0 10px; font-size: 14px; color: var(--slate); }
.field.has-error .chip span { border-color: rgba(200, 94, 69, 0.5); }
.field.has-error textarea, .field.has-error select { border-color: var(--terracotta); }
.turnstile-field { display: flex; justify-content: center; margin-bottom: 18px; }
.turnstile-field .cf-turnstile { max-width: 100%; }
.field-error { color: var(--terracotta-dark); font-size: 14px; font-weight: 500; margin: 8px 0 0; }
.alert {
  position: relative; background: var(--grad-paper); color: var(--navy);
  border: 1px solid rgba(200, 94, 69, 0.24); border-radius: var(--radius);
  padding: 18px 20px 18px 62px; margin-bottom: 22px; font-weight: 500; line-height: 1.55;
}
.alert::before {
  content: ''; position: absolute; top: 19px; left: 20px; width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23AD4B34' stroke-width='1.6'%3E%3Ccircle cx='13' cy='13' r='11'/%3E%3Cpath d='M13 7v7' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='18' r='.9' fill='%23AD4B34' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.alert p:last-child { margin-bottom: 0; }
.alert a { color: var(--terracotta-ink); }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--white);
  border: 1.5px solid var(--line); font-size: 15px; font-weight: 500; transition: all .2s ease;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--slate); margin: 16px 0 0; text-align: center; }
.form-note a { color: inherit; }
.form-aside { position: sticky; top: 110px; }
.form-aside h2 { margin-bottom: 24px; }
.mini-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.mini-steps li { counter-increment: s; position: relative; padding: 0 0 22px 48px; color: var(--slate); }
.mini-steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--terracotta);
}
.mini-steps strong { display: block; color: var(--navy); }
.aside-contact { border-top: 1px solid var(--line); padding-top: 22px; }
.aside-contact a { color: var(--terracotta-ink); font-weight: 700; }
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-terracotta); color: var(--white); padding: clamp(80px, 10vw, 128px) 0; text-align: center; }
.cta-band h2 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.02em; }
.cta-band p { margin: 20px auto 32px; font-size: 18px; color: rgba(255, 255, 255, 0.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-navy); color: rgba(255, 255, 255, 0.78); padding: 72px 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand p { margin: 18px 0 22px; max-width: 26em; }
.footer-title { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--coral); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.linkedin {
  display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700;
  padding: 10px 18px 10px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
}
.linkedin:hover { background: rgba(255, 255, 255, 0.08); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Decor layer — background vectors (views/partials/decor.ejs)
   One motif reused at every scale: overlapping arcs ("juntos" = together)
   and topographic contour lines. Everything is stroke-only, currentColor and
   very low opacity, so it adds depth without competing with the copy.
   ========================================================================== */

/* Opt-in on any section that hosts decor. overflow:hidden keeps oversized
   motifs from creating horizontal scroll; isolation keeps z-index local. */
.has-decor { position: relative; overflow: hidden; isolation: isolate; }
.has-decor > .container { position: relative; z-index: 1; }

.decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  color: var(--navy);
  opacity: 0.07;
}
/* On dark/terracotta bands the lines need to be white and even fainter. */
.section-navy .decor, .cta-band .decor, .trust-bar .decor, .site-footer .decor { color: var(--white); opacity: 0.08; }
.decor-warm { color: var(--terracotta); }

/* --- placements --- */
.decor-orbit {
  width: clamp(420px, 46vw, 680px); height: auto;
  top: 50%; right: -16%; transform: translateY(-50%);
  opacity: 0.14;
}
.decor-arcs {
  width: clamp(620px, 96vw, 1180px); height: auto;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.decor-topo {
  width: clamp(560px, 70vw, 980px); height: auto;
  left: -8%; top: 50%; transform: translateY(-50%);
}
.decor-topo-right { left: auto; right: -12%; }
.decor-topo-bottom { top: auto; bottom: -22%; transform: none; }
.decor-dots {
  width: clamp(150px, 18vw, 230px); height: auto;
  right: 3%; top: 10%;
  opacity: 0.1;
}
.decor-dots-bl { right: auto; left: 2%; top: auto; bottom: 8%; }
/* The dot field gets a radial fade so it reads as texture rather than as a
   cropped graphic parked in the corner. */
.decor-dots {
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 25%, transparent 100%);
}

/* A very slow drift keeps the hero and CTA from feeling like static wallpaper. */
@media (prefers-reduced-motion: no-preference) {
  .decor-orbit { animation: decor-drift 26s ease-in-out infinite alternate; }
  .cta-band .decor-arcs { animation: decor-breathe 20s ease-in-out infinite alternate; }
}
@keyframes decor-drift {
  from { transform: translateY(-50%) translateX(0) rotate(0deg); }
  to { transform: translateY(-52%) translateX(-14px) rotate(5deg); }
}
@keyframes decor-breathe {
  from { transform: translate(-50%, -50%) scale(1); }
  to { transform: translate(-50%, -50%) scale(1.06); }
}
@media (max-width: 760px) {
  /* Mobile is tight enough already — drop the broadest motif. */
  .decor-orbit { display: none; }
  .decor-dots { opacity: 0.07; }
}

/* ==========================================================================
   Icons (views/partials/icon.ejs)
   ========================================================================== */
.icon { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 84px; height: 84px; stroke-width: 1; }

/* Circular chip used where an icon needs to sit on top of an image or act as
   a card's visual anchor. */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 999px;
  background: var(--white); color: var(--terracotta);
  box-shadow: 0 2px 4px rgba(23, 38, 61, 0.06), 0 10px 24px rgba(23, 38, 61, 0.12);
}

/* --- icon placements per component --- */
/* The badge straddles the image/body seam. It lives inside .card-media so the
   card's own overflow:hidden (which rounds the photo corners) can't clip it. */
.card-media { position: relative; }
.card-badge { position: absolute; left: 22px; bottom: -27px; z-index: 2; transition: transform .25s ease; }
.card:hover .card-badge { transform: translateY(-3px) scale(1.04); }
.service-card .card-body { padding-top: 42px; }

.perk-card .icon, .value-card .icon { color: var(--terracotta); margin-bottom: 16px; display: block; }
.perk-grid-dark .perk-card .icon { color: var(--coral); }
.section-navy .value-card .icon { color: var(--coral); }

.trust-bar p { display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.trust-bar .icon { color: var(--coral); }

/* Numbered step markers get an arc ring, tying them to the global motif. */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1.5px solid rgba(200, 94, 69, 0.35);
  background: rgba(200, 94, 69, 0.06);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; color: var(--terracotta);
}
.value-card .step-num { margin-bottom: 16px; }

/* Icon badges need a slightly larger glyph than inline uses. */
.icon-badge .icon { width: 26px; height: 26px; }

/* Oversized quote glyph behind each story. */
.story-card { position: relative; overflow: hidden; }
.story-card .icon-quote {
  position: absolute; right: 18px; top: 14px;
  width: 92px; height: 92px; color: var(--terracotta); opacity: 0.1; stroke-width: 1;
}
.story-card > * { position: relative; z-index: 1; }

/* Empty states, 404 and thank-you pages: a real illustration rather than a
   lone paragraph in the middle of the viewport. */
.empty-illus { color: var(--terracotta); margin: 0 auto 28px; display: block; opacity: 0.9; }
.empty-state-left .empty-illus { margin: 0 0 20px; }
.page-hero-full .empty-illus { margin-bottom: 32px; }

/* Numbered markers in the booking aside. */
.mini-steps li::before { top: 2px; }

/* ==========================================================================
   The juntos dot
   The full stop from the wordmark, reused as a small brand mark: heading
   periods, bullets, the active nav item, live indicators and process nodes.
   ========================================================================== */
.dot { color: var(--terracotta); }
.section-navy .dot, .site-footer .dot, .trust-bar .dot { color: var(--coral); }
.cta-band .dot { color: var(--navy); }

/* Live indicator: a solid dot with a slow ring that radiates out of it. */
.live-dot { position: relative; display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--terracotta); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot::after { animation: dot-pulse 2.4s ease-out infinite; }
}
@keyframes dot-pulse { 0% { transform: scale(.5); opacity: .75; } 100% { transform: scale(1.7); opacity: 0; } }
.live-chip {
  display: inline-flex; align-items: center; gap: 12px; margin: 28px 0 0; padding: 9px 18px 9px 16px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 700;
}

/* Bullets: dots instead of dashes. */
.dash-list li { display: flex; align-items: baseline; gap: 12px; }
.dash-list li::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta);
  transform: translateY(-2px);
}

/* Active nav item: a dot under the link rather than an underline. */
.main-nav ul a { position: relative; }
.main-nav ul a[aria-current="page"] { border-bottom-color: transparent; }
.main-nav ul a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--terracotta);
}
@media (max-width: 960px) {
  .main-nav ul a[aria-current="page"]::after { left: auto; right: 2px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
}

/* A dot that rides a hairline under the sticky header as the page scrolls. */
.scroll-rail { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.scroll-rail::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--progress, 0) * 100%);
  background: linear-gradient(90deg, transparent, var(--terracotta)); opacity: .55;
}
.scroll-dot {
  position: absolute; left: calc(var(--progress, 0) * 100%); top: -3px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--terracotta); opacity: 0; transition: opacity .2s ease;
}
.site-header.is-scrolled .scroll-dot { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scroll-rail { display: none; } }

/* FAQ: an open question gets a dot, and the answer eases open where supported. */
.faq-item summary > span:first-child::before {
  content: ''; display: inline-block; width: 0; height: 7px; margin-right: 0; border-radius: 50%;
  background: var(--terracotta); vertical-align: middle; transform: translateY(-1px);
  transition: width .25s ease, margin-right .25s ease;
}
.faq-item[open] summary > span:first-child::before { width: 7px; margin-right: 12px; }
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: hidden; transition: height .32s ease, content-visibility .32s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* Oversized, cropped wordmark along the bottom of the footer. */
.site-footer { padding-bottom: 0; }
.footer-bottom { padding-bottom: 8px; }
.footer-mark {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(96px, 24vw, 340px);
  line-height: .86; letter-spacing: -0.04em; text-align: center; white-space: nowrap;
  color: rgba(255, 255, 255, 0.06); margin: 30px 0 -.2em; user-select: none; pointer-events: none;
}
.footer-mark .dot { color: var(--coral); opacity: .5; }

/* Back to top. */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--terracotta); color: var(--white);
  box-shadow: 0 8px 22px rgba(200, 94, 69, 0.38);
  opacity: 0; transform: translateY(10px) scale(.9); visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; visibility: visible; }
.to-top:hover { background: var(--terracotta-dark); }
body.has-apply-bar .to-top { bottom: 92px; }

/* Process rail above the home / how-we-work step cards: dot nodes on a dashed line
   that fills in as the nodes scroll into view. Aligned to the same grid as .steps. */
.path-rail { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; margin: 0 0 20px; justify-items: center; }
.path-rail::before, .path-rail::after {
  content: ''; position: absolute; top: 50%; left: calc(50% / var(--n, 4)); height: 0; transform: translateY(-50%);
}
.path-rail::before { right: calc(50% / var(--n, 4)); border-top: 1.5px dashed rgba(200, 94, 69, 0.38); }
.path-rail::after {
  width: calc((100% - 100% / var(--n, 4)) * var(--fill, 1)); border-top: 1.5px solid var(--terracotta);
  transition: width .7s cubic-bezier(.4, 0, .2, 1);
}
.path-node {
  position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%;
  background: var(--terracotta); border: 1.5px solid var(--terracotta); box-shadow: 0 0 0 6px rgba(200, 94, 69, 0.16);
  transition: background-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.path-rail.is-armed .path-node:not(.is-lit) { background: var(--white); border-color: rgba(200, 94, 69, 0.5); box-shadow: none; transform: scale(.85); }
@media (max-width: 960px) { .path-rail { display: none; } }

/* Hiring path: numbered dot nodes joined by a line; vertical on small screens. */
.hpath { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 28px; }
.hpath-step { position: relative; padding-top: 56px; }
.hpath-node {
  position: absolute; top: 0; left: 0; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: var(--white); background: var(--terracotta); border: 1.5px solid var(--terracotta);
  box-shadow: 0 0 0 7px rgba(200, 94, 69, 0.14);
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease;
}
.hpath-step::before {
  content: ''; position: absolute; top: 20px; left: 52px; right: -16px; border-top: 1.5px dashed rgba(200, 94, 69, 0.4);
}
.hpath-step:last-child::before { display: none; }
.hpath-step h3 { margin: 0 0 10px; }
.hpath-step p { margin: 0; color: var(--slate); font-size: 15px; max-width: 22em; }
.hpath.is-armed .hpath-step:not(.is-lit) .hpath-node { color: var(--terracotta); background: var(--white); border-color: rgba(200, 94, 69, 0.45); box-shadow: none; }
.hpath-dark .hpath-step p { color: rgba(255, 255, 255, 0.75); }
.hpath-dark.is-armed .hpath-step:not(.is-lit) .hpath-node { background: var(--navy); color: var(--coral); }
/* Vertical layout: always on small screens, and on request (.hpath-stack) in narrow columns. */
@media (max-width: 900px) {
  .hpath { grid-template-columns: 1fr; gap: 0; }
  .hpath-step { padding: 4px 0 30px 64px; min-height: 64px; }
  .hpath-step::before { top: 46px; bottom: 0; left: 20px; right: auto; border-top: 0; border-left: 1.5px dashed rgba(200, 94, 69, 0.4); }
  .hpath-step:last-child { padding-bottom: 0; }
}
.hpath-stack { grid-template-columns: 1fr; gap: 0; }
.hpath-stack .hpath-step { padding: 4px 0 30px 64px; min-height: 64px; }
.hpath-stack .hpath-step::before { top: 46px; bottom: 0; left: 20px; right: auto; border-top: 0; border-left: 1.5px dashed rgba(200, 94, 69, 0.4); }
.hpath-stack .hpath-step:last-child { padding-bottom: 0; }
.hpath-stack .hpath-step p { max-width: 36em; }

/* ---------- Working-hours overlap strip ---------- */
.tz { --tz-label: 152px; --tz-gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }
.tz-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px; margin-bottom: 24px; }
.tz-title { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.tz-summary { margin: 0; color: var(--slate); font-size: 15px; }
.tz-body { position: relative; }
.tz-rows { list-style: none; margin: 0; padding: 0; }
.tz-row { display: grid; grid-template-columns: var(--tz-label) 1fr; align-items: center; gap: var(--tz-gap); padding: 8px 0; }
.tz-row + .tz-row.tz-latam:first-of-type, .tz-row.tz-us + .tz-row.tz-latam { margin-top: 10px; padding-top: 18px; border-top: 1px dashed var(--line); }
.tz-city { display: flex; flex-direction: column; font-weight: 700; font-size: 15px; line-height: 1.2; }
.tz-clock { font-weight: 500; color: var(--slate); font-size: 12.5px; }
.tz-track { position: relative; height: 14px; border-radius: 999px; background: rgba(23, 38, 61, 0.06); overflow: hidden; }
.tz-seg { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.tz-us .tz-seg { background: var(--navy); }
.tz-latam .tz-seg { background: var(--terracotta); }
.tz-overlay { position: absolute; top: 0; bottom: 30px; left: calc(var(--tz-label) + var(--tz-gap)); right: 0; pointer-events: none; }
.tz-shared { position: absolute; top: -3px; bottom: -3px; display: none; border-radius: 12px; background: rgba(242, 162, 142, 0.2); border: 1.5px dashed rgba(200, 94, 69, 0.55); }
.tz-now { position: absolute; top: -8px; bottom: -2px; left: 0; width: 0; display: none; border-left: 1.5px solid var(--terracotta); }
.tz-now-dot { position: absolute; top: -2px; left: -5.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(200, 94, 69, 0.2); }
.tz.is-live .tz-shared, .tz.is-live .tz-now { display: block; }
.tz-axis { display: flex; justify-content: space-between; margin: 10px 0 0 calc(var(--tz-label) + var(--tz-gap)); font-size: 12px; color: var(--slate); }
.tz-note { margin: 18px 0 0; font-size: 13px; color: var(--slate); }
@media (max-width: 640px) {
  .tz { --tz-label: 92px; --tz-gap: 12px; }
  .tz-city { font-size: 14px; }
  .tz-axis span:nth-child(even) { visibility: hidden; }
}

/* ---------- Facts strip (navy band under the home hero) ---------- */
.trust-bar { background: var(--grad-navy); text-align: left; padding: clamp(34px, 4vw, 52px) 0 clamp(26px, 3vw, 36px); }
.facts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.fact-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em; color: var(--white); }
.fact-value .fact-affix { color: var(--coral); }
.fact-label { font-size: 14px; color: rgba(255, 255, 255, 0.74); }
.trust-bar .facts-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* ---------- Hero photo: offset ring + floating chips ---------- */
.hero-frame { position: relative; }
.hero-frame::before {
  content: ''; position: absolute; inset: 20px -20px -20px 20px; z-index: 0; border: 1.5px solid rgba(200, 94, 69, 0.45);
  border-radius: calc(var(--radius) + 4px); pointer-events: none;
}
.hero-frame > img { position: relative; z-index: 1; }
.chip-float {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 13px;
  background: var(--white); border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 2px 4px rgba(23, 38, 61, 0.06), 0 14px 30px rgba(23, 38, 61, 0.16);
}
.chip-float .icon { color: var(--terracotta); }
.chip-float-a { top: 9%; left: -7%; }
.chip-float-b { bottom: 22%; left: -10%; }
.chip-float-c { bottom: -6%; right: 7%; }
@media (prefers-reduced-motion: no-preference) {
  .chip-float { animation: chip-float 6s ease-in-out infinite alternate; }
  .chip-float-b { animation-duration: 7.2s; animation-delay: -2s; }
  .chip-float-c { animation-duration: 6.6s; animation-delay: -4s; }
}
@keyframes chip-float { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@media (max-width: 900px) {
  .hero-frame::before { inset: 14px -10px -14px 10px; }
  .chip-float-a { left: 12px; top: 12px; }
  .chip-float-b { display: none; }
  .chip-float-c { right: 12px; bottom: -16px; }
}

/* ---------- Inner-page hero vectors ---------- */
.decor-hero { width: clamp(300px, 40vw, 560px); height: auto; left: auto; right: -2%; top: 50%; transform: translateY(-50%); opacity: .2; }
@media (max-width: 760px) { .decor-hero { width: 300px; right: -90px; opacity: .14; } }

/* ---------- Soft section edges ----------
   Sand, navy and CTA bands start with a gentle wave. The band pulls up under the
   section above and is masked, so whatever is above shows through the gaps and no
   colour has to be matched by hand. */
.section-sand, .section-navy, .cta-band {
  margin-top: -38px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V18C150 42 300 40 450 24S750 -2 900 16 1100 38 1200 14V40Z'/%3E%3C/svg%3E") top / 100% 41px no-repeat, linear-gradient(#000 0 0) 0 40px / 100% calc(100% - 40px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V18C150 42 300 40 450 24S750 -2 900 16 1100 38 1200 14V40Z'/%3E%3C/svg%3E") top / 100% 41px no-repeat, linear-gradient(#000 0 0) 0 40px / 100% calc(100% - 40px) no-repeat;
}
.section-sand, .section-navy { padding-top: calc(var(--section-y) + 38px); }
.cta-band { padding-top: calc(clamp(80px, 10vw, 128px) + 38px); }

/* ---------- Micro-interactions ---------- */
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.card:hover .card-badge { transform: translateY(-3px) scale(1.05) rotate(-6deg); }
.text-link, .section-link a {
  padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .3s ease;
}
.text-link:hover, .section-link a:hover { text-decoration: none; background-size: 100% 1.5px; }

/* ---------- 404 / error ---------- */
.err-code {
  display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.6vw, 18px);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(110px, 22vw, 220px); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--navy); margin: 0 0 12px;
}
.err-zero { display: inline-flex; width: .78em; height: .78em; color: var(--terracotta); -webkit-text-stroke: 0; }
.err-zero .icon { width: 100%; height: 100%; stroke-width: .75; }
.err-dot { width: .13em; height: .13em; border-radius: 50%; background: var(--terracotta); align-self: flex-end; margin-bottom: .14em; }

/* ==========================================================================
   Careers
   ========================================================================== */
.career-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.career-hero .page-hero-copy .lead { margin-top: 24px; }
.pill-stack { list-style: none; margin: 0; position: relative; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 12px 0 12px clamp(0px, 4vw, 48px); }
.pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 2px 4px rgba(23, 38, 61, 0.05), 0 14px 30px rgba(23, 38, 61, 0.1);
}
.pill .icon { color: var(--terracotta); }
.pill:nth-child(2) { margin-left: clamp(0px, 4vw, 44px); }
.pill:nth-child(3) { margin-left: clamp(0px, 1.5vw, 16px); }
@media (max-width: 900px) { .career-hero-grid { grid-template-columns: 1fr; } .pill-stack { padding-left: 0; flex-direction: row; flex-wrap: wrap; } .pill:nth-child(n) { margin-left: 0; } }

.roles-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(26px, 4vw, 40px); }
.roles-head .section-title { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip:hover { border-color: var(--terracotta); }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.job-list li[hidden] { display: none; }

.job-row { grid-template-columns: auto 1fr minmax(0, 340px) auto; gap: 22px; }
.job-badge { width: 54px; height: 54px; box-shadow: none; border: 1px solid var(--line); background: var(--cream); transition: background-color .2s ease, color .2s ease, transform .25s ease; }
.job-row:hover .job-badge { background: var(--terracotta); color: var(--white); transform: rotate(-6deg); }
.job-titleline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.new-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 10px; border-radius: 999px;
  background: rgba(200, 94, 69, 0.12); color: var(--terracotta-dark); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.job-posted { font-size: 13px; color: var(--slate); }
.job-meta { justify-content: flex-end; }
.tag-icon { display: inline-flex; align-items: center; gap: 6px; }
.tag-icon .icon { color: var(--terracotta); }
.job-arrow {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: 18px;
  border: 1.5px solid rgba(200, 94, 69, 0.4); transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.job-row:hover .job-arrow { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); transform: translateX(4px); }
@media (max-width: 960px) { .job-row { grid-template-columns: auto 1fr auto; } .job-meta { grid-column: 2 / 3; justify-content: flex-start; } }
@media (max-width: 720px) { .job-row { grid-template-columns: auto 1fr; align-items: start; } .job-arrow { display: none; } .job-meta { grid-column: 1 / -1; } }

.talent-card { position: relative; }
.talent-card .btn-row { margin-top: 24px; }
.talent-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 4px; }
.talent-list li { display: flex; align-items: baseline; gap: 12px; color: var(--navy); font-weight: 500; }
.talent-list li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); transform: translateY(-2px); }

.faq-narrow { max-width: 820px; }

/* ==========================================================================
   Job page
   ========================================================================== */
.job-hero .eyebrow a { display: inline-flex; align-items: center; gap: 8px; }
.back-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.back-pill:hover { background: var(--white); color: var(--terracotta); }
.job-hero .job-meta { justify-content: flex-start; margin-top: 28px; }
.job-hero .btn-row { margin-top: 28px; }
.job-facts { font-size: 14px; color: var(--slate); margin: 22px 0 0; display: inline-flex; align-items: center; gap: 8px; }

.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.job-main-col { min-width: 0; }
.prose-job { font-size: 17px; max-width: 720px; }
.prose-job > div, .prose-job > p { margin: 0 0 1em; }
.prose-job div > strong:only-child, .prose-job h1, .prose-job h2, .prose-job h3 {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); margin: 1.7em 0 .15em;
}
.prose-job div > strong:only-child::after, .prose-job h1::after, .prose-job h2::after, .prose-job h3::after { content: '.'; color: var(--terracotta); }
.prose-job > div:first-child > strong:only-child, .prose-job > h1:first-child, .prose-job > h2:first-child { margin-top: 0; }
.prose-job ul, .prose-job ol { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose-job li { position: relative; padding-left: 26px; margin: 8px 0; }
.prose-job li::before { content: ''; position: absolute; left: 5px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
.prose-job a { color: var(--terracotta-ink); text-underline-offset: 3px; }
.prose-job blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--terracotta); color: var(--slate); font-style: italic; }

.glance {
  position: sticky; top: 108px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.glance-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracotta-ink); }
.glance-list { list-style: none; margin: 0 0 22px; padding: 0; }
.glance-list li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.glance-list li:first-child { border-top: 0; padding-top: 4px; }
.glance-list .icon { color: var(--terracotta); margin-top: 3px; }
.glance-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); }
.glance-value { display: block; font-weight: 700; line-height: 1.35; }
.glance .btn { width: 100%; }
.glance-perks { margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.glance-perks h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); margin: 0 0 10px; }
.glance-perks ul { list-style: none; margin: 0; padding: 0; }
.glance-perks li { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; font-weight: 500; }
.glance-perks li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); transform: translateY(-2px); }
.glance-contact { margin: 18px 0 0; font-size: 14px; color: var(--slate); }
.glance-contact a { color: var(--terracotta-ink); font-weight: 700; }
@media (max-width: 960px) { .job-layout { grid-template-columns: 1fr; } .glance { position: static; order: -1; } }

.job-block { margin-top: clamp(44px, 6vw, 72px); }
.job-block > .eyebrow { margin-bottom: 14px; }
.job-block > h2 { margin-bottom: clamp(26px, 4vw, 40px); }
.apply-box {
  margin-top: clamp(44px, 6vw, 72px); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px);
}
.apply-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.apply-head .icon-badge { flex: none; width: 52px; height: 52px; box-shadow: none; border: 1px solid var(--line); }
.apply-head h2 { margin: 0; }
.apply-head p { margin: 4px 0 0; color: var(--slate); font-size: 15px; }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; text-decoration: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.role-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 38, 61, 0.05), 0 18px 40px rgba(23, 38, 61, 0.1); }
.role-card .icon-badge { width: 48px; height: 48px; box-shadow: none; border: 1px solid var(--line); background: var(--cream); }
.role-card p { margin: 0; color: var(--slate); font-size: 15px; }
.role-card .job-meta { justify-content: flex-start; }
.role-card .text-link { margin-top: auto; }
@media (max-width: 760px) { .role-grid { grid-template-columns: 1fr; } }
.share-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 28px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.share-card h2 { margin: 0 0 4px; }
.share-card p { margin: 0; color: var(--slate); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sticky apply bar, small screens only. */
.apply-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 251, 245, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s ease;
}
.apply-bar.is-visible { transform: none; }
.apply-bar-title { font-weight: 700; font-size: 15px; line-height: 1.25; display: flex; flex-direction: column; min-width: 0; }
.apply-bar-title small { font-weight: 500; color: var(--slate); font-size: 13px; }
@media (max-width: 960px) { .apply-bar { display: flex; } }
@media print { .apply-bar, .to-top, .scroll-rail { display: none !important; } }

/* Terracotta full stop in the wordmark. */
.logo-dot { color: var(--terracotta); }
.logo-light .logo-dot { color: var(--coral); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Spacing refinements ---------- */
.display + .lead { margin-top: 20px; }
.page-hero .display { max-width: 14em; }
.page-hero-full .display { margin-left: auto; margin-right: auto; }
.prose-col { max-width: 760px; }

/* ----- Tables made in the admin editor (blog articles, job descriptions, candidate tests): see src/lib/rich-tables.js ----- */
.rt-table-wrap { max-width: 100%; margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.rt-table-wrap:focus-visible { outline: 3px solid rgba(200, 94, 69, .4); outline-offset: 2px; }
.rt-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; color: var(--navy); }
.rt-table th, .rt-table td { min-width: 7.5em; padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rt-table td + td, .rt-table th + th, .rt-table th + td, .rt-table td + th { border-left: 1px solid var(--line); }
.rt-table thead th { background: var(--cream); font-weight: 700; border-bottom: 2px solid rgba(23, 38, 61, 0.25); }
.rt-table tbody tr:nth-child(even) td { background: rgba(247, 241, 232, .45); }
.rt-table tbody tr:last-child td, .rt-table tbody tr:last-child th { border-bottom: 0; }
.rt-table tbody th { font-weight: 700; background: rgba(247, 241, 232, .6); }
.rt-table a { color: var(--terracotta-ink); }
.prose .rt-table-wrap, .prose-job .rt-table-wrap { margin: 1.4em 0 1.8em; }
.prose-job .rt-table th, .prose-job .rt-table td, .prose .rt-table th, .prose .rt-table td { font-size: 15px; }
@media (max-width: 640px) { .rt-table { font-size: 14px; } .rt-table th, .rt-table td { padding: 8px 10px; min-width: 6.5em; } }
