/* =====================================================================
   JustWork site styles: primitives -> components -> patterns.
   Uses ONLY var(--token) from tokens.css. No raw colors or sizes here
   except structural values (0, 1px borders, percentages, 1fr).
   ===================================================================== */

/* ---------- Primitives ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s-5)); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 40; background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
.skip-link {
  position: absolute; left: var(--s-4); top: calc(-1 * var(--s-9)); z-index: 60;
  background: var(--navy); color: var(--white); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-4); color: var(--white); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-7); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.grid12 > * { min-width: 0; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr)); gap: var(--grid-gap); }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s-6); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: var(--white); }
.section--tight { padding-block: var(--s-8); }

.eyebrow { font-size: var(--fs-eyebrow); font-weight: var(--fw-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--brand); }
.section--dark .eyebrow { color: var(--muted-on-dark); }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: var(--fw-display); letter-spacing: var(--ls-display); margin: 0; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-head); font-weight: var(--fw-display); letter-spacing: var(--ls-head); margin: 0; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: var(--fw-semibold); letter-spacing: -0.01em; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; font-weight: var(--fw-lead); color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: var(--muted-on-dark); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.xs { font-size: var(--fs-xs); }
.head { display: flex; flex-direction: column; gap: var(--head-gap); max-width: var(--prose); margin-bottom: var(--head-after); }

/* ---------- Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h); padding: 0 var(--s-6); border-radius: var(--r-pill);
  font-family: var(--font); font-size: var(--fs-body); font-weight: var(--fw-semibold); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-hover); color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--brand-soft); color: var(--navy); }
.btn--outline-white { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-white:hover { background: var(--white); color: var(--navy); }
.btn--sm { min-height: var(--icon-lg); padding: 0 var(--s-5); font-size: var(--fs-small); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--card-gap); box-shadow: var(--sh-card); min-width: 0;
}
.card--dashed { border-style: dashed; box-shadow: none; background: transparent; }
.card--flat { box-shadow: none; background: var(--surface); border-color: var(--surface); }
.card--accent { border: 2px solid var(--brand); box-shadow: var(--sh-2); }
.icon-tile { width: var(--icon-tile); height: var(--icon-tile); border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile--muted { background: var(--surface); color: var(--muted); }
.chip { font-size: var(--fs-xs); font-weight: var(--fw-medium); padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); }
.chip--brand { background: var(--brand-soft); color: var(--brand-hover); }
.link-arrow { font-weight: var(--fw-semibold); text-decoration: none; color: var(--brand); display: inline-flex; gap: var(--s-2); align-items: center; }
.link-arrow:hover { color: var(--brand-hover); text-decoration: underline; }
.card-foot { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.price { font-weight: var(--fw-bold); font-size: var(--fs-faq); }
.big-number { font-size: var(--fs-stat); font-weight: var(--fw-bold); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.placeholder { background: var(--brand-soft); color: var(--brand-hover); padding: 0 var(--s-1); border-radius: var(--r-sm); font-weight: var(--fw-semibold); }
.section--dark .placeholder, .footer .placeholder { background: var(--line-dark); color: var(--white); }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: var(--check); height: var(--check); margin-top: var(--s-1); border-radius: var(--r-pill);
  background: var(--brand-soft); box-shadow: inset 0 0 0 5px var(--brand-soft), inset 0 0 0 20px var(--brand);
}
.x-list li::before { background: var(--surface); box-shadow: inset 0 0 0 8px var(--surface), inset 0 0 0 20px var(--muted); }

/* Steps (a real sequence) */
.step { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); border-top: 2px solid var(--navy); }
.step-n { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--brand); font-variant-numeric: tabular-nums; }

