/* ═══════════════════════════════════════════════════════════════════
   FirstHireHQ — site.css  (2026 redesign)
   Aesthetic: Warm Editorial Bold
   — Cream ground. Enormous serif type. Teal with conviction.
   — Flat surfaces, grain texture, dark section contrast.
   — Every interaction intentional.
   ═══════════════════════════════════════════════════════════════════ */

/* 1. TOKENS */
:root {
  --serif: "DM Serif Display", Georgia, serif;
  --sans:  "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  ui-monospace, "Cascadia Code", "Fira Code", monospace;

  /* Warm cream ground */
  --bg:      #f8f8f6;   /* near white, barely warm */
  --bg-1:    #f2f2ef;   /* very light warm gray */
  --bg-2:    #eceae5;   /* subtle warmth only on hover states */
  --surface: #ffffff;   /* pure white for cards */
  --white:   #ffffff;
  /* Borders */
  --line:    rgba(24,21,16,0.05);
  --line-md: rgba(24,21,16,0.08);
  --line-hi: rgba(24,21,16,0.12);

  /* Ink — warm dark */
  --ink:   #151311;  /* slightly deeper, still soft black */
  --ink-2: rgba(21,19,17,0.88);
  --ink-3: rgba(21,19,17,0.68);
  --ink-4: rgba(21,19,17,0.42);

  /* Brand — teal green, used with conviction */
  --accent:     #059669;
  --accent-lt:  #047857;
  --accent-dim: rgba(5,150,105,0.10);
  --accent-ink: #ffffff;

  /* Status */
  --ok:         #15803d;
  --ok-dim:     rgba(21,128,61,0.08);
  --warn:       #b45309;
  --warn-dim:   rgba(180,83,9,0.08);
  --danger:     #b91c1c;
  --danger-dim: rgba(185,28,28,0.08);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Spacing */
  --sp-1:.4rem; --sp-2:.65rem; --sp-3:1rem; --sp-4:1.5rem;
  --sp-5:2.25rem; --sp-6:3.5rem; --sp-7:5rem;

  /* Layout */
  --nav-h: 56px;
  --page-w: 1360px;
  --page-pad: clamp(1rem, 4vw, 2.5rem);
  --sidebar-w: 210px;
  --gap: clamp(0.75rem, 2vw, 1.25rem);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --t: 0.15s ease;
}

html.dark {
  --bg:#100f0a; --bg-1:#181510; --bg-2:#1e1b14; --surface:#0c0b07; --white:#181510;
  --line:rgba(240,237,228,0.07); --line-md:rgba(240,237,228,0.12); --line-hi:rgba(240,237,228,0.20);
  --ink:#f0ede4; --ink-2:rgba(240,237,228,0.70); --ink-3:rgba(240,237,228,0.50); --ink-4:rgba(240,237,228,0.30);
  --accent:#10b981; --accent-lt:#34d399; --accent-dim:rgba(16,185,129,0.12); --accent-ink:#022c22;
  --ok:#4ade80; --ok-dim:rgba(74,222,128,0.09);
  --warn:#fbbf24; --warn-dim:rgba(251,191,36,0.09);
  --danger:#f87171; --danger-dim:rgba(248,113,113,0.09);
  --shadow-sm:0 1px 4px rgba(0,0,0,0.28); --shadow-md:0 4px 18px rgba(0,0,0,0.32);
  --shadow-lg:0 12px 48px rgba(0,0,0,0.40);
}

/* 2. RESET */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: background var(--t), color var(--t);
}

/* Grain texture — the thing that separates premium from template */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
}
html.dark body::after { opacity: .055; }

body.no-scroll { overflow: hidden; touch-action: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--sans); }
h1,h2,h3,h4,h5,h6 { margin: 0; }
::selection { background: var(--accent-dim); color: var(--ink); }

/* 3. ACCESSIBILITY */
.skip-link {
  position: absolute; left: -9999px; top: var(--sp-3);
  z-index: 9999; padding: .5rem .9rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: .875rem;
  border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { left: var(--sp-3); }
.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;
}

/* 4. TYPE SCALE */
.t-display-xl { font-family: var(--serif); font-size: clamp(3rem,8vw,6.5rem); line-height:.91; letter-spacing:-.03em; }
.t-display-lg { font-family: var(--serif); font-size: clamp(2rem,5vw,3.5rem); line-height:.96; letter-spacing:-.025em; }
.t-display-md { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.2rem); line-height:1.03; letter-spacing:-.02em; }
.t-display-sm { font-family: var(--serif); font-size: clamp(1.2rem,2.5vw,1.6rem); line-height:1.1; letter-spacing:-.015em; }
.t-label-upper { font-size: .63rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-3); }
.t-label-accent { font-size: .63rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.muted { color: var(--ink-3); }

/* 5. NAVBAR */
.site-nav {
  position: sticky; top: 0; z-index: 800;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(26,25,23,0.07);
}
html.dark .site-nav {
  background: rgba(16,15,10,.85);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav-inner {
  max-width: var(--page-w); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--page-pad);
}

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0; max-width: 240px;
}
.nav-logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; overflow: hidden; }
.logo-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em; white-space: nowrap;
}
.logo-tagline {
  display: none; font-size: 10px; color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 1024px) { .logo-tagline { display: block; } }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center; min-width: 0;
}
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--ink-3);
  text-decoration: none; padding: .38rem .75rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a.active { color: var(--ink); background: var(--bg-1); }

