:root {
  --bg: #f3f7ff;
  --ink: #0f1a2b;
  --muted: #4a5a7a;
  --accent: #2a6fe8;
  --accent-2: #72b7ff;
  --accent-3: #163a73;
  --nav-bg: #9fd2ff;
  --nav-ink: #0f1a2b;
  --nav-muted: rgba(15, 26, 43, 0.7);
  --card: #ffffff;
  --line: rgba(15, 26, 43, 0.12);
  --shadow: 0 20px 50px rgba(15, 26, 43, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
  --content: 1180px;
  --pad: clamp(20px, 4vw, 56px);
}

@font-face {
  font-family: "Cardo";
  src: url("../fonts/cardo_normal_400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Red Rose";
  src: url("../fonts/redrose-qdvvstyilbjoupgeuyljmqq.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cardo", "Times New Roman", serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 12%, rgba(139, 197, 255, 0.5), transparent 48%),
    radial-gradient(circle at 88% 10%, rgba(116, 176, 255, 0.35), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(240, 246, 255, 0.8), transparent 55%),
    linear-gradient(160deg, #e9f2ff 0%, #f7fbff 50%, #ffffff 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.75rem;
  color: var(--accent-3);
  font-weight: 700;
}

h1, h2, h3 {
  font-family: "Red Rose", "Cardo", serif;
  line-height: 1.1;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.1rem);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

button,
.btn,
input,
select,
textarea {
  font-family: "Cardo", "Times New Roman", serif;
}

button,
.btn {
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 75, 63, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 75, 63, 0.18);
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 29, 24, 0.15);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  color: var(--nav-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(15, 26, 43, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-eyebrow {
  font-size: 0.8rem;
  color: var(--nav-muted);
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 600;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  animation: navRise 0.6s ease forwards;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2a6fe8, #ffffff);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 8px;
}

.nav-cta .btn {
  opacity: 0;
  transform: translateY(-6px);
  animation: navRise 0.6s ease forwards;
  padding: 10px 16px;
  font-size: 0.95rem;
}

.nav-links a:nth-child(1) { animation-delay: 0.05s; }
.nav-links a:nth-child(2) { animation-delay: 0.1s; }
.nav-links a:nth-child(3) { animation-delay: 0.15s; }
.nav-links a:nth-child(4) { animation-delay: 0.2s; }
.nav-links a:nth-child(5) { animation-delay: 0.25s; }
.nav-links a:nth-child(6) { animation-delay: 0.3s; }
.nav-links a:nth-child(7) { animation-delay: 0.35s; }
.nav-cta .btn:nth-child(1) { animation-delay: 0.4s; }
.nav-cta .btn:nth-child(2) { animation-delay: 0.45s; }

.menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 26, 43, 0.2);
  color: var(--nav-ink);
  padding: 8px 12px;
  border-radius: 10px;
}

.site-header .btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 26, 43, 0.2);
  color: var(--nav-ink);
}

.site-header .btn-primary {
  background: #2a6fe8;
  color: #fff;
  box-shadow: 0 10px 24px rgba(42, 111, 232, 0.35);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(114, 183, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(42, 111, 232, 0.2), transparent 52%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(233, 242, 255, 0.4));
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(42, 111, 232, 0.25), transparent 65%);
  filter: blur(2px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero-copy {
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 31, 24, 0.08);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-highlights div {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.hero-highlights strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent-3);
}

.hero-highlights span {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent-3);
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 300px;
  background: url("../images/hr-consultants-in-nairobi-kenya.webp") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  animation: drift 8s ease-in-out infinite;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 26, 43, 0.05), rgba(15, 26, 43, 0.55));
}

.hero-badge {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: 14px;
  display: grid;
  gap: 4px;
}

.hero-badge span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-3);
}

.trust-strip {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.trust-title {
  margin: 0;
  font-weight: 700;
  color: var(--accent-3);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-pill {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(15, 26, 43, 0.08);
}

.section {
  padding: clamp(44px, 6vw, 84px) 0;
  position: relative;
}

.section.alt {
  background: rgba(233, 242, 255, 0.6);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.matrix {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 24px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}

.matrix-grid button {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(42, 111, 232, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 18px rgba(15, 26, 43, 0.08);
}

.matrix-grid button::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.7;
}

.matrix-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 111, 232, 0.7);
  box-shadow: 0 14px 26px rgba(15, 26, 43, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #e9f2ff 100%);
}

.matrix-grid button.active {
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(42, 111, 232, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #dfeeff 100%);
}

.matrix-detail {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 26, 43, 0.08);
  min-height: 220px;
}

.matrix-output {
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 26, 43, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 26, 43, 0.14);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(114, 183, 255, 0.2);
  color: #1f4f93;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: center;
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(15, 26, 43, 0.08);
  font-weight: 600;
  color: var(--ink);
}

.job-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(15, 26, 43, 0.08);
}

.job-item span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.job-tag {
  background: rgba(42, 111, 232, 0.12);
  color: var(--accent-3);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.tick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tick span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mini-stats div {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 12px;
}

.mini-stats strong {
  display: block;
  color: var(--accent-3);
}

.about-media {
  overflow: hidden;
  display: grid;
  gap: 14px;
}

.about-media img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.about-caption {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 14px 16px;
}

.about-caption p {
  margin: 6px 0 0;
  color: var(--muted);
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(42, 111, 232, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-icon svg,
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(42, 111, 232, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-3);
  margin-bottom: 12px;
}

.link {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.industry-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.industry-card span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(42, 111, 232, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-3);
  font-weight: 700;
}

.job-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.job-field {
  display: grid;
  gap: 8px;
}

.job-field label {
  font-weight: 600;
}

.job-field input,
.job-field select,
.form input,
.form textarea,
.form select,
.newsletter input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
}

.job-field-action {
  align-items: end;
}

.jobs-grid {
  display: grid;
  gap: 16px;
}

.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 26, 43, 0.06);
}

.job-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.job-empty {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  display: none;
}

.testimonial-card {
  display: grid;
  gap: 16px;
}

.company-chip {
  display: flex;
  gap: 12px;
  align-items: center;
}

.company-chip span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.company-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(42, 111, 232, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.company-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-cta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(120deg, #2a6fe8, #1f55b8);
  color: #fff;
  box-shadow: var(--shadow);
}

.service-cta p {
  color: rgba(255, 255, 255, 0.85);
}

.service-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.service-cta-media {
  min-height: 190px;
  border-radius: 18px;
  background: url("../images/hr-consultants-in-nairobi-kenya.webp") center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-band {
  background: linear-gradient(120deg, #2a6fe8, #1659c8);
  color: #fff;
}

.cta-band p,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: center;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form {
  display: grid;
  gap: 14px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(42, 111, 232, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-item p {
  margin: 0;
  color: var(--muted);
}

.apply-hero {
  padding: clamp(56px, 8vw, 110px) 0;
  background: radial-gradient(circle at 15% 20%, rgba(139, 197, 255, 0.35), transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(42, 111, 232, 0.25), transparent 50%);
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.apply-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.file-drop {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(42, 111, 232, 0.35);
  background: rgba(42, 111, 232, 0.08);
}

.file-drop input[type="file"] {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(42, 111, 232, 0.25);
  background: #fff;
}

.file-name {
  font-size: 0.9rem;
  color: var(--muted);
}

.file-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status {
  min-height: 22px;
  font-size: 0.95rem;
  color: #b53b3b;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(181, 59, 59, 0.08);
  border: 1px solid rgba(181, 59, 59, 0.2);
}

.form-status.success {
  color: #1f7a4d;
  background: rgba(31, 122, 77, 0.1);
  border-color: rgba(31, 122, 77, 0.25);
}

.map-card {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(15, 26, 31, 0.1);
}

.map-card iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  background: #eff5ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.footer-credit {
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

.footer-heart {
  color: #e03131;
  margin-left: 6px;
}

.social {
  display: flex;
  gap: 14px;
  font-weight: 600;
}

.newsletter {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
}

.article-main h2 {
  margin-top: 18px;
}

.article-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.stat-list,
.reference-list,
.checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.stat-list li,
.reference-list li,
.checklist li {
  line-height: 1.5;
}

.ref-tag {
  font-weight: 700;
  color: var(--accent);
  margin-left: 6px;
}

.article-aside .btn {
  width: 100%;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(2px);
}

.reveal.is-visible {
  animation: rise 0.9s ease forwards;
}

.reveal.delay-1.is-visible { animation-delay: 0.1s; }
.reveal.delay-2.is-visible { animation-delay: 0.2s; }
.reveal.delay-3.is-visible { animation-delay: 0.3s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes navRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav.open .nav-links {
    display: grid;
    width: 100%;
    gap: 12px;
    padding: 16px 0;
  }

  .nav.open .nav-cta {
    display: grid;
    width: 100%;
  }

  .nav.open .nav-links a,
  .nav.open .nav-cta .btn {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .nav {
    flex-wrap: wrap;
  }

  .matrix {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .job-card {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 56px 0;
  }

  .grid-3,
  .grid-4 {
    gap: 16px;
  }

  .article-layout {
    gap: 18px;
  }

  .article-main h2 {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-media {
    animation: none;
  }
}