/* FAQ */
.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; gap: var(--s-5); align-items: center;
  padding: var(--s-5) 0; font-size: var(--fs-faq); font-weight: var(--fw-semibold); line-height: var(--lh-snug);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: var(--fs-plus); font-weight: var(--fw-regular); color: var(--brand); flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0 0 var(--s-5); color: var(--muted); max-width: 68ch; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container {
  min-height: var(--nav-h); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: var(--s-7); row-gap: var(--s-2); padding-block: var(--s-3);
}
.nav-links { display: flex; gap: var(--s-6); align-items: center; }
.nav-link { font-size: var(--fs-small); font-weight: var(--fw-medium); text-decoration: none; color: var(--navy); white-space: nowrap; padding-block: var(--s-2); }
.nav-link[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }

/* Logo */
.logo { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--font); line-height: 1; }
.logo svg { flex-shrink: 0; display: block; }
.logo-word { font-weight: var(--fw-black); letter-spacing: -0.02em; white-space: nowrap; color: var(--navy); }
.logo-word span, .logo .sq { color: var(--brand); fill: var(--brand); }
.logo .dot { fill: var(--dots); }
.logo--light .logo-word, .logo--light .dot { color: var(--white); fill: var(--white); }

/* Hero */
.hero { padding-block: var(--page-top) var(--page-bottom); }
.hero-photo { width: 100%; height: var(--hero-h); object-fit: cover; object-position: 58% 40%; border-radius: var(--r-lg); }
.guarantee { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); color: var(--muted); }
.guarantee svg { flex-shrink: 0; color: var(--brand); margin-top: 1px; }

/* Trust bar */
.trust { border-block: 1px solid var(--line); padding-block: var(--s-6); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-sm)), 1fr)); gap: var(--s-5); }
.trust-item { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.trust-item svg { color: var(--brand); flex-shrink: 0; }

/* Why now stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-sm)), 1fr)); gap: var(--grid-gap); }
.stat { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); border-top: 2px solid var(--brand); min-width: 0; }
.stat-label { font-weight: var(--fw-medium); line-height: var(--lh-snug); }
.stat-source { font-size: var(--fs-xs); color: var(--muted); margin-top: auto; overflow-wrap: anywhere; }
.stat-source a { color: var(--muted); }
.stat-empty { padding: var(--s-6); border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }

/* Talent placeholders */
.avatar-ph { width: var(--avatar); height: var(--avatar); border-radius: var(--r-pill); background: var(--surface); border: 1px dashed var(--muted); flex-shrink: 0; }

/* Founder */
.founder-photo { width: 100%; max-width: var(--founder-max); aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); }

/* Contact band */
.contact-band {
  background: var(--brand); color: var(--white); border-radius: var(--r-lg);
  padding: var(--contact-pad); display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--contact-min)), 1fr)); align-items: center;
}
.contact-band .placeholder { background: var(--brand-hover); color: var(--white); }
.contact-lines { display: flex; flex-direction: column; gap: var(--s-3); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--fs-lead); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.contact-line .label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; opacity: .85; width: 100%; }
.contact-line a { color: var(--white); }
.copy-btn { font-family: var(--font); font-size: var(--fs-xs); font-weight: var(--fw-semibold); border: 1px solid var(--white); background: transparent; color: var(--white); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); cursor: pointer; }
.copy-btn:hover { background: var(--white); color: var(--brand); }

/* Footer */
.footer { background: var(--navy-900); color: var(--muted-on-dark); padding-block: var(--s-9) var(--s-7); font-size: var(--fs-small); }
.footer a { color: var(--muted-on-dark); }
.footer a:hover { color: var(--white); }
.footer-title { color: var(--white); font-weight: var(--fw-semibold); margin-bottom: var(--s-2); }
.footer-col { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.footer-person { display: flex; gap: var(--s-3); align-items: center; }
.footer-person img { width: var(--icon-lg); height: var(--icon-lg); border-radius: var(--r-pill); object-fit: cover; }

/* Chat bubble */
.chat {
  position: fixed; z-index: 35; display: flex; align-items: flex-end; gap: var(--s-3);
  right: calc(var(--s-5) + env(safe-area-inset-right, 0px)); bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
}
.chat-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-3) var(--s-6) var(--s-3) var(--s-4); max-width: var(--chat-max); font-size: var(--fs-chat); line-height: 1.45;
  box-shadow: var(--sh-2); display: flex; gap: var(--s-3); align-items: center; color: var(--ink); text-decoration: none;
}
.chat-card img { width: var(--icon-lg); height: var(--icon-lg); border-radius: var(--r-pill); object-fit: cover; flex-shrink: 0; }
.chat-close { position: absolute; top: var(--s-1); right: var(--s-1); width: var(--close-size); height: var(--close-size); border: 0; background: transparent; color: var(--muted); font-size: var(--fs-faq); line-height: 1; cursor: pointer; border-radius: var(--r-pill); }
.chat-close:hover { background: var(--surface); color: var(--ink); }
.chat-btn {
  width: var(--chat-btn); height: var(--chat-btn); border-radius: var(--r-pill); background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-2); flex-shrink: 0;
}
.chat-btn:hover { background: var(--brand-hover); color: var(--white); }