.nav-tools {
  display: flex; align-items: center; gap: var(--sp-2);
  flex-shrink: 0; margin-left: auto;
}

.nav-bell {
  position: relative; display: flex; align-items: center;
  justify-content: center; width: 34px; height: 34px;
  border-radius: var(--r-sm); border: 1px solid var(--line-hi);
  color: var(--ink-3); text-decoration: none; background: transparent;
  transition: color var(--t), background var(--t);
}
.nav-bell:hover { color: var(--ink); background: var(--bg-1); }
.nav-bell-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--bg);
}
.nav-bell-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: var(--danger);
  color: #fff; font-size: .58rem; font-weight: 700;
  line-height: 16px; text-align: center;
  border: 1.5px solid var(--bg);
}

.nav-theme {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--line-hi); background: transparent;
  color: var(--ink-3); cursor: pointer;
  transition: color var(--t), background var(--t);
}
.nav-theme:hover { color: var(--ink); background: var(--bg-1); }
.nav-theme .icon-moon { display: none; }
html.dark .nav-theme .icon-sun  { display: none; }
html.dark .nav-theme .icon-moon { display: block; }

.nav-cta {
  font-size: .8rem; font-weight: 700; letter-spacing: .01em;
  color: var(--accent-ink); background: var(--accent);
  text-decoration: none; padding: .5rem 1.1rem;
  border-radius: var(--r-sm); white-space: nowrap;
  border: none; cursor: pointer;
  transition: background var(--t), transform var(--t);
  -webkit-tap-highlight-color: transparent;
}
.nav-cta:hover { background: var(--accent-lt); transform: translateY(-1px); }

.nav-ham {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 34px; height: 34px;
  border: 1px solid var(--line-hi); border-radius: var(--r-sm);
  background: transparent; cursor: pointer; padding: 0 9px;
  transition: background var(--t);
}
.nav-ham:hover { background: var(--bg-1); }
.nav-ham span {
  display: block; height: 1.5px; background: var(--ink-2);
  border-radius: 1px;
  transition: transform .28s ease, opacity .2s, width .25s ease;
}
.nav-ham span:nth-child(2) { width: 65%; }
.nav-ham[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-ham[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); width: 100%; }

/* 6. MOBILE DRAWER */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(24,21,16,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 860;
  width: min(21rem, calc(100vw - 2.5rem));
  background: var(--surface);
  border-right: 1px solid var(--line-md);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  padding: max(var(--sp-4), env(safe-area-inset-top)) var(--sp-4) var(--sp-5) max(var(--sp-4), env(safe-area-inset-left));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-drawer.open { transform: translateX(0); }

.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.drawer-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-4); }
.drawer-close {
  width: 28px; height: 28px; border-radius: var(--r-xs);
  border: 1px solid var(--line-md); background: transparent;
  color: var(--ink-3); cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.drawer-close:hover { background: var(--bg-1); color: var(--ink); }
.drawer-section { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-4); margin: var(--sp-3) 0 var(--sp-2); }
.drawer-links { display: flex; flex-direction: column; gap: 2px; }
.drawer-links a {
  display: flex; align-items: center; padding: .62rem .65rem;
  font-size: .88rem; font-weight: 400; color: var(--ink-2);
  text-decoration: none; border-radius: var(--r-sm);
  transition: background var(--t), color var(--t);
}
.drawer-links a:hover { background: var(--bg-1); color: var(--ink); }

