/* ==========================================================================
   STAFFLY — Brand-led Design System
   Typography: Montserrat (matches logo)
   Palette: Black, white, brand teal #6aa7b8
   Motif: the chevron from the "A" in the logo
   ========================================================================== */

:root {
  /* Brand colors */
  --teal:        #6aa7b8;
  --teal-deep:   #4a8a9c;
  --teal-darker: #38707f;
  --teal-50:     #EEF5F7;
  --teal-100:    #DCEAEF;
  --teal-200:    #B7D5DC;

  --black:       #0E0E10;
  --ink:         #1A1A1D;
  --ink-2:       #2C2C30;
  --ink-muted:   #6B6B70;
  --ink-soft:    #8E8E92;

  --white:       #FFFFFF;
  --off-white:   #FAFAF8;
  --paper:       #F7F7F4;
  --paper-2:     #F0F0EC;
  --line:        #E5E5E0;
  --line-strong: #CCCCC5;

  /* Type */
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Density (modifiable by Tweaks) */
  --density: 1;
  --section-pad: clamp(56px, calc(96px * var(--density)), 128px);
  --section-pad-sm: clamp(40px, calc(64px * var(--density)), 92px);
  --gutter: clamp(20px, 5vw, 56px);

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --radius: 6px;
  --radius-lg: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* ============ Typography ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.10;
  color: #161618;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.020em;
  line-height: 1.12;
}
h3 {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.22;
}
h4 {
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 700;
  letter-spacing: -0.010em;
}
h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

p { text-wrap: pretty; font-weight: 400; }

.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 60ch;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-darker);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  background-color: var(--teal);
  -webkit-mask: url('assets/logo/favicon.svg') center / contain no-repeat;
          mask: url('assets/logo/favicon.svg') center / contain no-repeat;
}
.eyebrow.plain::before { display: none; }

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--section-pad) 0; }
section.compact { padding: var(--section-pad-sm) 0; }
.bg-black { background: var(--black); color: var(--white); }
.bg-paper { background: var(--paper); }
.bg-teal  { background: var(--teal); color: var(--white); }
.bg-ink   { background: var(--ink); color: var(--white); }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s;
}
.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
  flex-shrink: 0;
}
.nav-logo svg { height: 100%; width: auto; display: block; }
.nav-logo svg text.ink-fill { fill: var(--black); }
.footer-logo svg text.ink-fill { fill: var(--white); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius-pill);
  transition: background 0.18s, color 0.18s;
  letter-spacing: -0.005em;
}
.nav-links a:hover { background: var(--teal-50); color: var(--teal-darker); }
.nav-links a.active { color: var(--teal-darker); }
.nav-links a.active::after {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  background: var(--teal);
  margin: 4px auto -2px;
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: background 0.2s, transform 0.18s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-darker); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-pill);
}
.nav-toggle:hover { background: var(--paper); }
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s;
}
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after  { top:  7px; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav-inner {
  padding: 96px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  border-bottom: 1px solid var(--line);
  transition: color 0.18s, padding 0.18s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--teal-darker); padding-left: 8px; }
.mobile-nav .mobile-cta {
  margin-top: auto;
  padding-top: 32px;
}
.mobile-nav .mobile-cta a {
  border: none;
  background: var(--black);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-pill);
  font-size: 16px;
  padding: 16px 24px;
  font-weight: 700;
}
.mobile-nav .mobile-cta a:hover { background: var(--teal-darker); padding-left: 24px; }

body.mobile-nav-open { overflow: hidden; }
body.mobile-nav-open .nav-toggle .bar { background: transparent; }
body.mobile-nav-open .nav-toggle .bar::before { transform: translateY(7px) rotate(45deg); }
body.mobile-nav-open .nav-toggle .bar::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-darker); border-color: var(--teal-darker); transform: translateY(-1px); }

.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--teal-darker); border-color: var(--teal-darker); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-darker);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  transition: gap 0.2s, color 0.18s;
}
.btn-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.btn-link:hover { gap: 12px; color: var(--black); }
.btn-link:hover svg { transform: translateX(3px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 920px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 80px;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,14,16,0.20) 0%, rgba(14,14,16,0.40) 40%, rgba(14,14,16,0.88) 100%),
    linear-gradient(115deg, rgba(14,14,16,0.45) 0%, transparent 60%);
}
.hero-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--teal-200);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--teal-200);
  -webkit-mask: url('assets/logo/favicon.svg') center / contain no-repeat;
          mask: url('assets/logo/favicon.svg') center / contain no-repeat;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5.6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
  max-width: 20ch;
  margin-bottom: 24px;
}
.hero h1 .teal-word { color: var(--teal-200); }
.hero-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,0.86);
  max-width: 60ch;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.03em;
  display: block;
}
.hero-meta-item .label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

