/* ═══════════════════════════════════════════════
   HartFelt Careers — Shared Stylesheet
   Extracted common CSS for caching & reduced page size
═══════════════════════════════════════════════ */

/* ═══════════ VARIABLES ═══════════ */
:root {
  /* Dark palette */
  --dark: #08090A;
  --dark-card: #111214;
  --dark-border: rgba(255,255,255,0.08);
  --dark-text: rgba(255,255,255,0.92);
  --dark-muted: rgba(255,255,255,0.55);
  /* Light palette */
  --white: #FFFFFF;
  --offwhite: #FAFAFA;
  --light-gray: #F2F2F2;
  --border: #E8E8E8;
  --text: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted: #767676;
  /* Brand */
  --teal: #2DD4BF;
  --teal-deep: #14B8A6;
  --teal-dark: #0D9488;
  --teal-glow: rgba(45,212,191,0.12);
  --teal-glow-md: rgba(45,212,191,0.20);
  --teal-glow-strong: rgba(45,212,191,0.35);
  /* Type */
  --serif: 'Instrument Serif', serif;
  --sans: 'Satoshi', sans-serif;
  /* Spacing */
  --container: 1320px;
  --section-pad: clamp(80px, 10vw, 120px);
  --radius: 16px;
  --radius-lg: 24px;
}

/* ═══════════ RESET ═══════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
::selection { background: var(--teal-glow-strong); color: var(--dark); }
::-moz-selection { background: var(--teal-glow-strong); color: var(--dark); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ═══════════ PAGE LOAD ANIMATION ═══════════ */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
main { animation: pageIn 0.6s ease-out; }

/* ═══════════ ANIMATION SYSTEM ═══════════ */
.anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }
.d7 { transition-delay: 0.56s; }

.anim-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-scale.in { opacity: 1; transform: scale(1); }

