/* ==========================================================================
   TSW Labor — Site stylesheet
   Brand: Outfit · off-white + charcoal base · indigo secondary ·
   iris / mustard / tangerine for details only (Brand Guide, p. 24–25)
   ========================================================================== */

:root {
  /* Brand palette */
  --indigo: #3e2c8f;
  --indigo-deep: #2a1d66;
  --iris: #7479f0;
  --mustard: #ffb800;
  --tangerine: #ff8000;
  --charcoal: #111111;

  /* Neutrals */
  --bg: #faf7f2;
  --cream: #f3ece1;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #3b3a38;
  --muted: #66625c;
  --line: rgba(20, 20, 20, 0.12);
  --line-strong: rgba(20, 20, 20, 0.22);

  /* Type */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.7rem, 6.2vw, 5.6rem);
  --fs-h1: clamp(2.4rem, 5vw, 4.4rem);
  --fs-h2: clamp(2rem, 3.8vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 1.8vw, 1.7rem);
  --fs-lead: clamp(1.1rem, 1.35vw, 1.3rem);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; }
::selection { background: var(--iris); color: #fff; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 6px; }

.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: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--cream { background: var(--cream); }
.section--white { background: var(--surface); }

.grid-2 { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.split-head { display: grid; gap: 24px 64px; grid-template-columns: 1fr; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.1fr 0.9fr; } }
.split-head p { max-width: 520px; }

/* ---------- Typography ---------- */
.display { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.035em; }
.h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.accent { color: var(--indigo); }
.text-balance { text-wrap: balance; }
.prose p + p { margin-top: 1.1em; }

/* Label pill (● About us) */
.label {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 20px;
}
.label--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px;
  min-height: 52px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.975rem; font-weight: 400; letter-spacing: 0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .btn-ico {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  transition: transform .35s var(--ease), background .3s;
}
.btn .btn-ico svg { width: 16px; height: 16px; }
.btn:hover .btn-ico { transform: translateX(3px) rotate(-45deg); }
.btn--primary { --btn-bg: var(--indigo); }
.btn--primary:hover { --btn-bg: var(--indigo-deep); }
/* Purple "Request Labor" buttons turn orange on hover */
.btn--primary[href$="#request"]:hover, .btn--primary[href$="#request"]:focus-visible,
[data-form="request-labor"] .btn--primary:hover, [data-form="request-labor"] .btn--primary:focus-visible { --btn-bg: var(--tangerine); }
.btn--dark:hover { --btn-bg: var(--indigo); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light .btn-ico { background: var(--indigo); color: #fff; }
.btn--light:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--light:hover .btn-ico { background: #fff; color: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost .btn-ico { background: var(--ink); color: #fff; }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn--ghost:hover .btn-ico { background: #fff; color: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light .btn-ico { background: #fff; color: var(--ink); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.btn--ghost-light:hover .btn-ico { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 6px 6px 6px 18px; font-size: 0.9rem; }
.btn--sm .btn-ico { width: 32px; height: 32px; }
.btn--plain { padding: 0 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 400;
  padding-bottom: 6px; border-bottom: 1px solid var(--line-strong);
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { border-color: var(--ink); gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: #fff;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s, transform .35s var(--ease);
}
.site-header .header-inner { display: flex; align-items: center; gap: 24px; height: 84px; position: relative; }
.site-header.is-scrolled, .site-header--light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .header-inner { height: 72px; }
/* Home: transparent glass with white text over the hero photo, solid white once past it */
.site-header--glass:not(.is-scrolled) {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}
.menu-open .site-header--glass { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: flex; align-items: center; flex-shrink: 0; transition: opacity .25s; }
.brand:hover { opacity: .75; }
.brand svg { height: 30px; width: auto; }
.brand svg .logo-symbol { color: inherit; }
.site-header.is-scrolled .brand .logo-symbol, .site-header--light .brand .logo-symbol { color: var(--indigo); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li.has-menu { position: static; }
.main-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 0.95rem; font-weight: 400;
  transition: background .25s;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current="page"] { background: rgba(255,255,255,.12); }
.site-header.is-scrolled .main-nav > ul > li > a:hover, .site-header--light .main-nav > ul > li > a:hover,
.site-header.is-scrolled .main-nav > ul > li > a[aria-current="page"], .site-header--light .main-nav > ul > li > a[aria-current="page"] { background: rgba(20,20,20,.06); }
.main-nav a[aria-current="page"] { font-weight: 500; }
.main-nav .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.has-menu:hover .chev, .has-menu:focus-within .chev, .has-menu.is-open .chev { transform: rotate(180deg); }

.header-phone { display: none; font-size: 0.9rem; white-space: nowrap; opacity: .9; }
.header-phone b { font-weight: 500; }
@media (min-width: 1360px) { .header-phone { display: inline-flex; gap: 6px; align-items: center; } }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% - 10px); left: 50%;
  width: min(760px, 92vw);
  transform: translate(-50%, 8px);
  opacity: 0; visibility: hidden;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: none;
  padding: 14px;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; inset: -32px 0 auto 0; height: 32px; }
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-list { display: grid; padding: 4px 10px; }
.mega-list li + li { border-top: 1px solid var(--line); }
.mega-list a { display: block; padding: 14px 6px; transition: color .2s, padding .3s var(--ease); }
.mega-list a:hover { padding-left: 12px; }
.mega-list a:hover strong { color: var(--indigo); }
.mega-list a > span { margin-top: 0; }
.mega-list strong { display: block; font-weight: 500; font-size: 0.95rem; color: var(--ink); line-height: 1.3; }
.mega-list span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega-list .mega-tag { display: inline-block; font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: rgba(116,121,240,.14); color: var(--indigo); margin-left: 6px; vertical-align: 2px; font-weight: 500; }
.mega-side { border-radius: 14px; background: var(--tangerine); color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; }
.mega-side h4 { color: #fff; font-size: 1.35rem; line-height: 1.15; }
.mega-side p { font-size: 0.9rem; color: #fff; margin-top: 10px; }
.mega-side .mega-phone { font-size: 1.1rem; font-weight: 500; color: #fff; }
.mega-side .outline-t { position: absolute; right: -40px; bottom: -40px; width: 180px; color: rgba(255,255,255,.14); }

/* Mobile nav */
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; border-color: rgba(255,255,255,.35); background: transparent; cursor: pointer; place-items: center; }
.site-header.is-scrolled .menu-toggle, .site-header--light .menu-toggle { border-color: var(--line-strong); }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); color: var(--ink);
  padding: 100px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.menu-open .site-header { color: var(--ink); background: var(--bg); }
.menu-open .site-header .logo-symbol { color: var(--indigo); }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav > ul > li > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 1.5rem; font-weight: 400; color: var(--ink); letter-spacing: -0.02em; }
.mobile-nav .sub { padding: 0 0 16px; display: grid; gap: 4px; }
.mobile-nav .sub a { display: block; padding: 8px 0 8px 14px; border-left: 1px solid var(--line-strong); color: var(--ink-2); font-size: 1rem; }
.mobile-nav .mobile-contact { margin-top: auto; display: grid; gap: 12px; }
.mobile-nav .mobile-contact a.btn { justify-content: space-between; }

@media (max-width: 1240px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
}
@media (min-width: 1241px) { .mobile-nav { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
  background: #1a1a1a;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.05) 28%, rgba(10,10,10,.2) 55%, rgba(10,10,10,.82) 100%),
    linear-gradient(90deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 60%);
}
.hero-inner { display: grid; gap: 40px; align-items: end; padding-bottom: clamp(40px, 6vw, 72px); padding-top: 140px; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; } .hero-intro { justify-self: end; } }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; font-size: 0.9rem; color: rgba(255,255,255,.9); }
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags span + span::before { content: ""; width: 1px; height: 12px; background: rgba(255,255,255,.45); margin-right: 12px; }
.hero-intro p { font-size: var(--fs-lead); line-height: 1.5; color: rgba(255,255,255,.92); max-width: 480px; }
.hero-intro .btn-row { margin-top: 28px; }
.hero h1 { color: #fff; font-size: var(--fs-display); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
@media (max-width: 999px) { .hero-inner { gap: 28px; } }
.hero-strip { border-top: 1px solid rgba(255,255,255,.22); }
.hero-strip .container { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; padding-block: 18px; font-size: 0.875rem; color: rgba(255,255,255,.85); }
.hero-strip .container > div { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.hero-strip a:hover { color: #fff; }
.hero-strip b { color: #fff; font-weight: 500; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding-top: calc(84px + clamp(56px, 8vw, 110px)); padding-bottom: clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero .crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero h1 { font-size: var(--fs-h1); max-width: 14ch; text-wrap: balance; }
.page-hero-grid { display: grid; gap: 32px 64px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.page-hero-grid .lead { max-width: 520px; }
.page-hero-grid .btn-row { margin-top: 28px; }
.page-hero .outline-t { position: absolute; right: -6%; top: 70px; width: clamp(260px, 34vw, 520px); color: rgba(62,44,143,.09); pointer-events: none; z-index: -1; }
.page-hero { isolation: isolate; }

.hero-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--cream); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .hero-image { aspect-ratio: 4 / 3; } }

/* ---------- Media ---------- */
.media { border-radius: var(--radius); overflow: hidden; background: var(--cream); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a:hover .media img { transform: scale(1.03); }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media-note { position: absolute; left: 16px; bottom: 16px; font-size: 0.75rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); backdrop-filter: blur(6px); }

/* ---------- Intro / statement ---------- */
.statement { font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.18; letter-spacing: -0.025em; color: var(--ink); font-weight: 400; text-wrap: pretty; }
.statement .soft { color: var(--indigo); }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; color: var(--ink); font-weight: 400; }
.chip--dot::before { content: none; }
.section--white .chip { background: var(--bg); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px 24px 8px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stat { border-bottom: 0; } .stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); } }
@media (max-width: 899px) { .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); } .stat { padding-bottom: 28px; } }
.stat-num { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-weight: 400; }
.stat-num sup { font-size: 0.45em; color: var(--indigo); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stat p { margin-top: 14px; font-size: 0.95rem; color: var(--muted); max-width: 240px; }
.stat strong { display: block; color: var(--ink); font-weight: 500; margin-top: 16px; font-size: 1rem; }

/* ---------- Service lines ---------- */
.lines { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lines { grid-template-columns: 1fr 1fr; } }
.line-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.line-card .media { border-radius: 0; aspect-ratio: 16 / 10; }
.line-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; flex: 1; }
.line-num { font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; }
.line-num b { color: var(--indigo); font-weight: 500; }
.line-body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
.line-body > p { color: var(--ink-2); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.975rem; color: var(--ink-2); line-height: 1.45; }
.ticks li::before { content: ""; width: 12px; height: 1px; margin-top: 11px; background: var(--indigo); }
.ticks--cols { grid-template-columns: 1fr; }
@media (min-width: 640px) { .ticks--cols { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.line-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.line-foot b { color: var(--ink); font-weight: 500; }

/* Capability band (Healthcare & ICRA) */
.capability {
  margin-top: 20px; border-radius: var(--radius-lg);
  background: var(--cream); border: 1px solid var(--line);
  padding: clamp(24px, 3.5vw, 44px);
  display: grid; gap: 24px 48px; grid-template-columns: 1fr; align-items: center;
  position: relative; overflow: hidden;
}
.section--cream .capability { background: var(--surface); }
@media (min-width: 900px) { .capability { grid-template-columns: 1.1fr 1fr; } }
.capability-badge { width: 64px; height: 64px; border-radius: 18px; background: var(--indigo); color: #fff; display: grid; place-items: center; }
.capability-badge svg { width: 28px; height: 28px; }
.capability h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.15; }
.capability .eyebrow { font-size: 0.8rem; color: var(--indigo); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.capability p.note { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }

/* ---------- Numbered list (Why choose) ---------- */
.why { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .why { grid-template-columns: 1fr 1fr; } }
.why-item { padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
@media (min-width: 800px) {
  .why-item:nth-child(odd) { padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line); }
  .why-item:nth-child(even) { padding-left: clamp(24px, 4vw, 56px); }
}
.why-num { font-size: 0.9rem; color: var(--indigo); font-weight: 500; padding-top: 6px; }
.why-item h3 { font-size: 1.45rem; line-height: 1.2; }
.why-item .kicker { display: block; font-size: 0.95rem; color: var(--muted); margin-top: 4px; }
.why-item p { margin-top: 14px; }

/* ---------- Cards grid ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 14px; transition: border-color .3s, background .3s; }
a.card:hover, .card--lift:hover { border-color: var(--indigo); background: #fff; }
a.card:hover h3, .card--lift:hover h3 { color: var(--indigo); }
.section--white .card { background: var(--bg); }
.card-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); color: var(--indigo); }
.section--cream .card-ico { background: var(--bg); }
.card-ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.35rem; line-height: 1.2; }
.card p { font-size: 0.975rem; }
.card .benefit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink); }
.card .benefit span { display: block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); }

/* ---------- Industries ---------- */
.industry { display: grid; gap: 24px; grid-template-columns: 1fr; padding: clamp(28px, 3.5vw, 48px) 0; border-top: 1px solid var(--line); align-items: start; }
.industry:last-of-type { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .industry { grid-template-columns: 80px 1fr 1.2fr; gap: 48px; } }
.industry .idx { font-size: 0.9rem; color: var(--indigo); font-weight: 500; padding-top: 8px; }
.industry h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; }

/* ---------- Promise ---------- */
.promise-list { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 700px) { .promise-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .promise-list { grid-template-columns: repeat(4, 1fr); } }
.promise-list li { padding: 28px 24px 28px 0; border-top: 1px solid rgba(255,255,255,.2); font-size: 1.2rem; line-height: 1.35; color: #fff; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1100px) { .promise-list li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); } }
.promise-list li span { font-size: 0.85rem; color: var(--mustard); font-weight: 500; }

/* ---------- Dark/indigo band ---------- */
.band { background: var(--indigo); color: rgba(255,255,255,.85); position: relative; overflow: hidden; isolation: isolate; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: rgba(255,255,255,.86); }
.band .outline-t { position: absolute; z-index: -1; color: rgba(255,255,255,.1); width: clamp(360px, 46vw, 680px); right: -8%; top: 50%; transform: translateY(-50%); pointer-events: none; }
.band--ink { background: var(--charcoal); }
.band--ink .outline-t { color: rgba(255,255,255,.06); }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; min-height: 300px; transition: border-color .3s; }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.project-idx { font-size: 0.85rem; color: var(--muted); }
.project h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; max-width: 22ch; }
.project dl { margin: 0; display: grid; gap: 14px; margin-top: auto; }
.project dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.project dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; }
.scope span { font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.pin { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--indigo); display: grid; place-items: center; flex-shrink: 0; }
.pin svg { width: 18px; height: 18px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 48px) / 4); } }