/* Page header (inner pages) */
.page-hero { padding-block: var(--page-top) var(--s-7); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: var(--fs-small); color: var(--muted); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }

/* Legal prose */
.prose { max-width: var(--prose); }
.prose h2 { font-size: var(--fs-prose-h2); line-height: 1.3; letter-spacing: -0.01em; margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font-size: var(--fs-prose-h3); line-height: 1.35; margin: var(--s-6) 0 var(--s-2); }
.prose p, .prose ul { margin: 0 0 var(--s-4); }
.prose ul { padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.prose a { color: var(--brand-hover); }
.consent-list { list-style: none; padding-left: 0 !important; }
.consent-list li { display: flex; gap: var(--s-3); }
.consent-list li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 5px; border: 2px solid var(--muted); border-radius: 4px; }
.draft-note { background: var(--brand-soft); border: 1px solid var(--brand); color: var(--ink); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); font-size: var(--fs-small); }
.toc { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Visual detail layer (icons, pattern, process, map, counters, motion) ---------- */
jw-icon, jw-hero-photo, jw-photo, jw-process, jw-map, jw-roles, jw-why-now { display: block; }
jw-icon { display: inline-flex; flex-shrink: 0; }
.trust-item jw-icon, .guarantee jw-icon { color: var(--brand); }

/* Background pattern from the logo B grid: rounded squares, very light */
.section--pattern { position: relative; isolation: isolate; }
.section--pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--pattern-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='11' y='11' width='10' height='10' rx='2'/%3E%3C/svg%3E") 0 0 / var(--pattern-size) var(--pattern-size) repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='11' y='11' width='10' height='10' rx='2'/%3E%3C/svg%3E") 0 0 / var(--pattern-size) var(--pattern-size) repeat;
}
.section--pattern::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--surface) 0%, transparent 45%, transparent 100%);
}

/* Section photos */
.section-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.card.role-core { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0; overflow: hidden; gap: 0; }
.role-core-media { min-height: var(--role-photo-h); }
.role-photo { width: 100%; height: 100%; object-fit: cover; }
.role-core-body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr)); gap: var(--grid-gap); }

/* Process diagram with arrows */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--process-gap); }
.process-step { position: relative; display: flex; flex-direction: column; gap: var(--s-4); }
.process-icon { width: var(--icon-xl); height: var(--icon-xl); border-radius: var(--r-lg); background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-1); }
.process-step:first-child .process-icon { background: var(--brand); }
.process-body { display: flex; flex-direction: column; gap: var(--s-2); }
.process-arrow {
  position: absolute; top: calc(var(--icon-xl) / 2 - 1px);
  left: calc(var(--icon-xl) + var(--s-3)); right: calc(var(--s-3) - var(--process-gap));
  border-top: 2px dashed var(--brand); color: var(--brand);
}
.process-arrow svg { position: absolute; right: -6px; top: -10px; }