@media (max-width: 700px) {
  .hero { padding: 80px 0 56px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); }
}

/* Page hero (smaller, for sub-pages) */
.page-hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 8vw, 80px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.022em;
  margin-bottom: 20px;
  max-width: 24ch;
}
.page-hero p.lead { max-width: 64ch; }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--black);
  color: var(--teal-100);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: scroll-left 38s linear infinite;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}
.marquee-track .chev {
  display: inline-block;
  width: 14px; height: 14px;
  background-color: var(--teal);
  -webkit-mask: url('assets/logo/favicon.svg') center / contain no-repeat;
          mask: url('assets/logo/favicon.svg') center / contain no-repeat;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Section header ============ */
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.section-header > div:first-child { max-width: 26ch; }
.section-header h2 { font-weight: 700; }
.section-header p { color: var(--ink-muted); font-size: 16px; max-width: 50ch; line-height: 1.6; }
.section-header .eyebrow { margin-bottom: 14px; }
@media (max-width: 800px) {
  .section-header { grid-template-columns: 1fr; gap: 14px; align-items: start; }
}

/* ============ Cards / Grids ============ */
.grid {
  display: grid;
  gap: clamp(16px, 1.6vw, 24px);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
              border-color 0.25s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 24px 50px -24px rgba(106, 167, 184, 0.4);
}
.card .card-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-darker);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card .card-num::before {
  content: "";
  width: 10px; height: 10px;
  background-color: var(--teal);
  -webkit-mask: url('assets/logo/favicon.svg') center / contain no-repeat;
          mask: url('assets/logo/favicon.svg') center / contain no-repeat;
}
.card h3 {
  font-size: clamp(19px, 1.7vw, 22px);
  letter-spacing: -0.014em;
  font-weight: 700;
}
.card p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}
.card .btn-link { align-self: flex-start; margin-top: 8px; }
.card-image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 4px;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-image img { transform: scale(1.05); }

/* ============ Split (about) ============ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}
.split-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  position: relative;
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(106, 167, 184, 0.0) 100%);
  pointer-events: none;
}
.split-content .eyebrow { margin-bottom: 18px; }
.split-content h2 {
  margin-bottom: 20px;
  font-weight: 700;
}
.split-content p {
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.62;
  margin-bottom: 16px;
}
.split-content p:last-of-type { margin-bottom: 24px; }

/* ============ Stats ============ */
.stats-block { background: var(--black); color: var(--white); }
.stats-block .eyebrow { color: var(--teal-200); }
.stats-block .eyebrow::before { background-color: var(--teal-200); }
.stats-block h2 { color: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr; } }
.stat {
  background: var(--black);
  padding: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 5.5vw, 86px);
  font-weight: 900;
  color: var(--teal-200);
  letter-spacing: -0.035em;
  line-height: 0.95;
  display: block;
}
.stat .stat-label {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
}
.stat .stat-desc {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
}

/* ============ Testimonials ============ */
.testimonials {
  background: var(--paper);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform 0.3s, border-color 0.25s, box-shadow 0.3s;
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 20px 40px -20px rgba(106, 167, 184, 0.3);
}
.testimonial::before {
  content: "";
  position: absolute;
  top: 28px;
  left: clamp(28px, 3vw, 40px);
  width: 18px; height: 18px;
  background-color: var(--teal);
  -webkit-mask: url('assets/logo/favicon.svg') center / contain no-repeat;
          mask: url('assets/logo/favicon.svg') center / contain no-repeat;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 32px;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}