/* 7. PAGE LAYOUT */
.site-wrap { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--page-pad); }
.site-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: calc(100svh - var(--nav-h));
}
.site-sidebar {
  border-right: 1px solid var(--line);
  padding: var(--sp-5) var(--sp-4) var(--sp-5) 0;
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow-y: auto; overscroll-behavior: contain;
}
.sidebar-section {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: var(--ink-4);
  margin: 0 0 var(--sp-2); padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.site-sidebar a {
  display: block; font-size: .85rem; font-weight: 400;
  color: var(--ink-3); text-decoration: none;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  transition: color var(--t), padding-left .2s ease;
}
.site-sidebar a:hover { color: var(--ink); padding-left: 5px; }
.site-sidebar a:last-child { border-bottom: none; }

.site-main {
  padding: var(--sp-5) 0 var(--sp-7) clamp(var(--sp-4), 3vw, var(--sp-6));
  display: flex; flex-direction: column; gap: var(--gap);
  min-width: 0; animation: fadeUp .4s ease;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
main > * { margin-block: 0; }

/* 8. SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* 9. MESSAGES */
.site-message {
  padding: .75rem 1rem; font-size: .875rem;
  border-radius: var(--r-sm); border: 1px solid var(--line-md);
  background: var(--white); color: var(--ink);
}
.site-message.success { border-color: rgba(21,128,61,.25); background: var(--ok-dim); }
.site-message.error   { border-color: rgba(185,28,28,.25);  background: var(--danger-dim); }
.site-message.warning { border-color: rgba(180,83,9,.25);   background: var(--warn-dim); }

/* 10. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; font-family: var(--sans); font-size: .84rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  border-radius: var(--r-sm); padding: .62rem 1.25rem; min-height: 38px;
  letter-spacing: .01em; white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 2px 8px rgba(5,150,105,.3);
}
.btn-primary:hover {
  background: var(--accent-lt); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5,150,105,.4);
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: rgba(24,21,16,.82); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-hi); }
.btn-ghost:hover { background: var(--bg-1); color: var(--ink); border-color: var(--line-md); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(185,28,28,.22); }
.btn-danger:hover { background: var(--danger-dim); }
.btn-sm   { font-size: .78rem; padding: .42rem .88rem; min-height: 32px; }
.btn-lg   { font-size: .92rem; padding: .82rem 1.85rem; min-height: 46px; }
.btn-full { width: 100%; justify-content: center; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .btn,.btn-ghost { min-height: 44px; } .btn-sm { min-height: 40px; } }

/* 11. FORMS */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea {
  width: 100%; padding: .66rem .9rem;
  background: var(--white); border: 1px solid var(--line-md);
  border-radius: var(--r-sm); color: var(--ink);
  font-family: var(--sans); font-size: .9rem;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none; -webkit-appearance: none;
}
select {
  width: 100%; padding: .66rem .9rem;
  background: var(--white); border: 1px solid var(--line-md);
  border-radius: var(--r-sm); color: var(--ink);
  font-family: var(--sans); font-size: .9rem;
  transition: border-color var(--t), box-shadow var(--t);
}
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html.dark textarea,
html.dark select { background: var(--bg-1); }

input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder { color: var(--ink-4); }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

input[type="file"] { padding: var(--sp-2); cursor: pointer; font-size: .85rem; width: 100%; }

input[type="checkbox"] {
  position: relative; width: 1rem; height: 1rem; margin: 0; flex-shrink: 0;
  appearance: none; -webkit-appearance: none;
  background: var(--white); border: 1.5px solid var(--line-hi);
  border-radius: 3px; cursor: pointer;
  transition: background var(--t), border-color var(--t); vertical-align: middle;
}
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 3px; top: 0px;
  width: 5px; height: 9px; border: solid var(--accent-ink);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .55; cursor: not-allowed; background: var(--bg-1); }

.form-field  { margin-bottom: var(--sp-4); }
.form-label  { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form-help   { font-size: .72rem; color: var(--ink-4); margin-top: .3rem; }
.form-error  { font-size: .72rem; color: var(--danger); margin-top: .3rem; }
.errorlist   { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--danger); font-size: .72rem; }
.form-required { color: var(--accent); }
.check { display: flex; align-items: center; gap: .5rem; }

/* Search bar */
.search-bar {
  display: flex; border: 1.5px solid var(--line-hi);
  border-radius: var(--r-md); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim), var(--shadow-sm); }
.search-bar input {
  flex: 1; border: none; background: transparent;
  padding: .82rem 1.1rem; box-shadow: none; border-radius: 0; width: auto;
  font-size: .95rem;
}
.search-bar input:focus { border: none; box-shadow: none; }
.search-bar button {
  background: var(--accent); color: var(--accent-ink);
  border: none; padding: 0 1.5rem;
  font-family: var(--sans); font-size: .84rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; letter-spacing: .02em;
  min-height: 50px; transition: background var(--t);
}
.search-bar button:hover { background: var(--accent-lt); }

.file-block { word-break: break-all; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: var(--sp-2); }
.file-current {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--bg-1); font-size: .82rem;
}
.file-current-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); flex-shrink: 0; }
.file-current-link  { flex: 1; min-width: 0; word-break: break-word; color: var(--accent); text-decoration: none; }

/* 12. TAGS / PILLS */
.tag {
  display: inline-flex; align-items: center;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: .2rem .55rem;
  border-radius: var(--r-xs); border: 1px solid var(--line-md);
  color: var(--ink-3); white-space: nowrap; background: transparent;
}
.tag-green { border-color: rgba(21,128,61,.22);  color: var(--ok);     background: var(--ok-dim); }
.tag-amber { border-color: rgba(180,83,9,.22);   color: var(--warn);   background: var(--warn-dim); }
.tag-red   { border-color: rgba(185,28,28,.22);  color: var(--danger); background: var(--danger-dim); }
.tag-blue  { border-color: rgba(5,150,105,.22);  color: var(--accent); background: var(--accent-dim); }
.tag-muted { color: var(--ink-4); border-color: var(--line); }

.pill { display: inline-flex; align-items: center; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .55rem; border-radius: var(--r-xs); border: 1px solid var(--line-md); color: var(--ink-2); white-space: nowrap; }
.pill.published { color: var(--ok);     border-color: rgba(21,128,61,.22);  background: var(--ok-dim); }
.pill.pending   { color: var(--warn);   border-color: rgba(180,83,9,.22);   background: var(--warn-dim); }
.pill.rejected  { color: var(--danger); border-color: rgba(185,28,28,.22);  background: var(--danger-dim); }
.pill.remote    { color: var(--accent); border-color: rgba(5,150,105,.22);  background: var(--accent-dim); }
.pill.draft     { color: var(--ink-4);  border-color: var(--line); }

/* 13. DIVIDERS */
.divider { height: 1px; background: var(--line); }
.section-rule {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--ink-4); margin: var(--sp-5) 0;
}
.section-rule::before,.section-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* 14. CARDS */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.card-sm { padding: var(--sp-3); border-radius: var(--r-sm); }
.callout        { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line-md); border-radius: var(--r-sm); font-size: .875rem; background: var(--surface); }
.callout-warn   { border-left: 2px solid var(--warn);   background: var(--warn-dim);   border-color: rgba(180,83,9,.18); }
.callout-blue   { border-left: 2px solid var(--accent); background: var(--accent-dim); border-color: rgba(5,150,105,.18); }
.callout-ok     { border-left: 2px solid var(--ok);     background: var(--ok-dim);     border-color: rgba(21,128,61,.18); }
.callout-danger { border-left: 2px solid var(--danger); background: var(--danger-dim); border-color: rgba(185,28,28,.18); }

/* 15. STAT CELLS */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,160px),1fr));
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat-cell { padding: var(--sp-4) var(--sp-5); border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-num   { font-family: var(--serif); font-size: clamp(2rem,4vw,2.8rem); letter-spacing: -.03em; color: var(--ink); line-height: 1; margin-bottom: 4px; display: block; }
.stat-label { font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--ink-3); }
.board-stat { padding: var(--sp-3) var(--sp-4); border-right: 1px solid var(--line); }
.board-stat:last-child { border-right: none; }
.board-stat-num   { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.025em; color: var(--ink); line-height: 1; margin-bottom: 2px; display: block; }
.board-stat-label { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }

/* 16. JOB ROWS (homepage list style) */
.job-list { border-top: 1px solid var(--line); }
.job-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--sp-4); align-items: center;
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative;
  cursor: pointer; transition: padding-left .18s ease;
}
.job-row-bg { position: absolute; inset: 0; background: transparent; z-index: -1; transition: background var(--t); }
.job-row-accent { position: absolute; left: calc(-1 * var(--page-pad)); top: 0; bottom: 0; width: 2px; background: transparent; transition: background var(--t); }
.job-row:hover .job-row-bg     { background: var(--bg-1); }
/*   .job-row:hover .job-row-accent { background: var(--accent); } */
.job-row:hover { padding-left: var(--sp-2); }
.job-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.job-row-title   { font-size: .93rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-row-company { font-size: .78rem; color: var(--ink-3); margin: 0 0 var(--sp-2); }
.job-row-tags    { display: flex; gap: 4px; flex-wrap: wrap; }
.job-row-right   { text-align: right; flex-shrink: 0; }
.job-salary      { font-family: var(--serif); font-size: 1rem; color: var(--ink); letter-spacing: -.015em; line-height: 1; }
.hjob-salary     { font-family: var(--serif); font-size: 1rem; color: var(--ink); letter-spacing: -.015em; display: block; margin-bottom: 2px; }
.job-age         { font-size: .7rem; color: var(--ink-4); margin-top: 3px; }
.job-logo {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg-1); display: flex; align-items: center;
  justify-content: center; font-size: .9rem; font-weight: 800;
  color: var(--ink-3); overflow: hidden;
}
.job-logo img { width: 100%; height: 100%; object-fit: cover; }

/* 17. JOB CARDS (board/list pages) */
.job-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4); position: relative;
  cursor: pointer; transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.job-card-accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: var(--r-xs) 0 0 var(--r-xs);
  background: transparent; transition: background var(--t);
}
.job-card:hover { border-color: var(--line-hi); box-shadow: var(--shadow-md); transform: translateY(-1px); }
/*   .job-card:hover .job-card-accent { background: var(--accent); } */
.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); flex-wrap: wrap; }
.job-card-title  { font-size: .93rem; font-weight: 700; color: var(--ink); margin: 0 0 3px; letter-spacing: -.01em; }
.job-card-co     { font-size: .78rem; color: var(--ink-3); margin: 0; }
.job-card-tags   { display: flex; gap: 4px; flex-wrap: wrap; margin: var(--sp-2) 0; }
.job-card-desc   { font-size: .82rem; color: var(--ink-3); line-height: 1.6; margin-bottom: var(--sp-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.job-card-salary { font-family: var(--serif); font-size: .95rem; color: var(--ink); letter-spacing: -.015em; }
.job-card-date   { font-size: .68rem; color: var(--ink-4); }

/* 18. BOARD LAYOUT */
.board-grid { display: grid; grid-template-columns: 200px minmax(0,1fr) 180px; align-items: start; border-top: 1px solid var(--line); }
.board-filters {
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-right: 1px solid var(--line);
  position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h));
  overflow-y: auto; overscroll-behavior: contain;
}
.board-filters-title { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-4); margin: 0 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
.filter-label { font-size: .75rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; display: block; }
.board-main { padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.board-side { padding: var(--sp-4) 0 var(--sp-4) var(--sp-4); border-left: 1px solid var(--line); position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
.board-side-title { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-4); margin: 0 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
.insight-row { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.insight-row:last-child { border-bottom: none; }
.insight-row a { color: var(--ink-3); text-decoration: none; transition: color var(--t); }
.insight-row a:hover, .insight-row a.active { color: var(--ink); }
.insight-count { font-size: .65rem; color: var(--ink-4); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-xs); padding: .1rem .4rem; }
.filter-actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.filter-divider { height: 1px; background: var(--line); margin: var(--sp-3) 0; }

/* 19. JOB DETAIL */
.detail-layout { display: grid; grid-template-columns: 1fr min(280px,35%); gap: var(--sp-6); align-items: start; }
.detail-main   { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.detail-side   { position: sticky; top: calc(var(--nav-h) + var(--sp-4)); display: flex; flex-direction: column; gap: var(--sp-3); }
.breadcrumb    { display: flex; align-items: center; gap: var(--sp-2); font-size: .78rem; color: var(--ink-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.breadcrumb a  { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--ink-4); }
.jd-title     { font-family: var(--serif); font-size: clamp(2rem,5vw,3.2rem); letter-spacing: -.028em; line-height: .97; margin-bottom: var(--sp-4); word-break: break-word; }
.jd-salary    { font-family: var(--serif); font-size: clamp(1.3rem,2.5vw,1.8rem); letter-spacing: -.02em; line-height: 1; }
.jd-section-title { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-4); margin: 0 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
.jd-body { font-size: .9rem; line-height: 1.82; color: var(--ink-2); word-break: break-word; overflow-wrap: anywhere; }
.jd-body p { margin-bottom: var(--sp-3); }
.jd-body p:last-child { margin-bottom: 0; }

.jd-apply-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
  box-shadow: var(--shadow-md);
}
.jd-apply-label  { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-4); margin: 0; }
.jd-applied      { padding: var(--sp-3); border: 1px solid rgba(21,128,61,.22); border-radius: var(--r-sm); background: var(--ok-dim); text-align: center; }
.jd-applied-label { font-size: .85rem; font-weight: 700; color: var(--ok); }
.jd-applied-sub  { font-size: .75rem; color: var(--ink-4); margin-top: 2px; }
.jd-meta-card    { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.jd-meta-row     { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); }
.jd-meta-row:last-child { border-bottom: none; }
.jd-meta-key { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); }
.jd-meta-val { font-size: .85rem; color: var(--ink-2); }
.tech-cloud  { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.tech-tag    { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); background: var(--bg-1); border: 1px solid var(--line-md); border-radius: var(--r-xs); padding: .18rem .52rem; }

/* 20. JOB FORM */
.jform-section { margin-bottom: var(--sp-6); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.jform-section:last-of-type { border-bottom: none; }
.jform-section-title { font-size: .9rem; font-weight: 700; color: var(--ink); margin: 0 0 var(--sp-1); letter-spacing: -.01em; }
.jform-section-lead  { font-size: .8rem; color: var(--ink-3); margin: 0 0 var(--sp-4); line-height: 1.65; }
.danger-zone       { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.danger-zone-title { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-4); margin: 0 0 var(--sp-3); }

/* 21. APPLICANT PIPELINE */
.app-grid { display: grid; grid-template-columns: 1fr min(300px,38%); gap: var(--sp-6); align-items: start; }
.app-pipeline-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + var(--sp-4)); }
.timeline-list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.timeline-item  { padding-left: var(--sp-3); border-left: 2px solid var(--line-md); padding-bottom: var(--sp-2); }
.timeline-time  { display: block; font-size: .68rem; color: var(--ink-4); margin-bottom: 2px; }
.timeline-badge { font-size: .62rem; font-weight: 700; padding: .12rem .4rem; border-radius: var(--r-xs); margin-right: 4px; }
.timeline-move       { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(5,150,105,.2); }
.timeline-note-badge { background: var(--warn-dim); color: var(--warn); border: 1px solid rgba(180,83,9,.2); }
.timeline-msg { margin: 3px 0 0; font-size: .82rem; color: var(--ink-2); line-height: 1.55; }