/* Map */
.map-figure { margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.map { width: 100%; height: auto; display: block; }
.map-land { fill: none; stroke: var(--map-land); stroke-width: 5.5; stroke-linecap: round; }
.map-arc { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 8 7; }
.map-city { fill: var(--navy); stroke: var(--white); stroke-width: 3; }
.map-city--from { fill: var(--brand); }
.map-ring { fill: var(--brand-soft); opacity: .9; }
.map-label { font-family: var(--font); font-size: var(--fs-map-label); font-weight: var(--fw-semibold); fill: var(--ink); paint-order: stroke; stroke: var(--halo); stroke-width: 6px; stroke-linejoin: round; }

/* Region map (How it works) */
jw-region-map { display: block; }
.region-grid { align-items: center; row-gap: var(--s-7); }
.region-map { max-width: 520px; margin-inline: auto; }
.rmap-id { fill: var(--map-id); }
.rmap-au { fill: var(--map-au); }
.rmap-other { fill: var(--map-other); }

/* Benefits with icons */
.benefits { display: flex; flex-direction: column; gap: var(--s-4); }
.benefit { display: flex; gap: var(--s-4); align-items: flex-start; }

/* Counters */
.stat-icon { width: var(--icon-tile); height: var(--icon-tile); border-radius: var(--r-md); background: var(--white); color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-1); }
.stat .counter { font-size: var(--fs-counter); color: var(--navy); }
.stat-grid:has(.counter) { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--stat-min)), 1fr)); row-gap: var(--s-7); }