.testimonial-meta .name {
  font-weight: 700;
  color: var(--black);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.testimonial-meta .role { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

/* ============ CTA Banner ============ */
.cta-banner {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -10%; right: -8%;
  width: 360px; height: 360px;
  background-color: var(--teal);
  opacity: 0.15;
  -webkit-mask: url('assets/logo/favicon.svg') center / contain no-repeat;
          mask: url('assets/logo/favicon.svg') center / contain no-repeat;
  pointer-events: none;
  transform: rotate(8deg);
}
.cta-banner h2 {
  color: var(--white);
  max-width: 20ch;
  font-weight: 700;
}
.cta-banner p {
  color: rgba(255,255,255,0.72);
  margin-top: 16px;
  max-width: 44ch;
  font-size: 17px;
}
.cta-banner .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-self: end; }
@media (max-width: 900px) {
  .cta-banner { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner .cta-actions { justify-self: start; }
}

/* ============ Newsletter ============ */
.newsletter {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  bottom: -20%; left: -5%;
  width: 280px; height: 280px;
  background-color: var(--white);
  opacity: 0.10;
  -webkit-mask: url('assets/logo/favicon.svg') center / contain no-repeat;
          mask: url('assets/logo/favicon.svg') center / contain no-repeat;
  pointer-events: none;
  transform: rotate(-12deg);
}
@media (max-width: 880px) { .newsletter { grid-template-columns: 1fr; padding: 40px 32px; } }
.newsletter h3 {
  color: var(--white);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter p { color: rgba(255,255,255,0.88); font-size: 15px; max-width: 44ch; }

.newsletter-form {
  display: flex;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 24px;
  position: relative;
  z-index: 1;
}
.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--black);
  font-weight: 500;
}
.newsletter-form button {
  background: var(--black);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: background 0.2s;
  font-family: var(--font-display);
}
.newsletter-form button:hover { background: var(--teal-darker); }

/* ============ FOOTER ============ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: clamp(64px, 8vw, 104px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-logo { height: 32px; width: auto; margin-bottom: 24px; display: block; }
.footer-brand .tagline {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-200);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 36ch;
}

.footer h5 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-200);
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.18s;
  font-weight: 500;
}
.footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.footer-bottom .social { display: flex; gap: 12px; }
.footer-bottom .social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-bottom .social a:hover { background: var(--teal); }
.footer-bottom .social svg { width: 16px; height: 16px; color: var(--white); }

/* ============ Forms ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-50);
}
.field input.error, .field select.error, .field textarea.error {
  border-color: #C75450;
  box-shadow: 0 0 0 4px rgba(199, 84, 80, 0.10);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-full { grid-column: 1 / -1; }
.field-error {
  font-size: 12px;
  color: #C75450;
  margin-top: -2px;
  font-weight: 600;
}

/* ============ Filters / Pills ============ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: -0.005em;
}
.pill:hover { border-color: var(--teal); color: var(--teal-darker); }
.pill.active { background: var(--black); color: var(--white); border-color: var(--black); }
.pill .count { opacity: 0.55; font-size: 12px; }

.search-input {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 11px 18px 11px 44px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  width: 280px;
  max-width: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236B6B70" stroke-width="2.2"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>');
  background-repeat: no-repeat;
  background-position: 16px 50%;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.search-input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }

/* ============ Role row ============ */
.role-list { display: flex; flex-direction: column; }
.role-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  transition: background 0.2s, padding 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.role-row:last-child { border-bottom: 1px solid var(--line); }
.role-row:hover { background: var(--paper); padding-left: 28px; }
.role-row .role-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.role-row .role-meta {
  font-size: 13px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.role-row .role-meta svg { color: var(--teal-darker); flex-shrink: 0; }
.role-row .role-tag {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-darker);
  background: var(--teal-50);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.role-row .role-cta {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--black);
}
.role-row:hover .role-cta {
  background: var(--teal);
  color: var(--white);
  transform: translateX(4px);
}
@media (max-width: 760px) {
  .role-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .role-row:hover { padding-left: 8px; }
  .role-row .role-cta { display: none; }
}

/* ============ FAQ accordion ============ */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
  transition: color 0.18s;
}
.faq-question:hover { color: var(--teal-darker); }
.faq-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s, color 0.2s;
}
.faq-item.open .faq-icon { background: var(--teal); color: var(--white); transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 0 28px 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 64ch;
}
.faq-item.open .faq-answer { max-height: 720px; }

/* ============ Blog cards ============ */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  background: transparent;
  transition: transform 0.3s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card .card-image { aspect-ratio: 3 / 2; }
.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.blog-card .blog-meta .topic { color: var(--teal-darker); }
.blog-card .blog-meta .dot { width: 3px; height: 3px; background: var(--line-strong); border-radius: 50%; }
.blog-card h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.012em;
  transition: color 0.2s;
}
.blog-card:hover h3 { color: var(--teal-darker); }
.blog-card p { font-size: 15px; color: var(--ink-muted); }

/* ============ Contact specifics ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 88px);
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-info h3 { font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 16px; font-weight: 700; }
.contact-info > p { color: var(--ink-muted); margin-bottom: 32px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.contact-item .lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.contact-item .val { font-size: 18px; color: var(--black); font-weight: 600; }
.contact-item .val a { transition: color 0.18s; }
.contact-item .val a:hover { color: var(--teal-darker); }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 52px);
}

/* ============ Legal ============ */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static !important; }
}
.legal-toc {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.legal-toc h5 { color: var(--ink-muted); margin-bottom: 16px; }
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a { font-size: 13px; color: var(--ink-muted); transition: color 0.18s; font-weight: 500; }
.legal-toc a:hover, .legal-toc a.active { color: var(--teal-darker); font-weight: 600; }

.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: clamp(20px, 1.7vw, 24px);
  margin-top: 48px;
  margin-bottom: 14px;
  font-weight: 700;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 18px; margin-top: 32px; margin-bottom: 12px; font-weight: 700; text-transform: none; letter-spacing: -0.01em; }
.legal-body p { color: var(--ink-muted); margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.legal-body ul { padding-left: 24px; margin-bottom: 16px; }
.legal-body li { color: var(--ink-muted); margin-bottom: 8px; }
.legal-body strong { color: var(--black); font-weight: 700; }
.legal-body a { color: var(--teal-darker); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
.reveal:nth-child(5) { transition-delay: 0.24s; }
.reveal:nth-child(6) { transition-delay: 0.30s; }

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background: var(--black);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 90;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.3);
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.cookie-banner p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85); flex: 1; }
.cookie-banner .actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner button {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-display);
  transition: all 0.18s;
}
.cookie-banner .accept { background: var(--teal); color: var(--white); }
.cookie-banner .accept:hover { background: var(--teal-darker); }
.cookie-banner .decline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.cookie-banner .decline:hover { border-color: var(--white); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 12px; left: 12px; right: 12px; }
}

/* ============ Tweaks-driven variants ============ */
body[data-mood="twilight"] {
  background: var(--black);
  color: rgba(255,255,255,0.85);
}
body[data-mood="twilight"] h1, body[data-mood="twilight"] h2, body[data-mood="twilight"] h3, body[data-mood="twilight"] h4 { color: var(--white); }
body[data-mood="twilight"] p, body[data-mood="twilight"] .lead { color: rgba(255,255,255,0.65); }
body[data-mood="twilight"] .nav { background: rgba(14,14,16,0.85); border-bottom-color: rgba(255,255,255,0.08); }
body[data-mood="twilight"] .nav-links a { color: rgba(255,255,255,0.7); }
body[data-mood="twilight"] .nav-links a:hover { background: rgba(106, 167, 184, 0.12); color: var(--teal-200); }
body[data-mood="twilight"] .nav-cta { background: var(--teal); color: var(--white); }
body[data-mood="twilight"] .bg-paper, body[data-mood="twilight"] .page-hero, body[data-mood="twilight"] .testimonials { background: var(--ink); }
body[data-mood="twilight"] .card, body[data-mood="twilight"] .testimonial, body[data-mood="twilight"] .contact-card, body[data-mood="twilight"] .legal-toc {
  background: var(--ink-2);
  border-color: rgba(255,255,255,0.08);
}
body[data-mood="twilight"] .card p, body[data-mood="twilight"] .blog-card p { color: rgba(255,255,255,0.6); }
body[data-mood="twilight"] .stats-block { background: var(--ink); }
body[data-mood="twilight"] .stat { background: var(--ink); }
body[data-mood="twilight"] .role-row { border-color: rgba(255,255,255,0.08); }
body[data-mood="twilight"] .role-row:hover { background: rgba(255,255,255,0.04); }
body[data-mood="twilight"] .role-row .role-title { color: var(--white); }
body[data-mood="twilight"] .role-row .role-meta { color: rgba(255,255,255,0.6); }
body[data-mood="twilight"] .role-row .role-cta { background: rgba(255,255,255,0.06); color: var(--white); }
body[data-mood="twilight"] .pill { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.8); }
body[data-mood="twilight"] .pill.active { background: var(--teal); color: var(--white); border-color: var(--teal); }
body[data-mood="twilight"] .search-input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); color: var(--white); }
body[data-mood="twilight"] .faq-item, body[data-mood="twilight"] .faq-item:last-child { border-color: rgba(255,255,255,0.08); }
body[data-mood="twilight"] .faq-question { color: var(--white); }
body[data-mood="twilight"] .faq-icon { background: rgba(255,255,255,0.08); color: var(--white); }
body[data-mood="twilight"] .field input, body[data-mood="twilight"] .field select, body[data-mood="twilight"] .field textarea {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); color: var(--white);
}
body[data-mood="twilight"] .legal-body p, body[data-mood="twilight"] .legal-body li { color: rgba(255,255,255,0.65); }
body[data-mood="twilight"] .legal-body strong { color: var(--white); }
body[data-mood="twilight"] .btn-outline { color: var(--white); border-color: var(--white); }
body[data-mood="twilight"] .btn-outline:hover { background: var(--white); color: var(--black); }
body[data-mood="twilight"] .nav-logo .ink-fill { fill: var(--white); }
body[data-mood="twilight"] .footer-logo .ink-fill { fill: var(--white); }

/* Motion toggle */
body[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }
body[data-motion="off"] .marquee-track { animation: none; }

/* Density */
body[data-density="compact"]  { --density: 0.7; }
body[data-density="spacious"] { --density: 1.25; }

/* Skip link a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }
