:root {
  --gold: #c9a227;
  --gold-light: #e8ca6e;
  --gold-dark: #8f6f1a;
  --ink: #131110;
  --ink-soft: #55524c;
  --ink-mute: #8a8680;
  --paper: #ffffff;
  --paper-soft: #f8f6f1;
  --border: #ece7d9;
  --radius: 10px;
  --radius-lg: 20px;
  --max-width: 1180px;
  --shadow-sm: 0 2px 10px rgba(19, 17, 16, 0.06);
  --shadow-md: 0 16px 40px rgba(19, 17, 16, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

/* ---------- Preloader ---------- */
body.is-loading { overflow: hidden; height: 100%; }

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 140% at 50% 50%, #26221a 0%, #17140f 45%, #0c0a08 100%);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
.preloader-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, rgba(201, 162, 39, 0) 65%);
  animation: glowPulse 2.4s ease-in-out infinite;
}
.preloader-logo {
  position: relative;
  width: clamp(72px, 16vw, 130px);
  height: auto;
  opacity: 0;
  transform: scale(0.4) rotate(0deg);
  animation: logoIntro 1.4s var(--ease) forwards;
  filter: drop-shadow(0 0 24px rgba(201, 162, 39, 0.45));
}
.preloader.is-hidden {
  opacity: 0;
  transform: scale(1.08);
  visibility: hidden;
  pointer-events: none;
}

@keyframes logoIntro {
  0% { transform: scale(0.35) rotate(0deg); opacity: 0; }
  30% { opacity: 1; }
  65% { transform: scale(1.18) rotate(320deg); opacity: 1; }
  85% { transform: scale(0.94) rotate(350deg); }
  100% { transform: scale(1) rotate(360deg); opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  z-index: 200;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .preloader { transition: opacity 0.01s linear; }
  .preloader-logo { animation: none; opacity: 1; transform: none; }
  .preloader-glow { animation: none; }
}

html { scroll-behavior: smooth; }

#about, #employers, #jobseekers, #contact { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

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

.center { text-align: center; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 14px;
}
.section-label.center { display: block; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item, .h1-line,
  .sector-list li, .differentiators li, .contact-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-glow, .logo-mark { animation: none !important; transition: none !important; }
  .btn::before { display: none; }
  html { scroll-behavior: auto; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark { height: 34px; width: auto; display: block; transition: transform 0.6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.logo-text em { font-style: italic; color: var(--gold-dark); font-weight: 700; }

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 12px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 28px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 6px 12px 6px 0;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #241c05;
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(201, 162, 39, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* Hero */
.hero {
  position: relative;
  padding: 130px 0 100px;
  background: radial-gradient(120% 140% at 50% -10%, #26221a 0%, #17140f 45%, #0c0a08 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, rgba(201, 162, 39, 0) 65%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }

/* Hero entrance stagger — plays once the preloader hands off (body.hero-ready) */
.stagger-item {
  opacity: 0;
  transform: translateY(26px);
}
body.hero-ready .stagger-item {
  animation: staggerUp 0.9s var(--ease) forwards;
}
body.hero-ready .eyebrow.stagger-item { animation-delay: 0.05s; }
body.hero-ready h1.stagger-item { animation-delay: 0.18s; }
body.hero-ready .hero-sub.stagger-item { animation-delay: 0.42s; }
body.hero-ready .hero-actions.stagger-item { animation-delay: 0.56s; }

.h1-line { display: block; }
body.hero-ready h1.stagger-item .h1-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: staggerUp 0.8s var(--ease) forwards;
}
body.hero-ready h1.stagger-item .h1-line:nth-child(1) { animation-delay: 0.22s; }
body.hero-ready h1.stagger-item .h1-line:nth-child(2) { animation-delay: 0.34s; }
body.hero-ready h1.stagger-item .h1-line:nth-child(3) { animation-delay: 0.46s; }
body.hero-ready h1.stagger-item { opacity: 1; transform: none; animation: none; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 22px;
  padding: 8px 18px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 100px;
}

.hero h1 { color: #fdfbf6; }
.hero .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  margin: 22px auto 34px;
}

.hero-actions { margin-top: 8px; }

/* Sectors */
.sectors { padding: 56px 0; border-bottom: 1px solid var(--border); }

.sector-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.sector-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.6s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.6s var(--ease);
}
.reveal.is-visible .sector-list li { opacity: 1; transform: translateY(0); }
.sector-list li:nth-child(1) { transition-delay: 0s; }
.sector-list li:nth-child(2) { transition-delay: 0.08s; }
.sector-list li:nth-child(3) { transition-delay: 0.16s; }
.sector-list li:nth-child(4) { transition-delay: 0.24s; }
.sector-list li:nth-child(5) { transition-delay: 0.32s; }
.sector-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}
.sector-list svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* About */
.about { padding: 110px 0; }

.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
}

.stat-row {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat strong {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  color: var(--ink);
}
.stat span {
  font-size: 0.82rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.differentiators {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.differentiators ul { list-style: none; padding: 0; margin: 0; color: var(--ink-soft); }
.differentiators li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  font-size: 0.96rem;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.differentiators.is-visible li { opacity: 1; transform: translateX(0); }
.differentiators li:nth-child(1) { transition-delay: 0.05s; }
.differentiators li:nth-child(2) { transition-delay: 0.14s; }
.differentiators li:nth-child(3) { transition-delay: 0.23s; }
.differentiators li:nth-child(4) { transition-delay: 0.32s; }
.differentiators li:nth-child(5) { transition-delay: 0.41s; }
.differentiators li:last-child { margin-bottom: 0; }
.differentiators li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.differentiators li::after {
  content: "";
  position: absolute;
  left: 5px; top: 7px;
  width: 8px; height: 4px;
  border-left: 2px solid #241c05;
  border-bottom: 2px solid #241c05;
  transform: rotate(-45deg);
}

/* CTA panels */
.cta-panel { padding: 110px 0; text-align: center; position: relative; overflow: hidden; }

.cta-employers {
  background: radial-gradient(120% 140% at 50% 110%, #26221a 0%, #17140f 45%, #0c0a08 100%);
  color: #fff;
}
.cta-employers p, .cta-employers h2 { color: #fff; }
.cta-employers p { color: rgba(255,255,255,0.72); }
.cta-glow {
  position: absolute;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.28) 0%, rgba(201, 162, 39, 0) 65%);
  pointer-events: none;
}

.cta-jobseekers { background: var(--paper-soft); }

.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-buttons { margin-top: 10px; }

/* Contact */
.contact { padding: 110px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.contact-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(22px);
  transition: transform 0.6s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.6s var(--ease);
}
.reveal.is-visible .contact-card { opacity: 1; transform: translateY(0); }
.contact-card:nth-child(1) { transition-delay: 0.05s; }
.contact-card:nth-child(2) { transition-delay: 0.16s; }
.contact-card:nth-child(3) { transition-delay: 0.27s; }
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.contact-card svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card a { text-decoration: none; color: var(--gold-dark); font-weight: 600; }
.contact-card a:hover { color: var(--gold); }

/* Footer */
.site-footer {
  background: #0c0a08;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-mark { height: 30px; width: auto; opacity: 0.9; }
.site-footer p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 24px; }
  .hero { padding: 100px 0 80px; }
  .about, .cta-panel, .contact { padding: 72px 0; }
}