/* Fade-in on scroll: only when JS confirmed motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(var(--reveal-shift)); transition: opacity var(--t-reveal) ease, transform var(--t-reveal) ease; }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
  .map-arc { animation: arc-flow var(--t-arc) linear infinite; }
  @keyframes arc-flow { to { stroke-dashoffset: -30; } }
}

@media (max-width: 960px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .process-step { display: grid; grid-template-columns: var(--icon-xl) minmax(0, 1fr); column-gap: var(--s-4); align-items: start; }
  .process-arrow {
    top: calc(var(--icon-xl) + var(--s-2)); bottom: calc(-1 * var(--s-6) + var(--s-2));
    left: calc(var(--icon-xl) / 2 - 1px); right: auto; border-top: 0; border-left: 2px dashed var(--brand);
  }
  .process-arrow svg { right: auto; top: auto; bottom: -8px; left: -10px; transform: rotate(90deg); }
  .role-core { grid-template-columns: minmax(0, 1fr); }
  .role-core-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .role-core-body { padding: var(--s-5); }
}

/* Contact form */
.contact-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.talk-card { display: flex; gap: var(--s-4); align-items: center; background: var(--brand-hover); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); }
.talk-card img { width: var(--avatar); height: var(--avatar); border-radius: var(--r-pill); object-fit: cover; flex-shrink: 0; }
.talk-title { font-weight: var(--fw-semibold); }
.talk-phone { font-size: var(--fs-lead); font-weight: var(--fw-bold); }
.talk-card a { color: var(--white); }
.talk-card .placeholder { background: var(--brand); }
.contact-form { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-small); font-weight: var(--fw-semibold); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: var(--fw-regular); font-size: var(--fs-body); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); min-height: var(--btn-h); width: 100%;
}
.field textarea { resize: vertical; min-height: calc(var(--btn-h) * 3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.consent a { color: var(--brand-hover); }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.form-status { color: var(--muted); }
.form-status.is-error { color: var(--brand-hover); }
.role-other { font-size: var(--fs-lead); }
.chat-call { display: block; margin-top: var(--s-1); font-weight: var(--fw-semibold); }
@media (max-width: 960px) { .contact-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .contact-form { padding: var(--s-5); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: var(--s-5); }
  .head { margin-bottom: var(--s-7); }
}
@media (max-width: 640px) {
  .btn:not(.btn--sm) { width: 100%; }
  .nav-cta { display: none; }
  .chat-card { display: none; }
  .card { padding: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =====================================================================
   ARUS layer (cleaned 09/11): home sections, premium details, spotlight.
   Only tokens below. Replaces the 08/11 v13-v16 patches.
   ===================================================================== */

/* ---------- Utilities (instead of inline styles) ---------- */
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); } .gap-7 { gap: var(--s-7); }
.mt-2 { margin-top: var(--s-2); } .mt-5 { margin-top: var(--s-5); }
.self-start { align-self: flex-start; }
.items-center { align-items: center; }
.fw-regular { font-weight: var(--fw-regular); }
.inherit { color: inherit; }
.page-intro { gap: var(--head-gap); max-width: var(--prose); margin-inline: 0; }

/* ---------- Type weights ---------- */
.h3, .task-title, .price-name, .faq-item summary, .footer-title, .trust-item,
.talk-title, .field, .contact-line, .link-arrow { font-weight: var(--fw-subtitle); }
.task-title { font-size: calc(var(--fs-body) + 1px); }
.muted strong, .lead strong, p strong { font-weight: var(--fw-subtitle); color: var(--ink); }

/* ---------- Sections ---------- */
.ink { color: var(--ink); }
.section--soft { background: var(--brand-soft); }
.section + .section, .hero + .section { border-top: 1px solid var(--line); }
.hero-grid { align-items: start; }
.hero .display { max-width: 14ch; }
.proof-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.page-head { padding-block: var(--page-top) var(--s-7); }
.page-head .lead { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); }
.eyebrow::before { content: ""; width: var(--mark); height: var(--mark); border-radius: var(--r-xs); background: var(--brand); flex-shrink: 0; }
.head .h2::after { content: ""; display: block; width: var(--rule-w); height: var(--rule-h); border-radius: var(--r-xs); background: var(--brand); margin-top: var(--head-gap); }

/* ---------- Card grids: one gap, one padding, one radius ---------- */
.task-grid, .price-grid, .team-grid { display: grid; gap: var(--grid-gap); }
.task-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-wide)), 1fr)); }
.price-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr)); align-items: stretch; }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr)); }
.task { display: flex; gap: var(--s-4); align-items: flex-start; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: var(--card-pad); box-shadow: var(--sh-card); min-width: 0; }
.task > .stack { gap: var(--s-2); min-width: 0; }
.price-card { position: relative; gap: var(--card-gap); padding-top: var(--s-7); }
.price-card .big-number { color: var(--brand); }
.price-name { margin: 0; }
.big-number small { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--muted); margin-left: var(--s-1); }
.price-list { margin: 0; padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.price-list li::marker { color: var(--brand); }
.price-badge { position: absolute; top: calc(-1 * var(--s-3)); left: var(--card-pad); background: var(--brand); color: var(--white);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .04em; padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill); box-shadow: var(--sh-brand); }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--sh-card); display: flex; flex-direction: column; gap: var(--card-pad); padding-bottom: var(--card-pad); }
.team-card > .stack { padding-inline: var(--card-pad); gap: var(--s-2); }
.team-photo { aspect-ratio: 4 / 3; background: var(--brand-soft) var(--spotlight-soft); display: flex; align-items: center; justify-content: center; color: var(--brand); }

/* ---------- Hover and depth ---------- */
.card, .task, .team-card { transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, border-color var(--t-fast) ease; }
.card:hover, .task:hover, .team-card:hover { transform: translateY(var(--lift)); box-shadow: var(--sh-lift); }
.task:hover { border-color: var(--brand-soft); }
.btn { transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, background var(--t-fast) ease; }
.btn--primary { box-shadow: var(--sh-brand); }
.btn:hover { transform: translateY(-1px); }
.process-icon { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.process-step:first-child .process-icon { background: var(--brand); color: var(--white); box-shadow: var(--sh-brand); }
.nav-link { position: relative; }
.nav-link:hover, .faq-item summary:hover { color: var(--brand); }
.founder-photo, .hero-photo { box-shadow: var(--sh-lift); }

/* ---------- Hero photo + terra square ---------- */
.hero-grid > .span-6:last-child { position: relative; }
.hero-photo { position: relative; z-index: 1; }
.hero-grid > .span-6:last-child::after { content: ""; position: absolute; left: calc(-1 * var(--s-5)); bottom: calc(-1 * var(--s-5));
  width: var(--brand-square); height: var(--brand-square); border-radius: var(--r-md); background: var(--brand); z-index: 0; }

/* ---------- Spotlight (replaces the dots, 09/11) ---------- */
.hero, .page-head, .section--surface, .section--soft, .footer { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-head::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 150%; height: 150%; left: -55%; top: -85%; background: var(--spotlight); transform: rotate(-22deg); filter: blur(8px);
  animation: jw-spot 2.2s ease-out both; }
.section--surface::before, .section--soft::after { content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 90%; height: 120%; right: -35%; top: -70%; background: var(--spotlight-soft); transform: rotate(25deg); }
@keyframes jw-spot { from { opacity: 0; transform: translate(-6%, -6%) rotate(-22deg); } to { opacity: 1; } }

/* ---------- Footer: dark warm charcoal ---------- */
.footer { background: var(--footer-bg); color: var(--footer-ink); border-top: 0; }
.footer::after { content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 80%; height: 140%; right: -30%; top: -80%; background: var(--spotlight-dark); transform: rotate(25deg); }
.footer > * { position: relative; z-index: 1; }
.footer a { color: var(--footer-ink); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-title { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.footer-tag { margin: 0; max-width: 32ch; }
.footer-bottom { border-top: 1px solid var(--footer-line); flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
.footer-credit { font-size: var(--fs-xs); opacity: .7; }
.footer-legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.social-row { display: flex; gap: var(--s-3); }
.social-icon { width: var(--social-size); height: var(--social-size); border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--footer-line); transition: background var(--t-fast) ease, border-color var(--t-fast) ease; }
.social-icon:hover { background: var(--brand); border-color: var(--brand); color: var(--white); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero-grid > .span-6:last-child::after { display: none; }   /* square was clipped by the screen edge */
  .team-photo { aspect-ratio: 16 / 9; }                       /* shorter cards on the phone */
}
@media (prefers-reduced-motion: reduce) {
  .card, .task, .team-card, .btn { transition: none; }
  .card:hover, .task:hover, .team-card:hover, .btn:hover { transform: none; }
  .hero::before, .page-head::before { animation: none; }
}

/* Founder photo centred when the layout stacks (09/11) */
.founder-photo { display: block; }
@media (max-width: 960px) { .founder-photo { margin-inline: auto; } }

/* Prices: ink instead of terra (09/11, his call: orange price felt pushy) */
.price-card .big-number { color: var(--ink); }
/* Careers: open roles */
.job-list { display: grid; gap: var(--grid-gap); }
.job { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--card-pad); box-shadow: var(--sh-card); }
.job > .stack { flex: 1 1 var(--card-min-wide); min-width: 0; }
.job .muted { margin: 0; }

/* ===== full-bleed video hero ===== */
.hero--video { min-height: var(--hero-video-h); display: flex; align-items: center; color: var(--white); background: var(--footer-bg); }
.hero--video::before { content: none; }
.hero--video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--video-overlay); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--video > .container { width: 100%; }
.hero--video .display { color: var(--white); }
.hero--video .eyebrow { color: var(--brand-soft); }
.hero--video .lead, .hero--video .guarantee { color: var(--on-dark-soft); }
.hero--video .lead strong { color: var(--white); }
.hero--video .guarantee svg { color: var(--brand-soft); }
@media (max-width: 640px) { .hero--video { --video-overlay: linear-gradient(180deg, rgba(20, 16, 14, .55), rgba(20, 16, 14, .85)); } }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero--video { background: var(--footer-bg) url(video/hero-poster.jpg) center / cover; } }

/* full-width city band under the hero */
.city-band { position: relative; isolation: isolate; overflow: hidden; min-height: var(--city-h); display: flex; align-items: flex-end; color: var(--white); padding-block: var(--section-y) var(--s-8); }
.city-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.city-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--city-overlay); }
.city-text { max-width: calc(var(--prose) + 2 * var(--gutter)); margin-inline: 0; }
.city-band .h2 { color: var(--white); } .city-band .h2 strong { color: var(--brand-soft); font-weight: inherit; }
.city-band .eyebrow { color: var(--brand-soft); } .city-band .lead { color: var(--on-dark-soft); }
.hero + .city-band, .city-band + .section { border-top: 0; }