/* 22. LEGAL */
.legal-doc { max-width: 50rem; line-height: 1.85; }
.legal-section { padding-top: var(--sp-5); margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.legal-section:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.legal-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-3); }
.section-num  { font-family: var(--mono); font-size: .65rem; font-weight: 700; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(5,150,105,.15); border-radius: var(--r-xs); padding: .1rem .4rem; margin-right: var(--sp-2); }
.legal-section p { font-size: .88rem; margin-bottom: var(--sp-3); color: var(--ink-2); }
.legal-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); margin: var(--sp-3) 0; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 420px; }
.legal-table th { padding: .6rem .85rem; text-align: left; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); border-bottom: 1px solid var(--line); background: var(--bg-1); }
.legal-table td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal-table tr:last-child td { border-bottom: none; }

/* 23. EMPLOYER PROFILE */
.ep-layout      { display: grid; grid-template-columns: 1fr min(280px,35%); gap: var(--sp-6); align-items: start; }
.ep-sidebar     { position: sticky; top: calc(var(--nav-h) + var(--sp-4)); display: flex; flex-direction: column; gap: var(--sp-4); }
.ep-sidebar-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.ep-sidebar-header { padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-4); background: var(--bg-1); }
.ep-sidebar-body { padding: 0 var(--sp-4); }
.ep-link-item { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .85rem; transition: color var(--t); }
.ep-link-item:hover { color: var(--ink); }
.ep-link-item:last-child { border-bottom: none; }
.ep-link-url { margin-left: auto; font-size: .68rem; color: var(--ink-4); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.ep-stat-row { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.ep-stat-row:last-child { border-bottom: none; }
.ep-stat-label { font-size: .78rem; color: var(--ink-3); }
.ep-stat-value { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); letter-spacing: -.015em; }

/* Candidate profile */
.candidate-profile-form .form-field { word-break: break-all; overflow-wrap: anywhere; }

/* 24. PAGINATION */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.pagination-info { font-size: .78rem; color: var(--ink-4); }
.pagination-btns { display: flex; gap: var(--sp-1); }

/* 25. FOOTER */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--page-w); margin: 0 auto;
  padding: var(--sp-4) var(--page-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
}
.footer-brand     { display: flex; flex-direction: column; gap: 3px; }
.footer-logo-link { display: inline-flex; text-decoration: none; }
.footer-logo-img  { height: 22px; width: auto; display: block; }
.footer-tagline   { font-size: .72rem; color: var(--ink-3); margin: 0; }
.footer-legal     { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-legal a   { font-size: .78rem; color: var(--ink-3); text-decoration: none; transition: color var(--t); }
.footer-legal a:hover { color: var(--ink); }
.footer-copy      { font-size: .72rem; color: var(--ink-4); }

/* 26. COOKIE BANNER */
.cookie-banner { position: fixed; left: var(--sp-3); right: var(--sp-3); bottom: max(var(--sp-3), env(safe-area-inset-bottom, var(--sp-3))); z-index: 9000; max-width: 34rem; margin: 0 auto; border: 1px solid var(--line-hi); border-radius: var(--r-lg); background: var(--white); padding: var(--sp-4); box-shadow: var(--shadow-lg); }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner h2 { font-size: .9rem; font-weight: 700; margin: 0 0 var(--sp-2); }
.cookie-banner > p { font-size: .82rem; color: var(--ink-3); margin: 0 0 var(--sp-3); line-height: 1.6; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cookie-banner-actions .btn { flex: 1 1 auto; min-width: 7rem; }
.cookie-customize-panel { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.cookie-customize-panel label { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: .82rem; color: var(--ink-2); cursor: pointer; margin: var(--sp-2) 0; font-weight: 400; }

/* 27. MISC */
.skeleton {
  background: linear-gradient(90deg, var(--bg-1) 25%, var(--bg-2) 50%, var(--bg-1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-xs);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.fab {
  position: fixed; bottom: max(1.25rem, env(safe-area-inset-bottom,1.25rem)); right: 1.25rem;
  z-index: 200; width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-size: 1.3rem;
  text-decoration: none; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(5,150,105,.4); transition: background var(--t), transform var(--t);
}
.fab:hover { background: var(--accent-lt); transform: translateY(-2px); }

.row  { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: var(--sp-3); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: var(--sp-3); }
.w-full { width: 100%; }

/* ══════════════════════════════════════════════════
   HOME PAGE — FULL 2026 DESIGN
   ══════════════════════════════════════════════════ */

/* Hero */
.h-hero {
  padding: clamp(3.5rem,9vw,6rem) 0 clamp(2.5rem,6vw,4rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Geometric accent — large faint circle top-right */
.h-hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(5,150,105,.12);
  pointer-events: none;
}
.h-hero::after {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(5,150,105,.08);
  pointer-events: none;
}

.h-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: 999px; padding: .32rem 1rem;
  margin-bottom: 1.75rem;
}
.h-kicker-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: hpulse 2.5s ease infinite;
}
@keyframes hpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.7)} }

/* THE HEADLINE — this is the personality */
.h-title {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9.5vw, 7rem);
  line-height: .90;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  max-width: 900px;
}
.h-title em {
  font-style: italic;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(5,150,105,.3);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* Hero bottom: sub + search */
.h-bottom {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.5rem,4vw,3.5rem); flex-wrap: wrap;
}
.h-sub {
  font-size: clamp(.9rem,1.5vw,1.05rem);
  font-weight: 300; color: var(--ink-2);
  max-width: 340px; line-height: 1.78; margin: 0;
}
.h-search-wrap { flex: 1; min-width: min(100%,440px); }