/* ---------- Forms ---------- */
.form-wrap { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .form-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .form-sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 28px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.875rem; color: var(--ink); font-weight: 400; }
.field label .req { color: var(--tangerine); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg);
  font-size: 1rem; font-weight: 300; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(20,20,20,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgba(116,121,240,.18); }
.field-hint { font-size: 0.8rem; color: var(--muted); }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type="range"] { flex: 1; padding: 0; border: 0; background: transparent; accent-color: var(--indigo); box-shadow: none; }
.range-row output { min-width: 84px; text-align: center; padding: 8px 12px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 400; font-size: 0.9rem; }
.file-drop { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 22px; text-align: center; background: var(--bg); color: var(--muted); font-size: 0.9rem; cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover { border-color: var(--indigo); background: #fff; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop b { color: var(--indigo); font-weight: 500; }
.file-drop + .field-hint { display: block; margin-top: 8px; }
.field-hint.is-error { color: #c0392b; font-weight: 500; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot small { color: var(--muted); font-size: 0.8rem; max-width: 320px; }
.form-success { display: none; padding: 18px 20px; border-radius: 14px; background: rgba(62,44,143,.08); color: var(--indigo); font-weight: 400; margin-top: 20px; }
.form-card.is-sent .form-success { display: block; }
.form-error { margin: 14px 0 0; padding: 14px 18px; border-radius: 14px; background: rgba(192,57,43,.08); color: #c0392b; font-weight: 500; }
.form-error:empty { display: none; }
button[aria-busy="true"] { opacity: .65; pointer-events: none; }

.contact-list { display: grid; gap: 12px; margin-top: 32px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease); }
a.contact-item:hover { border-color: var(--indigo); transform: translateX(4px); }
.contact-item .ci { width: 48px; height: 48px; border-radius: 14px; background: var(--indigo); color: #fff; display: grid; place-items: center; }
.contact-item .ci--address { background: var(--tangerine); }
.contact-item .ci svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-item span { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 400; word-break: break-word; }
.section--white .contact-item { background: var(--bg); }

/* Audience split (client vs candidate) */
.split-cta { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split-cta { grid-template-columns: 1fr 1fr; } }
.split-card { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; min-height: 340px; position: relative; overflow: hidden; isolation: isolate; }
.split-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; max-width: 14ch; }
.split-card p { max-width: 400px; }
.split-card .btn { margin-top: auto; align-self: flex-start; }
.split-card--client { background: var(--tangerine); color: #fff; }
.split-card--client h3 { color: #fff; }
.split-card--worker { background: var(--surface); border: 1px solid var(--line); }
.split-card .who { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.split-card--client .who { color: #fff; }
.split-card--worker .who { color: var(--indigo); }
.split-card .outline-t { position: absolute; right: -60px; bottom: -70px; width: 280px; z-index: -1; }
.split-card--client .outline-t { color: rgba(255,255,255,.12); }
.split-card--worker .outline-t { color: rgba(62,44,143,.08); }

/* ---------- Training / docs ---------- */
.modules { display: grid; gap: 12px; }
.module { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s; }
@media (min-width: 800px) { .module { grid-template-columns: 70px 1fr auto auto; gap: 24px; } }
.module-no { font-size: 0.85rem; color: var(--indigo); font-weight: 500; }
.module h3 { font-size: 1.2rem; line-height: 1.25; }
.module p { font-size: 0.925rem; color: var(--muted); margin-top: 4px; }
.lang { display: flex; gap: 6px; }
.lang span { font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 500; letter-spacing: .04em; }

.docs { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .docs { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.doc h4 { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.doc p { font-size: 0.875rem; color: var(--muted); margin-top: 2px; }
.doc a, .doc .soon { font-size: 0.85rem; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; color: var(--indigo); font-weight: 400; }
.doc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc .soon { color: var(--muted); }
.doc a svg { width: 14px; height: 14px; }

.article-card { display: flex; flex-direction: column; gap: 16px; }
.article-card .media { aspect-ratio: 3 / 2; }
.article-card h3 { font-size: 1.2rem; line-height: 1.3; }
.article-card .link-arrow { align-self: flex-start; margin-top: auto; }
.article-card:hover h3 { color: var(--indigo); }
.article-card h3 { transition: color .25s; }
.article-meta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.coverage { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .coverage { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }
.cert-mini { display: grid; gap: 10px; }
.cert-mini a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; color: var(--ink); transition: border-color .2s; }
.cert-mini a:hover { border-color: var(--indigo); }
.cert-mini a small { display: block; color: var(--muted); font-size: 0.78rem; }
.cert-mini svg { width: 16px; height: 16px; color: var(--indigo); flex-shrink: 0; }
.todo-note { font-size: 0.8rem; color: var(--muted); border-left: 2px solid var(--mustard); padding: 4px 0 4px 12px; margin-top: 16px; }

/* ---------- Team / values ---------- */
.values { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
.value { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value h3 { font-size: 1.4rem; margin-bottom: 10px; }
.value .v-idx { display: block; font-size: 0.85rem; color: var(--indigo); font-weight: 500; margin-bottom: 36px; }

.mission-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mission-list li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .mission-list li { grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; } }
.mission-list b { font-weight: 400; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.015em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--bg); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 1px; height: 28px; background: var(--line-strong); transform: rotate(20deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.75); position: relative; overflow: hidden; isolation: isolate; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; padding-block: clamp(64px, 8vw, 110px) 48px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand svg { height: 34px; width: auto; color: #fff; }
.footer-brand .logo-symbol { color: var(--iris); }
.footer-brand p { margin-top: 24px; max-width: 320px; font-size: 1.15rem; line-height: 1.4; color: #fff; font-weight: 300; }
.footer-brand .desc { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 14px; font-weight: 400; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { font-size: 0.95rem; }
.footer-contact small { display: block; font-size: 0.75rem; color: rgba(255,255,255,.55); letter-spacing: 0.06em; text-transform: uppercase; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; }
.socials a:hover { border-color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-wordmark { color: rgba(255,255,255,.06); padding-inline: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; }
.footer-wordmark svg { width: 100%; height: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; font-size: 0.85rem; color: rgba(255,255,255,.6); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.max-640 { max-width: 640px; }
.stack-s > * + * { margin-top: 12px; }

/* ---------- Orange accent cards (tangerine) ---------- */
.card--orange { background: var(--tangerine); border-color: var(--tangerine); color: #fff; }
.card--orange h3, .card--orange .benefit, .card--orange p { color: #fff; }
.card--orange .card-ico { background: rgba(255,255,255,.18); color: #fff; }
.card--orange .benefit { border-color: rgba(255,255,255,.35); }
.mega-side .btn--light .btn-ico, .split-card--client .btn--light .btn-ico { background: var(--ink); }
.mega-side p, .split-card--client p, .card--orange p { font-weight: 400; }
.card--orange.card--lift:hover { background: #e87400; border-color: #e87400; }
.card--orange.card--lift:hover h3 { color: #fff; }
.mega-side .btn--light:hover .btn-ico, .split-card--client .btn--light:hover .btn-ico { background: #fff; color: var(--ink); }

/* ---------- Article pages ---------- */
.article-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); max-width: 22ch; text-wrap: balance; }
.article-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.article-top .label { margin-bottom: 0; }
.lang-switch { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.lang-switch a { padding: 8px 18px; border-radius: 999px; font-size: 0.875rem; color: var(--ink-2); transition: background .25s, color .25s; }
.lang-switch a:hover { color: var(--indigo); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }

.article-layout { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 280px minmax(0, 720px); justify-content: space-between; gap: 80px; } }
.article-aside { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1000px) { .article-aside { position: sticky; top: 110px; } }
@media (max-width: 999px) { .article-aside { order: 2; } }
.article-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-top: 1px solid var(--line); }
.article-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.article-toc a { display: grid; grid-template-columns: 28px 1fr; padding: 12px 0; font-size: 0.925rem; line-height: 1.4; color: var(--ink-2); transition: color .2s; }
.article-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-size: 0.8rem; padding-top: 2px; }
.article-toc a:hover { color: var(--indigo); }
.article-train { padding: 24px; border-radius: var(--radius); background: var(--cream); display: grid; gap: 10px; justify-items: start; }
.article-train h4 { font-size: 1.15rem; font-weight: 400; }
.article-train p { font-size: 0.9rem; color: var(--muted); }

.article-body { font-size: 1.1rem; line-height: 1.75; color: var(--ink-2); }
.article-intro p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.article-intro p + p { margin-top: 1em; }
.article-body h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; margin: 64px 0 20px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.article-body h3 { font-size: 1.25rem; line-height: 1.3; margin: 32px 0 12px; letter-spacing: -0.01em; }
.article-body p { margin-top: 16px; }
.article-body ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.article-body li { position: relative; padding-left: 26px; }
.article-body li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 12px; height: 1px; background: var(--indigo); }
.article-body li ul { margin-top: 10px; }
.article-body li li::before { background: var(--line-strong); }
.article-body strong { color: var(--ink); font-weight: 500; }
.article-note { margin-top: 48px; padding: 28px 32px; border-radius: var(--radius); background: var(--indigo); color: rgba(255,255,255,.9); }
.article-note strong { display: block; color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.article-note p { margin-top: 10px; font-size: 1.15rem; line-height: 1.6; color: #fff; }

/* ---------- Language toggle (EN / ES) ---------- */
.lang-toggle { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); flex-shrink: 0; }
.site-header.is-scrolled .lang-toggle, .site-header--light .lang-toggle, .menu-open .lang-toggle { border-color: var(--line-strong); }
.lang-toggle a { padding: 6px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; opacity: .75; transition: background .25s, color .25s, opacity .25s; }
.lang-toggle a:hover { opacity: 1; background: rgba(255,255,255,.14); }
.site-header.is-scrolled .lang-toggle a:hover, .site-header--light .lang-toggle a:hover, .menu-open .lang-toggle a:hover { background: rgba(20,20,20,.06); }
.lang-toggle a[aria-current="true"] { opacity: 1; background: #fff; color: var(--ink); }
.site-header.is-scrolled .lang-toggle a[aria-current="true"], .site-header--light .lang-toggle a[aria-current="true"], .menu-open .lang-toggle a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (max-width: 1240px) { .lang-toggle { margin-left: auto; } .menu-toggle { margin-left: 10px; } }

/* Hover only on clickable elements */
.menu-toggle { transition: background .25s, border-color .25s; }
.menu-toggle:hover { background: rgba(255,255,255,.12); }
.site-header.is-scrolled .menu-toggle:hover, .site-header--light .menu-toggle:hover, .menu-open .menu-toggle:hover { background: rgba(20,20,20,.06); }
.doc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; }
.lang-toggle .flag { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; outline: 1px solid rgba(20,20,20,.12); outline-offset: -1px; }
@media (max-width: 600px) { .hero-tags span + span::before { display: none; } .hero-tags { gap: 6px 18px; } }

/* Home hero "Request Labor": orange on hover */
.hero .btn--light:hover, .hero .btn--light:focus-visible { --btn-bg: var(--tangerine); --btn-fg: #fff; }
.hero .btn--light:hover .btn-ico, .hero .btn--light:focus-visible .btn-ico { background: #fff; color: var(--tangerine); }

/* Safety & Training: flag in front of the module language tag */
.lang span { display: inline-flex; align-items: center; gap: 6px; }
.lang .flag { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; outline: 1px solid rgba(20,20,20,.12); outline-offset: -1px; }

/* Home hero title: each word slides up from behind a mask */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(0.2s + var(--i) * 0.07s); }
.hero h1.is-in .w > span { transform: none; }

/* Hero video: on narrow screens, hold the frame on the worker instead of the centre */
@media (max-width: 1100px) { .hero-media video { object-position: 50% center; } }

/* Hero video on phones: the frame is too tall to hold both workers, so the
   video sits as a band at the top and fades into the hero background */
@media (max-width: 700px) {
  .hero-media { inset: 0 0 auto; height: 62vh; }
  .hero-media video { object-position: 50% center; }
  .hero-media::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
    background: linear-gradient(180deg, rgba(26,26,26,0) 0%, #1a1a1a 100%);
  }
}
@supports (height: 62svh) { @media (max-width: 700px) { .hero-media { height: 62svh; } } }