/* Shipper-style details on the video hero */
.hero--video { flex-direction: column; justify-content: center; }
.hero-sub { margin: 0; font-size: var(--fs-lead); font-weight: var(--fw-bold); color: var(--brand-soft); }
.hero-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); margin-top: var(--s-8);
  padding-top: var(--s-5); border-top: 1px solid var(--footer-line); color: var(--on-dark-soft); font-weight: var(--fw-bold); font-size: var(--fs-small); }
.hero-tools-label { font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; font-weight: var(--fw-semibold); opacity: .75; }

/* ===== Kata.ai / Populix / Shipper style full-screen video hero ===== */
.hero--full { min-height: 100svh; justify-content: flex-end; padding-block: calc(var(--nav-h) + var(--s-7)) var(--s-8); }
.hero--full::after { background: linear-gradient(0deg, rgba(20,16,14,.88) 0%, rgba(20,16,14,.45) 55%, rgba(20,16,14,.35) 100%); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; }
.hero--full .display { font-size: clamp(40px, 6vw, 84px); max-width: none; }
.hero-right .lead { margin: 0; }
@media (max-width: 960px) { .hero-split { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
/* Header over the video */
.has-video-hero jw-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; }
.has-video-hero .site-header { background: transparent; border-bottom-color: transparent; transition: background var(--t-fast) ease, border-color var(--t-fast) ease; }
.has-video-hero:not(.scrolled) .nav-link, .has-video-hero:not(.scrolled) .logo-word { color: var(--white); }
.has-video-hero:not(.scrolled) .logo .dot { fill: var(--white); }
.has-video-hero:not(.scrolled) .nav-link[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--white); }
.has-video-hero.scrolled .site-header { background: var(--white); border-bottom-color: var(--line); }
/* Phones: 4:5 video on top (hero-mobile.mp4, cropped per clip), text below */
@media (max-width: 640px) {
  .hero--full { min-height: 0; padding-top: 0; background: var(--footer-bg); }
  .hero--full .hero-video { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; z-index: 0; }
  .hero--full::after { inset: 0 0 auto 0; height: calc(100vw * 5 / 4); background: linear-gradient(180deg, rgba(20,16,14,.55) 0%, rgba(20,16,14,0) 30%, rgba(20,16,14,0) 80%, var(--footer-bg) 100%); z-index: 1; }
  .hero--full > .container { padding-top: var(--s-6); }
  .hero--full .display { font-size: clamp(36px, 10vw, 48px); }
}

/* City band credit (CC BY-SA attribution) */
jw-city-band { display: block; }
.city-credit { position: absolute; right: var(--gutter); bottom: var(--s-3); margin: 0; font-size: var(--fs-xs); color: var(--on-dark-soft); opacity: .8; }

/* Tool chips (Construction page) */
jw-chips { display: block; }
.chip-row .chip { font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: var(--s-2) var(--s-4); background: var(--white); color: var(--ink); border: 1px solid var(--line); }

/* Inner page header: text left, image or map right (12/11) */
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.page-head-grid .page-intro { margin-inline: 0; }
.page-head-media { position: relative; }
.page-head-media .page-head-img { width: 100%; height: var(--page-head-media-h); object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-lift); display: block; }
.page-head-media .region-map { max-width: 460px; }
.page-head-credit { margin: var(--s-2) 0 0; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 960px) { .page-head-grid { grid-template-columns: minmax(0, 1fr); } }

/* Dropdown menu (Industries) */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-caret { font-size: .75em; margin-left: 2px; }
.nav-menu { position: absolute; top: 100%; left: calc(-1 * var(--s-4)); min-width: 220px; padding: var(--s-2); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-lift); display: none; z-index: 40; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: block; }
.nav-menu-link { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-menu-link:hover, .nav-menu-link[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 960px) { .nav-menu, .nav-caret { display: none !important; } }