/* Quick pills */
.h-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.75rem; }
.h-pills a {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); text-decoration: none;
  padding: .22rem .7rem; border-radius: 999px;
  border: 1px solid var(--line-md);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.h-pills a:hover { color: var(--accent); border-color: rgba(5,150,105,.3); background: var(--accent-dim); }

/* Stats */
.h-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.h-stat { padding: var(--sp-4) var(--sp-5); border-right: 1px solid var(--line); }
.h-stat:last-child { border-right: none; }
.h-stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem,4.5vw,3.8rem);
  letter-spacing: -.04em; color: var(--ink);
  line-height: 1; margin-bottom: 5px; display: block;
}
.h-stat-lbl { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); }

/* Marquee */
.h-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .75rem 0;
  background: var(--white);
}
.h-marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: hmq 30s linear infinite;
}
.h-marquee-track span {
  font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-3);
  padding: 0 2.5rem; border-right: 1px solid var(--line);
  white-space: nowrap; transition: color var(--t);
}
.h-marquee-track span:hover { color: var(--accent); }
@keyframes hmq { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* Jobs section header */
.h-jobs-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line);
}
.h-jobs-hdr h2 { font-family: var(--serif); font-size: clamp(1.2rem,2.5vw,1.7rem); letter-spacing: -.022em; margin: 0; }
.h-jobs-hdr a  { font-size: .78rem; color: var(--ink-3); text-decoration: none; transition: color var(--t); }
.h-jobs-hdr a:hover { color: var(--accent); }

/* ══ DARK FEATURES SECTION ══════════════════════════ */
.h-dark {
  background: #111008;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem,6vw,4.5rem) clamp(1.5rem,4vw,3.5rem);
  position: relative; overflow: hidden;
}
/* Teal glow — bottom left */
.h-dark::before {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,.14) 0%, transparent 70%);
  pointer-events: none;
}

.h-dark-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: var(--sp-4); margin-bottom: clamp(1.5rem,3vw,2.5rem);
  padding-bottom: clamp(1.5rem,3vw,2.5rem);
  border-bottom: 1px solid rgba(240,237,228,.08);
}
.h-dark-kicker {
  font-size: .63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); margin-bottom: .75rem;
  display: block;
}
.h-dark-title {
  font-family: var(--serif);
  font-size: clamp(2rem,4vw,3rem);
  letter-spacing: -.028em; line-height: .97;
  color: #f0ede4; margin: 0;
}
.h-dark-sub {
  font-size: .9rem; font-weight: 300;
  color: rgba(240,237,228,.45);
  max-width: 300px; line-height: 1.7; margin: 0;
  align-self: flex-end;
}