/* Micro-interaction: links with arrow slide */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow svg { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  letter-spacing: -0.01em;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover svg { transform: translateX(3px) translateY(-2px); }

.btn-teal { background: var(--teal); color: var(--dark); }
.btn-teal:hover {
  background: var(--teal-deep);
  box-shadow: 0 8px 32px var(--teal-glow-strong);
  transform: translateY(-2px);
}
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.btn-outline-dark {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline-dark:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-2px);
}
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--dark-text);
  background: transparent;
}
.btn-outline-light:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(45,212,191,0.1);
}
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* ═══════════ NAVBAR ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(6,6,8,0.88);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border-bottom: 1px solid rgba(45,212,191,0.08);
  box-shadow: 0 1px 24px rgba(0,0,0,0.2), 0 0 60px rgba(45,212,191,0.03);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 54px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-login { font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.nav-login:hover { color: var(--teal); }
.nav-cta.btn { padding: 10px 22px; font-size: 0.84rem; }
.mobile-menu-btn { display: none; color: #fff; font-size: 1.5rem; background: none; border: none; cursor: pointer; }

/* ═══════════ SECTION BASE ═══════════ */
.sec { padding: var(--section-pad) 0; position: relative; }
.sec-alt { background: var(--offwhite); }
.sec-header { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.sec-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 16px;
  background: var(--teal-glow);
  padding: 6px 16px;
  border-radius: 100px;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.sec-title em { font-style: italic; color: var(--teal-dark); }
.sec-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.72; }
.sec-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  border-radius: 1px;
  margin: 0 auto;
}
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ═══════════ PAGE HERO (subpages) ═══════════ */
.page-hero {
  background: var(--dark);
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}
.page-hero::before {
  content: '';
  position: absolute; top: -30%; right: -15%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(45,212,191,0.10) 0%, transparent 70%);
  animation: drift 12s ease-in-out infinite alternate;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45,212,191,0.06) 0%, transparent 60%);
  animation: drift 15s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(30px, -20px) scale(1.08); opacity: 1; }
}
.hero-line {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  opacity: 0.15;
}
.hero-line.hl1 { top: 30%; left: 5%; width: 200px; }
.hero-line.hl2 { top: 65%; right: 8%; width: 160px; animation-delay: 1.5s; }
.hero-line.hl3 { bottom: 15%; left: 15%; width: 120px; animation-delay: 3s; }
@keyframes shimmer {
  0% { background-position: -200% 0; opacity: 0.1; }
  50% { opacity: 0.25; }
  100% { background-position: 200% 0; opacity: 0.1; }
}
.page-hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 5px 16px 5px 7px;
  margin-bottom: 32px;
}
.badge-pulse {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  position: relative;
}
.badge-pulse::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}
.badge-text { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.02em; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--dark-text);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero h1 em { font-style: italic; color: var(--teal); }
.page-hero > .container > p {
  font-size: 1.12rem;
  color: var(--dark-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.72;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════ CTA BLOCK ═══════════ */
.cta-sec { padding: 48px 0; }
.cta-block {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 44px 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.25) 0%, rgba(45,212,191,0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.cta-orb.o1, .cta-orb.orb-1 { width: 150px; height: 150px; right: -40px; top: -40px; animation: orbP 5s ease-in-out infinite; }
.cta-orb.o2, .cta-orb.orb-2 { width: 130px; height: 130px; left: -30px; bottom: -30px; animation: orbP 6s ease-in-out 1.5s infinite; }
.cta-orb.o3, .cta-orb.orb-3 { width: 90px; height: 90px; right: 10%; bottom: -15px; animation: orbP 7s ease-in-out 3s infinite; }
.cta-orb.orb-4 { width: 80px; height: 80px; left: 15%; top: -15px; animation: orbP 5.5s ease-in-out 2s infinite; }
@keyframes orbP {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
}
/* Also alias for pages that use orbPulse */
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
}
.cta-ring-line {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45,212,191,0.08);
  pointer-events: none;
  z-index: 0;
}
.cta-ring-line.rl-1 { width: 200px; height: 200px; right: -60px; top: -60px; animation: orbP 5s ease-in-out infinite; }
.cta-ring-line.rl-2 { width: 180px; height: 180px; left: -50px; bottom: -50px; animation: orbP 6s ease-in-out 1.5s infinite; }
.cta-block > h2,
.cta-block > p,
.cta-block > .cta-checks,
.cta-block > .btn,
.cta-block > .cta-micro-dark,
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--dark-text);
  margin: 0;
}
.cta-block h2 em { font-style: italic; color: var(--teal); }
.cta-block > p { font-size: 1.02rem; color: var(--dark-muted); max-width: 480px; margin: 0; line-height: 1.5; }
.cta-checks { display: flex; justify-content: center; gap: 28px; margin: 0; flex-wrap: wrap; }
.cta-chk { display: flex; align-items: center; gap: 7px; font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.cta-chk svg { width: 16px; height: 16px; color: var(--teal); }
.cta-micro { display: block; margin-top: 10px; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.01em; }
.cta-micro-dark { display: block; margin: 0; font-size: 0.78rem; color: rgba(255,255,255,0.35); letter-spacing: 0.01em; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--dark); padding: 80px 0 0; color: rgba(255,255,255,0.6); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.4); }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-soc {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-soc:hover {
  background: var(--teal-glow);
  border-color: var(--teal);
  box-shadow: 0 0 16px var(--teal-glow);
  transform: translateY(-2px);
}
.footer-soc svg { width: 14px; height: 14px; color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-soc:hover svg { color: var(--teal); }
.ft-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--teal); margin-bottom: 18px;
}
.ft-links { display: flex; flex-direction: column; gap: 11px; }
.ft-links a { font-size: 0.88rem; color: rgba(255,255,255,0.4); transition: all 0.3s; }
.ft-links a:hover { color: var(--teal); padding-left: 4px; }
.footer-big { text-align: center; padding: 40px 0 0; overflow: hidden; }
.footer-big span {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 400; font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.12);
  display: block; line-height: 1;
  transform: translateY(18%);
}
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ═══════════ MOBILE OVERLAY ═══════════ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,9,10,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(20px);
}
.mobile-overlay.open { display: flex; opacity: 1; }
.mobile-overlay a {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: all 0.3s;
}
.mobile-overlay a:hover { color: var(--teal); transform: translateX(4px); }
.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: none; border: none;
  transition: color 0.3s;
}
.mobile-close:hover { color: var(--teal); }

/* ═══════════ RESPONSIVE — Common ═══════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sec { padding: clamp(56px, 8vw, 80px) 0; }
  .nav-links, .nav-login { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-cta.btn { padding: 8px 18px; font-size: 0.8rem; }
  .page-hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .sec-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-checks { flex-direction: column; align-items: center; gap: 12px; }
}