.h-feat-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: rgba(240,237,228,.07);
  border: 1px solid rgba(240,237,228,.07);
  border-radius: var(--r-md); overflow: hidden;
}
.h-feat {
  background: rgba(240,237,228,.03);
  padding: clamp(1.25rem,3vw,2rem);
  transition: background var(--t);
}
.h-feat:hover { background: rgba(240,237,228,.06); }
.h-feat-n {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent);
  display: block; margin-bottom: var(--sp-3);
}
.h-feat-title {
  font-family: var(--serif); font-size: 1.1rem;
  font-weight: 400; color: #f0ede4;
  margin: 0 0 var(--sp-2); letter-spacing: -.015em;
  line-height: 1.2;
}
.h-feat-body {
  font-size: .82rem; font-weight: 300;
  color: rgba(240,237,228,.48); line-height: 1.72;
}

/* Steps */
.h-steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.h-step { padding: var(--sp-5) var(--sp-4); border-right: 1px solid var(--line); transition: background var(--t); }
.h-step:last-child { border-right: none; }
.h-step:hover { background: var(--bg); }
.h-step-n {
  display: inline-block;
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(5,150,105,.2);
  border-radius: 999px; padding: .22rem .7rem;
  margin-bottom: var(--sp-3);
}
.h-step-title { font-size: .95rem; font-weight: 700; color: var(--ink); margin: 0 0 var(--sp-2); letter-spacing: -.01em; }
.h-step-body  { font-size: .82rem; font-weight: 300; color: var(--ink-3); line-height: 1.75; }

/* Categories */
.h-cats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-sm);
}
.h-cat {
  padding: var(--sp-4); border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background var(--t), transform var(--t); position: relative;
}
.h-cat:nth-child(4n)         { border-right: none; }
.h-cat:nth-last-child(-n+4):nth-child(4n+1),
.h-cat:nth-last-child(-n+4):nth-child(4n+1) ~ .h-cat { border-bottom: none; }
.h-cat:hover { background: var(--bg); }
.h-cat-name  { font-family: var(--serif); font-size: 1rem; color: var(--ink); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 4px; }
.h-cat-count { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); }

/* CTA banner */
.h-cta {
  background: #111008;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem,6vw,4rem) clamp(1.5rem,4vw,3rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap; position: relative; overflow: hidden;
}
/* Accent glow top right */
.h-cta::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,.15) 0%, transparent 68%);
  pointer-events: none;
}
.h-cta-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem,4vw,3rem);
  color: #f0ede4; letter-spacing: -.028em;
  line-height: 1.03; margin: 0 0 var(--sp-2);
}
.h-cta-text p { font-size: .88rem; color: rgba(240,237,228,.45); margin: 0; }
.h-cta-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; position: relative; z-index: 1; flex-shrink: 0; }
.h-cta-btn-main {
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-size: .88rem; font-weight: 700;
  border: none; padding: .88rem 2rem; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t), transform var(--t);
  box-shadow: 0 4px 16px rgba(5,150,105,.35);
}
.h-cta-btn-main:hover { background: var(--accent-lt); transform: translateY(-2px); }
.h-cta-btn-ghost {
  background: transparent; color: rgba(240,237,228,.7);
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  border: 1px solid rgba(240,237,228,.15); padding: .88rem 2rem;
  border-radius: var(--r-sm); text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background var(--t), color var(--t), border-color var(--t);
}
.h-cta-btn-ghost:hover { background: rgba(240,237,228,.07); color: #f0ede4; border-color: rgba(240,237,228,.3); }

/* Auth footer line */
.h-auth { text-align: center; font-size: .8rem; color: var(--ink-4); padding: var(--sp-4) 0; }
.h-auth a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; transition: color var(--t); }
.h-auth a:hover { color: var(--accent); }

/* ══ RESPONSIVE ════════════════════════════════════ */
@media (max-width: 1100px) {
  .board-grid { grid-template-columns: 180px minmax(0,1fr); }
  .board-side { display: none; }
  .board-main { padding: var(--sp-4) 0 var(--sp-4) var(--sp-4); }
}
@media (max-width: 960px) {
  .site-layout { grid-template-columns: 1fr; }
  .site-sidebar { display: none; }
  .site-main { padding-left: 0; }
  .nav-links { display: none; }
  .nav-ham  { display: flex; }
  .nav-cta  { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side   { position: static; order: -1; }
  .app-grid      { grid-template-columns: 1fr; }
  .app-pipeline-box { position: static; order: -1; }
  .ep-layout  { grid-template-columns: 1fr; }
  .ep-sidebar { position: static; }
  .fab { display: inline-flex; }
  .h-feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .board-grid { grid-template-columns: 1fr; }
  .board-filters { position:static; height:auto; border-right:none; border-bottom:1px solid var(--line); padding:var(--sp-3) 0; display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-2); column-gap:var(--sp-3); }
  .board-filters .board-filters-title, .board-filters .filter-divider, .board-filters .filter-actions { grid-column: 1 / -1; }
  .board-filters .filter-actions { display:flex; flex-direction:row; gap:var(--sp-2); }
  .board-filters .filter-actions .btn { flex:1; }
  .board-main { padding: var(--sp-4) 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .h-stats { grid-template-columns: 1fr 1fr; }
  .h-stat:nth-child(2) { border-right: none; }
  .h-stat:nth-child(3) { grid-column: 1/-1; border-top: 1px solid var(--line); border-right: none; }
  .h-steps { grid-template-columns: 1fr; }
  .h-step  { border-right: none; border-bottom: 1px solid var(--line); }
  .h-step:last-child { border-bottom: none; }
  .h-cats { grid-template-columns: 1fr 1fr; }
  .h-cat:nth-child(2n) { border-right: none; }
  .h-cat:nth-child(4n) { border-right: 1px solid var(--line); }
  .h-cta { flex-direction: column; align-items: flex-start; }
  .h-cta-actions { width: 100%; }
  .h-cta-btn-main, .h-cta-btn-ghost { width: 100%; text-align: center; display: block; }
  .h-bottom { flex-direction: column; align-items: flex-start; }
  .h-dark-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --page-pad: 1rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: 1px solid var(--line); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .job-row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .job-row-right { text-align: left; display: flex; align-items: center; gap: var(--sp-3); }
  .legal-doc { max-width: 100%; }
  .cookie-banner { left: var(--sp-2); right: var(--sp-2); }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .btn { width: 100%; }
  .board-filters { grid-template-columns: 1fr; }
  .h-cats { grid-template-columns: 1fr 1fr; }
  .h-feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: none; }
  .job-card-footer { flex-direction: column; align-items: flex-start; }
  .h-stats { grid-template-columns: 1fr; }
  .h-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .h-stat:last-child { border-bottom: none; }
}
@media (max-width: 360px) {
  :root { --page-pad: .75rem; }
  body { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS BLOCK — Homepage
   ═══════════════════════════════════════════════════════════════════ */

   .testimonials-block {
    padding: var(--sp-5) 0 var(--sp-4);
    border-top: 1px solid var(--line);
    margin-top: var(--sp-5);
    width: 100%;
    box-sizing: border-box;
  }
  
  .testimonials-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--sp-5);
    padding: 0 var(--sp-3);
  }
  
  .testimonials-kicker {
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--accent);
    display: block;
    margin-bottom: .75rem;
  }
  
  .testimonials-title {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 0 0 var(--sp-2);
    color: var(--ink);
  }
  
  .testimonials-sub {
    font-size: .88rem;
    color: var(--ink-3);
    margin: 0;
    line-height: 1.6;
    padding: 0 var(--sp-2);
  }
  
  .testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Tablet (2 columns) */
  @media (min-width: 640px) {
    .testimonials-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Desktop (3 columns) */
  @media (min-width: 960px) {
    .testimonials-block {
      padding: var(--sp-6) 0 var(--sp-5);
    }
    
    .testimonials-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-header {
      margin-bottom: var(--sp-6);
    }
  }
  
  .testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  
  /* Larger padding on desktop */
  @media (min-width: 960px) {
    .testimonial-card {
      padding: var(--sp-5) var(--sp-4) var(--sp-4);
    }
  }
  
  .testimonial-card:hover {
    border-color: var(--line-hi);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  
  .testimonial-quote {
    font-family: var(--serif);
    font-size: .95rem;
    line-height: 1.5;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 var(--sp-4);
    padding: 0 0 0 var(--sp-1);
    position: relative;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  @media (min-width: 960px) {
    .testimonial-quote {
      font-size: 1.05rem;
    }
  }
  
  .testimonial-quote-icon {
    position: absolute;
    top: -.5rem;
    left: -.5rem;
    font-size: 2.5rem;
    color: var(--accent-dim);
    font-family: var(--serif);
    line-height: 1;
    opacity: .4;
    z-index: 0;
    pointer-events: none;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line);
    margin-bottom: var(--sp-2);
    width: 100%;
  }
  
  .testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
  }
  
  @media (min-width: 640px) {
    .testimonial-avatar {
      width: 44px;
      height: 44px;
    }
  }
  
  .testimonial-avatar-placeholder {
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    border: 2px solid var(--accent);
  }
  
  @media (min-width: 640px) {
    .testimonial-avatar-placeholder {
      font-size: 1.2rem;
    }
  }
  
  .testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }
  
  .testimonial-author-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
  }
  
  .testimonial-author-title {
    font-size: .68rem;
    color: var(--ink-3);
    line-height: 1.3;
    word-wrap: break-word;
  }
  
  .testimonial-author-company {
    font-size: .68rem;
    color: var(--accent);
    font-weight: 500;
    line-height: 1.3;
  }
  
  .testimonial-job {
    margin-top: auto;
    width: 100%;
  }
  
  .testimonial-job .tag {
    font-size: .6rem;
    padding: .2rem .5rem;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
  }
  
  @media (min-width: 640px) {
    .testimonial-job .tag {
      font-size: .62rem;
      white-space: nowrap;
    }
  }
  
  .testimonials-footer {
    text-align: center;
    padding-top: var(--sp-2);
    width: 100%;
  }
  
  .testimonials-footer .btn {
    width: auto;
    min-width: 200px;
  }
  
  @media (max-width: 480px) {
    .testimonials-footer .btn {
      width: 100%;
    }
    
    .testimonial-card {
      padding: var(--sp-3);
    }
    
    .testimonial-quote {
      font-size: .9rem;
      margin-bottom: var(--sp-3);
    }
  }

  .testimonials-empty {
    padding: var(--sp-4) 0;
    width: 100%;
  }
  
  .testimonials-empty .testimonial-card {
    background: var(--bg-1);
    border-style: dashed;
    border-color: var(--line-hi);
  }
  
  .testimonials-empty .testimonial-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }